Muhammad Husnain Tahir
Muhammad Husnain Tahir

Reputation: 1039

GoogleMaps for iOS Linker Error

While building the Application i am getting the following error i have searched a lot but i am unable to figure out what is the problem.

ld: warning: ignoring file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps, missing required architecture arm64 in file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps (2 slices) Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GMSPolyline", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSCameraPosition", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSMutablePath", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSMarker", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSMapView", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSServices", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am using GoolgeMaps SDK 1.4.3

PS:- I am relatively new to iOS programming so please avoid any blunders.

Upvotes: 3

Views: 6573

Answers (3)

Daniel Tadros
Daniel Tadros

Reputation: 2357

Adding value $(inherited) to BuildSettings->Linking->Other Linker Flags of your target

If you are developing an SDK/framework/POD you should do the same as above but under target name PROJECTNAME_tests.

Should fix the issue.

Upvotes: 6

Shalom Dahan
Shalom Dahan

Reputation: 394

I had this problem too, and my solution was to add the frameworks to
Target -> Build Phases -> Link Binary With Libraries

Upvotes: 3

Muhammad Husnain Tahir
Muhammad Husnain Tahir

Reputation: 1039

ok I figured out the Problem My Library was not built for 64-bit but i was trying to use that settings for my app, after i removed arm64 from architecture i successfully build the application.

Upvotes: 1

Related Questions