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

Could not find module 'BLTNBoard' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: .../Build/Products/Debug-iphonesimulator/BLTNBoard.swiftmodule #206

Closed
neobeppe opened this issue Jan 4, 2022 · 1 comment

Comments

@neobeppe
Copy link

neobeppe commented Jan 4, 2022

Problem Description:
BLTNBoard not building on simulator with M1 Mac

Steps to reproduce:
On M1 Mac try to build project importing BLTNBoard via SPM

Environment:

  • Device: Simulator
  • Version of BulletinBoard: 5.0.0
@ilkerc
Copy link

ilkerc commented Feb 3, 2022

Thats not related with this repository. But here is an ultimate guide about that :)

I think you also use CocoaPods and some of your dependencies may exclude arm64 architectures or marks x86_64 as the only valid architecture on simulator.

EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
or
VALID_ARCHS[sdk=iphonesimulator*] = x86_64

you can search your dependencies pod specs with: pod spec cat AppLovinSDK

Screen Shot 2022-02-03 at 22 28 44

or `pod spec cat TikTokOpenSDK`

Screen Shot 2022-02-03 at 22 29 14

If this is valid than xCode does compiles your dependencies with x86_64 arch (which forces your simulator to launch on top of rosetta2), in other words; you're running your simulator apps with rosetta2 support. Unfortunately you can't tell SPM which archs to exclude. You have two options here;

  • Be sure that all your static cocoapods dependencies support for arm64-sim slices.
  • just use cocoapods, it will exclude arm64 and compile with x86_64 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants