问题
I am creating a mapView in iOs, using Google Maps Api.
I did it by referring this link
Document
And I am getting few errors like
Undefined symbols for architecture i386:
"_objc_setProperty_nonatomic", referenced from:
-[GMSx_PBGeneratedMessage setExtensionRegistry:] in GoogleMaps(ProtocolBuffers.o)
I am fed up with this, can anybody kindly help with this.
回答1:
I think Kalpesh was on the right track with his comment. Your screenshot shows you as running with the iOS 5.1 simulator, but the current version of the maps iOS SDK requires iOS 6.0 or newer.
My answer which Kalpesh linked to explains this in more detail:
google map on iphone exception
I noticed you commented on that other answer though, so which version of the SDK are you using?
回答2:
The errors you see are linker errors telling you that the symbols are not available for the simulator architecture (i386).
You are not linking a simulator-compatible version of the library (or perhaps you missed the step of adding the library to your project to be linked).
I don't know the Google Maps SDK, but it is possible that it doesn't have a simulator-compatible binary within the library file.
来源:https://stackoverflow.com/questions/20322927/error-using-google-maps-in-ios