Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building for iOS Simulator, but linking in object file built for iOS in xcode

System specification: Mac-in-cloud (v 12.3.1) 8 GB. XCODE 13.4

Few months ago we had created a project in xcode on mac-in-cloud. It was working fine and we pushed it on git then rented another mac-in-cloud to test even then project was working fine.

Now a bug come in our app so we rented another mac-in-cloud, pulled code and try to run it but getting this error:

Building for iOS Simulator, but linking in object file built for iOS, file '/Users/user220716/Desktop/Project/[project_name]/platforms/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64

I tried many solutions of similar questions even some same questions like this and this. But problem didn't solved.

Thank you in advance.

like image 548
Ratnesh Gupta Avatar asked Dec 02 '25 09:12

Ratnesh Gupta


2 Answers

The second link in your question should be the same problem you have. The solution is basically add arm64 to Excluded Architecture.

enter image description here

like image 99
River2202 Avatar answered Dec 04 '25 01:12

River2202


This is an old question, but I ran into it while migrating from an intel based Mac to an M2 based Mac.

While there are many questions with a similar issue, for example this one, most of those seem to be related to intel based Macs running on Xcode versions supporting Apple Silicon.

This particular question mentions GoogleMaps which is the same library I had an issue with. During my research I found this issue opened on GoogleMaps that explains the issue along with some possible solutions, which for me would have required a manual installation of the library.

enter image description here

I was able to resolve my issue by simply changing my Podfile to use version 8 of GoogleMaps.

pod 'GoogleMaps', '~>8.0'
like image 45
nPn Avatar answered Dec 04 '25 01:12

nPn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!