[bug] target not recognized: Unrecognized operating system: ios13.0.0
Describe the bug
I tried to delete gen/apple and re-cargo tauri ios init, but this error keeps coming up when I use cargo tauri ios dev
Reproduction
No response
Expected behavior
No response
Full tauri info output
[✔] Environment
- OS: Mac OS 14.6.1 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.82.0-nightly (506052d49 2024-08-16)
✔ cargo: 1.82.0-nightly (2f738d617 2024-08-13)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: nightly-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
- node: 22.6.0
- npm: 10.8.2
- bun: 1.0.36
[-] Packages
- tauri [RUST]: 2.0.0-rc.3
- tauri-build [RUST]: 2.0.0-rc.3
- wry [RUST]: 0.42.0
- tao [RUST]: 0.29.0
- tauri-cli [RUST]: 2.0.0-rc.4
[-] App
- build-type: bundle
- CSP: default-src 'self'; img-src 'self' data:;; connect-src ipc: http://ipc.localhost
- frontendDist: ../dist
- devUrl: http://localhost:5173/
Stack trace
No response
Additional context
No response
Can you share your tauri.conf.json file? Or at least the bundle.iOS section, if configured?
Can you share your tauri.conf.json file? Or at least the bundle.iOS section, if configured?
Even if I don't configure anything, it will give an error. I created a new ios project using cargo create-tauri-app --rc and this is the project configuration.
tauri.conf.json
{
"productName": "iostest",
"version": "0.1.0",
"identifier": "com.iostest.app",
"build": {
"frontendDist": "../src"
},
"app": {
"withGlobalTauri": true,
"windows": [
{
"title": "iostest",
"width": 800,
"height": 600
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
}
}
project.yml
name: iostest
options:
bundleIdPrefix: com.iostest.app
deploymentTarget:
iOS: 13.0
fileGroups: [../../src]
configs:
debug: debug
release: release
settingGroups:
app:
base:
PRODUCT_NAME: iostest
PRODUCT_BUNDLE_IDENTIFIER: com.iostest.app
DEVELOPMENT_TEAM: *********[10 code]
CODE_SIGN_STYLE: Automatic
targetTemplates:
app:
type: application
sources:
- path: Sources
scheme:
environmentVariables:
RUST_BACKTRACE: full
RUST_LOG: info
settings:
groups: [app]
targets:
iostest_iOS:
type: application
platform: iOS
sources:
- path: Sources
- path: Assets.xcassets
- path: Externals
- path: iostest_iOS
- path: assets
buildPhase: resources
type: folder
- path: LaunchScreen.storyboard
info:
path: iostest_iOS/Info.plist
properties:
LSRequiresIPhoneOS: true
UILaunchStoryboardName: LaunchScreen
UIRequiredDeviceCapabilities: [arm64, metal]
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
UISupportedInterfaceOrientations~ipad:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
CFBundleShortVersionString: 0.1.0
CFBundleVersion: 0.1.0
entitlements:
path: iostest_iOS/iostest_iOS.entitlements
scheme:
environmentVariables:
RUST_BACKTRACE: full
RUST_LOG: info
settings:
base:
ENABLE_BITCODE: false
ARCHS: [arm64, arm64-sim]
VALID_ARCHS: arm64 arm64-sim
LIBRARY_SEARCH_PATHS[arch=x86_64]: $(inherited) $(PROJECT_DIR)/Externals/x86_64/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
LIBRARY_SEARCH_PATHS[arch=arm64]: $(inherited) $(PROJECT_DIR)/Externals/arm64/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
LIBRARY_SEARCH_PATHS[arch=arm64-sim]: $(inherited) $(PROJECT_DIR)/Externals/arm64-sim/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true
EXCLUDED_ARCHS[sdk=iphonesimulator*]: arm64
EXCLUDED_ARCHS[sdk=iphoneos*]: arm64-sim x86_64
groups: [app]
dependencies:
- framework: libiostest_lib.a
embed: false
- sdk: CoreGraphics.framework
- sdk: Metal.framework
- sdk: MetalKit.framework
- sdk: QuartzCore.framework
- sdk: Security.framework
- sdk: UIKit.framework
- sdk: WebKit.framework
preBuildScripts:
- script: cargo tauri ios xcode-script -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --framework-search-paths "${FRAMEWORK_SEARCH_PATHS:?}" --header-search-paths "${HEADER_SEARCH_PATHS:?}" --gcc-preprocessor-definitions "${GCC_PREPROCESSOR_DEFINITIONS:-}" --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?}
name: Build Rust Code
basedOnDependencyAnalysis: false
outputFiles:
- $(SRCROOT)/Externals/x86_64/${CONFIGURATION}/libiostest_lib.a
- $(SRCROOT)/Externals/arm64/${CONFIGURATION}/libiostest_lib.a
- $(SRCROOT)/Externals/arm64-sim/${CONFIGURATION}/libiostest_lib.a
Can you share the complete error message? When does it happen? I need more information, maybe the entire log helps :)
Can you share the complete error message? When does it happen? I need more information, maybe the entire log helps :)
I discovered a new thing, that is, release will not report errors, only debug will report this error.
closing due to inactivity. Please let us know if you still face this on v2 stable. I know swift-rs pushed some fixes recently that might fix this since the SDK detection was improved.