简体   繁体   English

为 iOS 模拟器构建,但在为 iOS 构建的目标文件中链接

[英]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

This will do for now现在就可以了

  1. Find Xcode in your Applications folder.在您的 Applications 文件夹中找到 Xcode。
  2. Select the app, and then press Command-I (or right-click/use the File menu and select Get Info.).选择应用程序,然后按 Command-I(或右键单击/使用“文件”菜单并选择“获取信息”。)。 This will open an Info window with details about the app.这将打开一个信息窗口,其中包含有关应用程序的详细信息。
  3. In the Info window, look for a checkbox labeled, “Open using Rosetta”.在信息窗口中,查找标有“使用 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.在模拟器中运行项目需要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.

相关问题 为 iOS 模拟器构建,但在为 Z8F8EFCE3A06CE9346C794ED97CCB6D5 中的 iOS 构建的 object 文件中链接 - Building for iOS Simulator, but linking in object file built for iOS in xcode FIRAnalyticsConnector:为 Mac Catalyst 构建,但在为 iOS 模拟器构建的目标文件中链接 - FIRAnalyticsConnector: building for Mac Catalyst, but linking in object file built for iOS Simulator ld:在/Users/.../Pods/...中,为 iOS 模拟器构建,但在为 iOS 构建的 object 文件中链接,文件 '/UsersFirebaseAnalysis/./ - ld: in /Users/…/Pods/…, building for iOS Simulator, but linking in object file built for iOS, file '/Users/../Pods/FirebaseAnalyti 为 iOS 模拟器构建,但在为 iOS 构建的 object 文件中链接,架构 arm64 的文件“.../GoogleMaps” - building for iOS Simulator, but linking in object file built for iOS, file '.../GoogleMaps' for architecture arm64 Xcode 12,为 iOS 模拟器构建,但链接为 iOS 构建的目标文件,用于架构 x86_64 - Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture x86_64 为 iOS 构建,但链接为 iOS 模拟器构建的目标文件,用于架构 arm64 - building for iOS, but linking in object file built for iOS Simulator, for architecture arm64 Xcode 为 iOS 模拟器构建,但链接到为 iOS 构建的 object 文件,用于体系结构“arm64” - Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64' 为 iOS 构建,但在为 macOS 构建的 object 文件中链接 - Building for iOS, but linking in object file built for macOS ld:为iOS模拟器构建,但是为针对MacOSX文件构建的dylib进行链接 - ld: building for iOS Simulator, but linking against dylib built for MacOSX file 为iOS模拟器构建,但链接到为OSX构建的目标文件,用于Xcode 7中的体系结构x86_64 - building for iOS simulator, but linking in object file built for OSX, for architecture x86_64 in Xcode 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM