Skip to content

SIGILL on pre-A13 ios devices #216

@ashwinmathi

Description

@ashwinmathi

Seems like when cabal builds a package's C sources, GHC invokves clang without -mcpu, so it targets the host by default. When building something like the direct-sqlite package, this emits "udot.4s" which the A12/A12x chips dont have.

reproduction steps
Build Device: macOS Tahoe 26.4 on Mac Mini (M2 Pro)
Test Device: ipadOS 18.7.7 on 2018 iPad Pro (A12X)

  1. Clone the example project
  2. set a dummy api key export PRRRRRRRRR_API_KEY=dummy
  3. run the setup script nix-shell -p xcodegen --run 'PATH=/usr/bin:$PATH ./setup-ios.sh'
  4. change the signing information in xcode project settings (team and bundle identifier)
  5. run the application through xcode on the test device

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions