-
-
Notifications
You must be signed in to change notification settings - Fork 855
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
linking in dylib built for iOS, file 'projectroot/node_modules/@react-native-mapbox-gl/maps/ios/Mapbox.framework/Mapbox' for architecture arm64 in XCode 12 #1031
Comments
I also have this issue after upgrading to Catalina + XCode 12 and am disheartened to not find much information on the problem. One "solution" might be to revert to XCode 11 (not sure this is possible in Catalina) I attempted reverting to the legacy build system for xcode and got the same issue. |
Cleaning the build folder did the trick for me ( |
Also to note... Only get this error when building for simulator and "release" build configuration. So it's not a show stopper but just annoying to not be able to test release on simulator. Will try cleaning build tomorrow. |
Yes after clear build work through xcode. it is still not working by following command: |
I'm also having this problem with xcode 12 |
Can confirm, make sure you are doing a debug build for the simulator and then it works. |
Worth reading this thread if you are hitting this problem with building release versions on the Simulator from xcode 12. |
I had to update to XCode 12.2 beta 4 after the iphone update... |
Same issue with XCode version 12.2 (12B45b) on MacBook Pro (13-inch, M1, 2020) Debug build on a fresh Xcode install. |
Why is this issue closed? |
@ataravati what worked? Are you on m1/arm? It was working for me a few days ago after some attempts, but for some reason regressed. I get this error again, tried a few different versions of everything, cleaning, legacy build, lots of config variants. No dice. Luckily I have an old build on my phone that I can use for now, but any tips appreciated. |
@natew This:
|
@ataravati are you on an M1 mac or on an older mac? I'm having this problem on an M1 mac, I don't think I can exclude arm64. It does build to my physical device though. Could we get issue re-opened @mfazekas? |
Getting a same problem on a Apple Chip Mac Mini |
Yeah me too, i'm getting this error on M1 mac and Xcode 12, someone resolved? |
Hi all, check this https://github.com/react-native-mapbox-gl/maps/issues/1139 for a workaround |
I get this error when building for the simulator as release instead of debug. Solution is to go to Product > Scheme > Edit Scheme Set Build Configuration to Debug |
@rvdende is this the problem? https://github.com/react-native-mapbox-gl/maps/issues/1097 |
This issue has nothing to do with archiving. This issue is scoped to the linking issue |
I have everything working except for some reason errors on doing react-native Release mode, but that seems to fix with:
|
@natew that runs the build in Rosetta2 and would not be as performant as Apple Silicon. |
@noway of course. It's a temporary solution I found for anyone else searching, |
Fair enough. For anyone else: another temporary solution is to build onto a real device, and not to Simulator. (the error only appears to be when you build for simulator) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is not stale. It's still happening @Stale please remove the label. As a workaround, we have to completely remove Mapbox in Simulator builds which is a huge pain. |
@noway, with #1311 we started to support MapLibre as a native SDK solution. |
I would urge everyone subscribed to this ticket to actually test out what I mentioned in my earlier comment and report back. I can not test this out as I don't have an M1 machine. |
Describe the bug
I have update xcode 11.x to xcode 12. Now I am getting error following error while running application in simulator:
"ld: building for iOS Simulator, but linking in dylib built for iOS, file 'rootproject/node_modules/@react-native-mapbox-gl/maps/ios/Mapbox.framework/Mapbox' for architecture arm64"
To Reproduce
Example:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: