You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling Objective-C, certain code (such as requestLocation and kCLAuthorizationStatusAuthorizedWhenInUse for location information not supported by MacOS) will stop the build with an error.
Note: This can be corrected by adding the following to Cargo.toml. This is a patch created by guillemcordoba.
I had this happen when I loaded Stripe with the plugin SPM.
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "tauri-plugin-stripe-payment",
platforms: [
.iOS(.v13),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "tauri-plugin-stripe-payment",
type: .static,
targets: ["tauri-plugin-stripe-payment"]),
],
dependencies: [
.package(name: "Tauri", path: "../.tauri/tauri-api"),
.package(url: "https://github.com/stripe/stripe-ios-spm", .upToNextMajor(from: "23.0.0"))
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "tauri-plugin-stripe-payment",
dependencies: [
.byName(name: "Tauri"),
.product(name: "StripePaymentSheet", package: "stripe-ios-spm"),
.product(name: "StripeApplePay", package: "stripe-ios-spm"),
],
path: "Plugin")
]
)
Thank you. I tried a couple of packages and the compilation worked fine. However, on iOS, I cannot access the Resource and the process itself does not work (e.g. image assets).
Describe the bug
swift-rs run with producing the wrong target:
Brendonovich/swift-rs#49
When compiling Objective-C, certain code (such as requestLocation and kCLAuthorizationStatusAuthorizedWhenInUse for location information not supported by MacOS) will stop the build with an error.
Note: This can be corrected by adding the following to Cargo.toml. This is a patch created by guillemcordoba.
Reproduction
I had this happen when I loaded Stripe with the plugin SPM.
Expected behavior
No response
Full
tauri info
outputThe text was updated successfully, but these errors were encountered: