Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 276
NoName555 Avatar asked Sep 11 '25 12:09

NoName555


2 Answers

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.
like image 141
Albert Mnatsakanyan Avatar answered Sep 13 '25 01:09

Albert Mnatsakanyan


For M1 chips, "Open using Rosetta" might work.

But after updating to Sonoma 14.0 (15.0 for XCode), "Open using Rosetta" cannot be found in "Get Info" window.

Alternatively, try:
Xcode -> Product (in the menu bar) -> Destination -> Destination Architectures -> check 'Show Rosetta Destination'

After that, devices in the build list should be able to have '(Rosetta)' in the end , e.g. iPhone 15 (Rosetta)

And the project should be able to run on these Rosetta simulators.

like image 25
blackdn Avatar answered Sep 13 '25 03:09

blackdn