[英]Linking Error in debugging IOS app in simulator
here's the error这是错误
ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/mohsen/Desktop/ProjectName/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/mohsen/Desktop/ProjectName/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64 clang: error: linker 命令失败,退出代码为 1(使用 -v 查看调用)
this is a snippets from the podspec file for react-native-google-maps这是 react-native-google-maps 的 podspec 文件的片段
s.dependency 'GoogleMaps', '3.5.0'
s.dependency 'Google-Maps-iOS-Utils', '2.1.0'
I use beta version of XCode: XCode 12我使用 XCode 的测试版: XCode 12
Not every GoogleMaps version is supprted.并非每个 GoogleMaps 版本都受支持。
Your googlemaps framework not support arm64 architect.您的 googlemaps 框架不支持 arm64 架构师。
Tips for solve:解决技巧:
Build phases - and try to see that you imported googlemaps framework or not.构建阶段 - 并尝试查看您是否导入了 googlemaps 框架。
If you using pod, then pod update, pod install.如果您使用 pod,则 pod update、pod install。
If cordova.如果 cordova。 cordova plugins Remove current version, like cordova plugin rm cordova-plugin-googlemaps add to other version, like cordova plugin add cordova-plugin-googlemaps@version_number
cordova 插件 删除当前版本,如 cordova 插件 rm cordova-plugin-googlemaps 添加到其他版本,如 cordova 插件 add cordova-plugin-googlemaps@version_number
In my app the oldest version number worked correctly, and i had the same log error.在我的应用程序中,最旧的版本号可以正常工作,并且我遇到了相同的日志错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.