Skip to content

iOS binaries crash with latest nightly #138212

@tdomhan

Description

@tdomhan

iOS builds (aarch64-apple-ios) of Dioxus apps crash on nightly-2025-02-18 (ce36a96). The latest working version is nightly-2025-02-17 (5bc6231).
This problem only occurs when running on a real device, not when running the simulator.

To reproduce the error do the following:

# Create a new Dioxus app
 dx new test_app
# Create application bundle
rustup override set nightly-2025-02-18 && rustup target add aarch64-apple-ios && dx bundle --platform ios  --trace --device true

Next sign the application, i.e. via iOS App Signer and install on a real device.

The log console shows the following errors:

Snapshot generation request for bundleID: com.appidentifier rejected due to the app being denylisted.
...
Process exited: <FBApplicationProcess: 0x913f14000; app<com.appidentifier>:<invalid>> ->
Application process state changed for com.appidentifier: (null)
...

NSUnderlyingError = <NSError: 0x302466070; domain: NSPOSIXErrorDomain; code: 88>
...
SpringBoard	[app<com.appidentifier>:-1] Now flagged as pending exit for reason: Bootstrap failed

The problem must have been introduced somewhere between commits ce36a96 and 5bc6231. I'd be happy to also test any other rustc binaries or try provide any other information.

Activity

added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Mar 8, 2025
tdomhan

tdomhan commented on Mar 8, 2025

@tdomhan
Author

Probably unrelated, but looking for "Snapshot generation request for bundleID: com.appidentifier rejected due to the app being denylisted." one finds fyne-io/fyne#2270 and golang/go#47952 where there was a similar crash in golang. Could be unrelated as the error message is of course very unspecific.

added
O-iosOperating system: iOS
E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
regression-untriagedUntriaged performance or correctness regression.
on Mar 8, 2025
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Mar 8, 2025
added and removed
regression-untriagedUntriaged performance or correctness regression.
on Mar 8, 2025
jieyouxu

jieyouxu commented on Mar 8, 2025

@jieyouxu
Member

Is it possible for you to bisect between ce36a96 and 5bc6231? There shouldn't be too many commits in between, and the steps you described is a bit specific (and requires a real iOS device).

Or maybe someone with a real iOS device can try to bisect this...

added
regression-untriagedUntriaged performance or correctness regression.
and removed on Mar 8, 2025
tdomhan

tdomhan commented on Mar 8, 2025

@tdomhan
Author

Yeah, indeed it is non-trivial to reproduce in terms of setup. I can try but I have never used a custom rustc version and I'm not sure how easy it is to set up for iOS builds. If you have any pointers let me know.

tdomhan

tdomhan commented on Mar 8, 2025

@tdomhan
Author

Looks like I can use https://github.com/kennytm/rustup-toolchain-install-master to install specific commits.
Update: never mind. Artifacts don't exist for all commits.

61 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.C-external-bugCategory: issue that is caused by bugs in software beyond our controlO-appleOperating system: Apple (macOS, iOS, tvOS, visionOS, watchOS)O-iosOperating system: iOSP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.llvm-fixed-upstreamIssue expected to be fixed by the next major LLVM upgrade, or backported fixesregression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @tdomhan@TimNN@madsmtm@dianqk@jieyouxu

      Issue actions

        iOS binaries crash with latest nightly · Issue #138212 · rust-lang/rust