简体   繁体   中英

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. 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

This will do for now

  1. Find Xcode in your Applications folder.
  2. Select the app, and then press Command-I (or right-click/use the File menu and select Get Info.). This will open an Info window with details about the app.
  3. In the Info window, look for a checkbox labeled, “Open using Rosetta”. Check the box. 这里:
  4. Close the Info window.
  5. If you're already running the app, quit and relaunch.

解决方案 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM