tauri
tauri copied to clipboard
[bug] [ios] [v2] Export method does not work
Describe the bug
Running npm run tauri ios build -- --export-method app-store-connect does not export the app for AppStore. I need to change ExportOptions.plist directly to get it to build correctly.
- Automatic signing is set for all targets.
Reproduction
npm run tauri ios build -- --export-method app-store-connect then try to submit to the AppStore via the Transporter App. "Asset validation failed (90161)
Invalid Provisioning Profile. The provisioning profile included in the yyy bundle [Payload/yyy.app] is invalid. [Missing code-signing certificate]. A distribution provisioning profile should be used when uploading apps to App Store Connect. (ID: xxx)"
Expected behavior
--export-method app-store-connect to work correctly.
Full tauri info output
> tauri info
[✔] Environment
- OS: Mac OS 14.7.0 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 20.17.0
- npm: 10.8.2
[-] Packages
- tauri 🦀: 2.0.0-rc.15
- tauri-build 🦀: 2.0.0-rc.12
- wry 🦀: 0.43.1
- tao 🦀: 0.30.0
- @tauri-apps/api : 2.0.0-rc.5
- @tauri-apps/cli : 2.0.0-rc.16
[-] Plugins
- tauri-plugin-window-state 🦀: 2.0.0-rc.5
- @tauri-apps/plugin-window-state : not installed!
- tauri-plugin-store 🦀: 2.0.0-rc.3
- @tauri-apps/plugin-store : not installed!
- tauri-plugin-log 🦀: 2.0.0-rc.2
- @tauri-apps/plugin-log : not installed!
- tauri-plugin-shell 🦀: 2.0.0-rc.3
- @tauri-apps/plugin-shell : not installed!
- tauri-plugin-dialog 🦀: 2.0.0-rc.7
- @tauri-apps/plugin-dialog : not installed!
- tauri-plugin-notification 🦀: 2.0.0-rc.5
- @tauri-apps/plugin-notification : not installed!
- tauri-plugin-fs 🦀: 2.0.0-rc.5
- @tauri-apps/plugin-fs : not installed!
[-] App
- build-type: bundle
- frontendDist: ../src
[-] iOS
- Developer Teams: <Redacted>
Stack trace
No response
Additional context
No response
this command is from the documentation and it doesn't work for us either...
what settings did you have to do manually to get it to build?
@super-fun-surf Open src-tauri/gen/apple/ExportOptions.plist and make sure you have:
<dict>
<key>method</key>
<string>app-store-connect</string>
</dict>
I got it to build but I put app-store instead of app-store-connect in my ExportOptions.plist
i had to put app-store in ExportOpions.plist but when calling the tauri CLI had to call it like this (without the --export-method sprecified)
yarn tauri ios build
closed by #14106