tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] V2 after npm run tauri ios build, the built libapp_lib.a is still using the devPath to load page. unable to publish ios build to app store.

Open jyc5120 opened this issue 3 years ago • 0 comments

Describe the bug

We are trying to build a iOS release bundle to publish to app store. run npm run tauri ios build, we get the libapp_lib.a and the xcode project could start normally. but the app is still same with the dev mode. it is loading the page from devPath (localhost:3000).

Reproduction

just run npm run tauri ios build and then open the xcode proejct to run in a simulator. it will show error say: unable to connect to http://your IP:3000.

Expected behavior

the tauri should load resources from production build instead of loading from devPath

Platform and versions

[✔] Environment
    - OS: Mac OS 14.0.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.72.0 (5680fa18f 2023-08-23)
    ✔ cargo: 1.72.0 (103a7ff2e 2023-08-15)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.14.2
    - yarn: 1.22.10
    - npm: 9.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.17
    - tauri-build [RUST]: 2.0.0-alpha.11
    - wry [RUST]: 0.34.2
    - tao [RUST]: 0.23.0
    - @tauri-apps/api [NPM]: 2.0.0-alpha.11
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.17

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../build
    - devPath: http://localhost:8000/
    - framework: React

Stack trace

No response

Additional context

No response

jyc5120 avatar Nov 08 '23 18:11 jyc5120