Skip to content

Darwin m2: "iOS builds are not supported on this platform." #1119

Open

Description

@o1lo01ol1o

I am unexpectedly unable to compile an iOS build using apple silicon. Digging into the source:

https://github.com/reflex-frp/reflex-platform/blob/v1.2.0.0/docs/platform-support.md

It looks like arch64 iOS builds are only supported on intel macs via cross compilation?

Activity

  1. alexfmpe commented on Mar 25, 2025

    @alexfmpe
    Contributor

    Do you have rosetta enabled? I think I did this a few months back.

    As for doing actual cross, on recent nixpkgs there was a darwin sdk rewrite that seems to have unlocked that: https://discourse.nixos.org/t/the-darwin-sdks-have-been-updated/55295

    So on the long run this might be doable directly

  2. o1lo01ol1o commented on Mar 26, 2025

    @o1lo01ol1o
    Author

    Do you have rosetta enabled? I think I did this a few months back.

    Yes but my nix infra is aarch64:

    arch -x86_64 nix-build -E $'with (import ./src {});ios.frontend.override (_: { staticSrc = (passthru.__iosWithConfig ./config).frontend.staticSrc; })' --no-out-link
    

    arch: posix_spawnp: nix-build: Bad CPU type in executable

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions