3

building for iOS Simulator, but linking in object file built for iOS, file '/Users/wahab/Documents/Github/ios-code/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64

I found this error while compiling my swift code in macbook pro M1. Please help me on this regards Thanks

  • did you find the answer? – FGH Mar 30 '21 at 07:44
  • 1
    Please follow these points: Close Xcode --> -->Go to Finder -->Then Click Application -->Then Right-click on the "Xcode" -->Then You will see "Get Info" -->Then Check marked the "Open using Rosetta" – HafizAnser Apr 02 '22 at 15:25

4 Answers4

2

Please Follow These steps:

  1. Close Xcode
  2. Go to Finderenter image description here
  3. Then Click Application
  4. Then Right-click on the "Xcode"
  5. Then You will see "Get Info"
  6. Then Check marked the "Open using Rosetta"
HafizAnser
  • 553
  • 6
  • 10
0

The Maps SDK for iOS does not yet contain the architecture necessary to run on the new Arm-based Mac Simulators. For now, if you are using the new Arm-based Macs, you will need to develop using a physical device.

Shivam
  • 19
  • 3
0

I had the same issue in my Mac Book as well. I updated my Mac OS to latest version which is Monterey version 12.4. After updating my Mac OS, the first time when I opened my Xcode, a pop up to install the debugging tools appeared. After the installing the debugging tools in the Xcode, I was able to run the iOS application with google maps framework in my simulator. Hope it helps.

Note: I did try changing the architectures but it's of no use.

-1

Build your app in iOS 13.0 Simulator.

Dharman
  • 30,962
  • 25
  • 85
  • 135
s.raad
  • 1
  • 1