iosobjective-clinker-errorssupgoogle-maps-sdk-ios

Significance of -ObjC value in Other Linker Flags: GMaps SDK


I was trying out google maps sdk integration with iOS 6.1. I am successfully able to populate gmap on iOS simulator by using instructions given on GMaps for iOS starting guide

Then what the issue with it: It works great when I use it as a separate project. But when I club the above project code with my existing application, then it behaves weird, and all the errors generates due to inclusion of -ObjC value in Other Linker Flags in Build Settings.

Error duplicate symbols for architecture i386

When I skip step 7 (GMaps iOS), it doesn't give errors. Due to exclusion of -ObjC value, it doesn't able to identify a specific GMaps library class and its method: [GMSCameraPosition cameraWithLatitude:longitude:zoom:]: unrecognized selector sent

My iOS application background: Using a third party library SUP (Sybase Unwired Platform). Connecting SAP to iOS application. I guess there is something ambiguous with SUP environment enablement (Build settings) when I am trying to add GMaps library.

Seeking for your advices.

Thanks!


Solution

  • There many posts on SO about the duplicate symbols for architecture i386 error. Usually it means that you defined the same symbol twice in the one namespace. The last time I got this error was because I accidentally included a .m file instead of .h header file.