问题
I'm using GoogleMapsSDK, and Parse's framework.
If I use them together, a bug in Parse triggers required facebook keys because of the linker flag -ObjC. This is a well documented problem on Parse's forums and on here for other frameworks besides GoogleMaps, and the general solution is to import Facebook SDK. I'm not interested in using facebook in any way, and I'd prefer not to add it to my project, so if there's a different way that I can call the linker flag it would be most appreciated.
Some of the answers say something about -force_load as opposed to -ObjC but it requires some additional info that I'm not sure how to get.
IN A SENTENCE:
Please provide an exact -force_load that will work with the GoogleMapsSDK to avoid using the linker flag -ObjC
Thanks in advance
回答1:
Back when I was testing the original version 1.0 of the SDK I tried using this:
-force_load $(PROJECT_DIR)/GoogleMaps.framework/GoogleMaps
More details on what I was trying here.
It seemed to work at the time, although it caused problems with Google's fix to allow the SDK to not crash on startup with iOS 5.0 with SDK 1.1.0 (see here), and I haven't tried it since, so it might not work with the current version.
You might need to adjust the -force_load
a bit depending on your path to the GoogleMaps framework relative to your project directory.
Can you provide a link to the bug reports with Parse and -ObjC
? I am using the Google Maps SDK with -ObjC
and Parse (but not with Facebook), and haven't had any problems. However I'd be interested in knowing what to look out for in case I want to do more with Parse in the future. Thanks.
来源:https://stackoverflow.com/questions/16706587/can-i-link-googlemaps-sdk-for-ios-with-a-linker-flag-other-than-objc