Home > Blockchain >  building for iOS Simulator, but linking in object file built for iOS
building for iOS Simulator, but linking in object file built for iOS

Time:11-16

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

CodePudding user response:

Solution 1: go to build settings > excluded architectures , add arm64 to debug and release Solution 2: go to Xcode preferences > locations and then delete the derived data file and clean the project and run Solution 3:delete that framework Solution 4:use the package installation instead of pod

CodePudding user response:

x86_64 architecture is needed for running the project in the simulator.

arm64 architecture is needed for running the project on a Real device.

You can use the below command to to check whether the Google Place SDK contains x86_64:

lipo -info /Users/XXXXXXXXX/XXXXXXXXXXXX/GooglePlace.framework/GooglePlace

Drag and Drop the SDK File and check.

In case you were added the Google place SDK as static. Please use it through the Pod file.

  • Related