iosruntime-errorcocoapodsgoogle-places-api

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


Solution

  • 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. here:
    4. Close the Info window.
    5. If you’re already running the app, quit and relaunch.