Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] App does not initialize when debugging from Xcode #12172

Open
velocitysystems opened this issue Jan 3, 2025 · 1 comment
Open

[bug] App does not initialize when debugging from Xcode #12172

velocitysystems opened this issue Jan 3, 2025 · 1 comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@velocitysystems
Copy link

Describe the bug

When debugging a Tauri app in an iOS simulator or device from Xcode, the app deploys but does not initialize. An empty white webview is show.

Reproduction

Clone the example app in the plugins-workspace repository.
Confirm the app builds/deploys using the CLI to an iOS simulator.

Run the following command:
pnpm tauri ios dev --open

Screenshot 2025-01-01 at 16 21 41

Expected behavior

App should build, deploy and run on the iOS simulator.

Full tauri info output

[✔] Environment
    - OS: Mac OS 15.2.0 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 22.12.0
    - pnpm: 9.15.2
    - npm: 10.9.0

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.1.1 (outdated, latest: 2.2.0)
    - @tauri-apps/cli : 2.1.0 (outdated, latest: 2.2.1)

Stack trace

No response

Additional context

No response

@davehorner
Copy link

davehorner commented Jan 9, 2025

I also also experiencing this on macOS. I am able to run the app as a macOS application. I can hit the frontend from the simulator safari. It shows the title for a quick second and then shows all white aside from the time and battery indicators.

I saw some errors about "View Controller" is unreachable with no entry points. I tried setting the view controller to "Is Initial View Controller" this stopped the warnings but did not get the application to initialize properly.

I can attach with a debugger but breaking doesn't get me anywhere of interest. I can say that it doesn't initialize properly when run from the command line without the --open too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants