谷歌地图为iOS崩溃

时间:2015-02-09 23:06:26

标签: xcode google-maps swift google-maps-api-3 google-maps-sdk-ios

您好我在iOS上使用谷歌地图时遇到问题我已经放置了所有相关框架并在Project NOt目标下添加了-ObjC并且我收到此错误:

CoreData: warning: Unable to load class named 'GMSCacheProperty' for entity 'GMSCacheProperty'.  Class not found, using default NSManagedObject instead.
2015-02-09 22:48:01.326 AlertPoint[8038:957015] CoreData: warning: Unable to load class named 'GMSCachedObject' for entity 'GMSCachedObject'.  Class not found, using default NSManagedObject instead.
2015-02-09 22:48:01.730 AlertPoint[8038:957014] +[NSData gtm_dataByInflatingData:]: unrecognized selector sent to class 0x197f9d480

我已经设置了密钥,并根据需要将其与捆绑标识符相匹配,并按照所有步骤进行操作,一直是3天,没有运气。请帮忙。

这就是我的iOS模拟器的外观: screenshot

1 个答案:

答案 0 :(得分:1)

您应该将@objc添加添加到您保存在CoreData中的NSManagedObject类中:

@objc(GMSCacheProperty)
class GMSCacheProperty { 

}