tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
83.38k stars 2.5k forks source link

[bug] [ios] [v2] Export method does not work #11092

Open rtiagom opened 3 weeks ago

rtiagom commented 3 weeks ago

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.

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

super-fun-surf commented 6 days ago

this command is from the documentation and it doesn't work for us either...

super-fun-surf commented 6 days ago

what settings did you have to do manually to get it to build?

rtiagom commented 1 day ago

@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>