Could not find module 'BigInt' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator
EktaAlphait opened this issue · comments
- Frame Work react-native
i cloned demo application for magic-ios. https://github.com/magiclabs/magic-ios-demo.
Build failed in xcode 13 with the following Error:
Could not find module 'BigInt' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator.
Here is the screen shot:
Hey @EktaAlphait. Which package manager did you try? SPM or Cocoapods?
If you use RN with the iOS library, SPM shall work just fine or even you could clone the repo as it's open-source now. 😄
We tried with SPM. We followed all the steps given on the below links :
https://magic.link/docs/login-methods/email/integration/ios
https://github.com/magiclabs/magic-ios-ext
We also added the package dependencies as mentioned but still we are getting the same error
Another possible cause is that you're using M1 chip Mac. If that's the case, try to open the Xcode in Rosetta and rebuild the project.
If the error still persists, please lmk.
- Open using Rosetta
We tried the above solution, opened Xcode using Rosetta. This solved the BigInt issue. But we are getting another error
"Pods/RCT-Folly/folly/container/detail/F14Table.cpp:41:10: Thread-local storage is not supported for the current target".
ScreenShot:
What we tried :
- Tried to change ios deployment target.
- Tried to set Build Active Arch = yes.
Same issue here
@franzwarning Hi, could you elaborate on which error you're having and in what procedure?
Adding the following line in the Podfile may help to mitigate this issue
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SKIP_INSTALL'] = 'NO'
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end