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. I tried excluding arm64, like it was suggested in many answers, but no luck. 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
解决方案 1:转到构建设置 > 排除架构,添加 arm64 以调试和发布解决方案 2:转到 Xcode 首选项 > 位置,然后删除派生数据文件并清理项目并运行解决方案 3:删除该框架解决方案 4:使用包安装而不是 pod
x86_64 architecture is needed for running the project in the simulator.
arm64 architecture is needed for running the project on a Real device.
You can use the below command to to check whether the Google Place SDK contains x86_64:
lipo -info /Users/XXXXXXXXX/XXXXXXXXXXXX/GooglePlace.framework/GooglePlace
Drag and Drop the SDK File and check.
In case you were added the Google place SDK as static. Please use it through the Pod file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.