Wahab Ahmad Niazi
Wahab Ahmad Niazi

Reputation: 159

building for iOS Simulator, but linking in object file built for iOS, file '.../GoogleMaps' for architecture arm64

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

Upvotes: 3

Views: 2591

Answers (4)

Samson Lawrence
Samson Lawrence

Reputation: 1

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.

Upvotes: 0

Hafiz Anser
Hafiz Anser

Reputation: 581

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"

Upvotes: 2

s.raad
s.raad

Reputation: 1

Build your app in iOS 13.0 Simulator.

Upvotes: -1

Shivam
Shivam

Reputation: 41

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.

Upvotes: 1

Related Questions