-
Notifications
You must be signed in to change notification settings - Fork 122
Xcode 12 dylib error #487
Comments
Hi @MarcoCarnevali - I think this will be addressed by #482. In the meantime, if you could provide the exact version of CocoaPods and Xcode you're using that would be helpful. Thanks! |
@captainbarbosa my CocoaPods version is: v1.9.3 while Xcode is version 12.0. |
@MarcoCarnevali, if you set the build settings to |
@ZiZasaurus this is what I have but I still can't build for the device |
I fixed it following this: mapbox/mapbox-navigation-ios#2674 |
hello everyone, can you please fix the settings here in these examples? https://github.com/mapbox/navigation-ios-examples settings (excluded architectures) mentioned here doesn't work for me. |
Can this please be reopened? This still happens on Apple Silicon M1 |
still facing this issue on mac m1 |
Same here |
getting the same issue but only building for the simulator
|
adding this to the podfile fixed this for me in flutter on an m1 mac post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end |
add. this in Podfile
|
Add this to the Podfile. post_install do |installer| |
How is adding arm64 to EXCLUDED_ARCHS a solution? It forces the app to be compiled for x86_64 instead of ARM64 and the simulator runs through Rosetta as a result. This is not efficient. |
Steps to reproduce
Expected behavior
No errors
Actual behavior
Can't build this is the error preventing it:
building for iOS, but linking in dylib file (/Users/marcocarnevali/Library/Developer/Xcode/DerivedData/<AppName>-ackcfwuxqhtmbgcrnvtojbpyrrnk/Build/Products/Release-iphoneos/MapboxCommon.framework/MapboxCommon) built for iOS Simulator, file '/Users/marcocarnevali/Library/Developer/Xcode/DerivedData/<AppName>-ackcfwuxqhtmbgcrnvtojbpyrrnk/Build/Products/Release-iphoneos/MapboxCommon.framework/MapboxCommon' for architecture arm64
Configuration
Mapbox SDK versions: 6.2.1
**iOS versions: 14.0 **
Device/simulator models: every iPhones
Xcode version: 12.0
The text was updated successfully, but these errors were encountered: