Undefined symbols for architecture x86_64 error when upgrading to v7.0.0-rc3
See original GitHub issueDescribe the bug I’ve been using @react-native-mapbox-gl/maps v7.0.0-rc2 just fine, but when I upgrade to v7.0.0-rc3 I get the following build error on iOS:
Undefined symbols for architecture x86_64:
"_MGLAltitudeForZoomLevel", referenced from:
-[RCTMGLMapView altitudeFromZoom:atLatitude:atPitch:] in libRCTMGL.a(RCTMGLMapView.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I’m using the Manual Installation instructions, rather than Using CocoaPods. I tried removing and re-adding the manual installation, but get the same results. Do you have an idea how to fix this? I’ll keep looking into solutions and post my fix here if I find it in the meantime.
Versions (please complete the following information):
- Platform: iOS
- Device: iPhoneXR simulator
- OS: iOS12.2
- SDK Version 7.0.0-rc3
- React Native Version: 0.59
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Undefined symbols for architecture x86_64 error ... - GitHub
Describe the bug I've been using @react-native-mapbox-gl/maps v7.0.0-rc2 just fine, but when I upgrade to v7.0.0-rc3 I get the following ...
Read more >Xcode build failure "Undefined symbols for architecture x86_64"
It looks like you are missing including the IOBluetooth.framework in your project. You can add it by: Clicking on your project in the...
Read more >Linker (Id) Error>Undefined symbols for architecture arm64 on ...
My settings are Metal IL2CPP Universal full .NET2.0 Xcode project was compiled using Unity 5.5.1f1, with Symlink and Debug settings.
Read more >Linker errors on MacOS (XCode) - General - Cryptlex Forums
I get the following errors: Undefined symbols for architecture x86_64: “_SCDynamicStoreCopyProxies”, referenced from:
Read more >How To Install nvim_rocks on Big Sur macOS 11x
-j2.1.0-beta3 -r3.0.0 it would error out with something like: ``txt Undefined symbols for architecture x86_64: "__Unwind_DeleteException", referenced from: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perfect! Glad to hear. Prior to autolinking and pods, this was a bit tricky. Subsequent updates should be much more straightforward:)
@jolortiz If you’re upgrading from react-native-mapbox-gl to react-native-mapbox-gl/maps, you almost certainly weren’t yet using Mapbox.framework v5.x since the old repo never upgraded to it.
To fix your issue, I’d undo the installation instructions you did on the old repo, including removing Mapbox.framework from the Xcode project, and redo them based on the instructions from the new repo.