[英]building for iOS Simulator, but linking in object file built for iOS
Before I integrated Google Places in my app, I had no problem running it on simulators, but now I can run my app only on physical devices.在我的应用程序中集成Google Places之前,我在模拟器上运行它没有问题,但现在我只能在物理设备上运行我的应用程序。 I tried excluding arm64, like it was suggested in many answers, but no luck.
我尝试排除 arm64,就像许多答案中建议的那样,但没有运气。 Full error below:
完整错误如下:
building for iOS Simulator, but linking in object file built for iOS, file '/Users/davitmuradyan/Documents/DigiSoft/trip-share-ios/TripShare/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/GoogleMapsBase' for architecture arm64
为 iOS 模拟器构建,但在为 iOS 构建的目标文件中链接,文件 '/Users/davitmuradyan/Documents/DigiSoft/trip-share-ios/TripShare/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/GoogleMapsBase' 用于架构 arm64
解决方案 1:转到构建设置 > 排除架构,添加 arm64 以调试和发布解决方案 2:转到 Xcode 首选项 > 位置,然后删除派生数据文件并清理项目并运行解决方案 3:删除该框架解决方案 4:使用包安装而不是 pod
x86_64 architecture is needed for running the project in the simulator.在模拟器中运行项目需要x86_64架构。
arm64 architecture is needed for running the project on a Real device.在真实设备上运行项目需要arm64架构。
You can use the below command to to check whether the Google Place SDK contains x86_64:您可以使用以下命令检查 Google Place SDK 是否包含 x86_64:
lipo -info /Users/XXXXXXXXX/XXXXXXXXXXXX/GooglePlace.framework/GooglePlace lipo -info /Users/XXXXXXXXX/XXXXXXXXXXXX/GooglePlace.framework/GooglePlace
Drag and Drop the SDK File and check.拖放 SDK 文件并检查。
In case you were added the Google place SDK as static.如果您被添加为静态的 Google Place SDK。 Please use it through the Pod file.
请通过 Pod 文件使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.