繁体   English   中英

Apple Mach-O Linker错误-安装cocoapods之后

[英]Apple Mach-O Linker Error - after install cocoapods

当在我现有的xcodeproject中安装cocoapods时,会发生此错误。 (想要使用画布进行动画制作)。 成功创建该广告连播后,我在Google Analytics(分析)中收到了错误(不在广告连播中)

我的podfile:platform:ios,'7.0'pod'Canvas'

Undefined symbols for architecture x86_64: "_NSOverwriteMergePolicy", referenced from: +[TAGModel contextWithURL:] in libGoogleAnalyticsServices.a(TAGModel.o) -[GAIDataStore contextWithModel:URL:] in libGoogleAnalyticsServices.a(GAIDataStore.o) "_NSSQLiteErrorDomain", referenced from: -[GAIDataStore performBlockAndWait:withError:] in libGoogleAnalyticsServices.a(GAIDataStore.o) "_NSSQLiteStoreType", referenced from: +[TAGModel coordinatorWithURL:] in libGoogleAnalyticsServices.a(TAGModel.o) -[GAIDataStore coordinatorWithModel:URL:] in libGoogleAnalyticsServices.a(GAIDataStore.o) "_OBJC_CLASS_$_NSAttributeDescription", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(TAGModel.o) objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o) "_OBJC_CLASS_$_NSEntityDescription", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(TAGDataProvider.o) objc-class-ref in libGoogleAnalyticsServices.a(TAGModel.o) objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o) objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o) "_OBJC_CLASS_$_NSFetchRequest", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(TAGModel.o) objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o) "_OBJC_CLASS_$_NSManagedObject", referenced from: _OBJC_CLASS_$_TAGHit in libGoogleAnalyticsServices.a(TAGHit.o) _OBJC_CLASS_$_GAIHit in libGoogleAnalyticsServices.a(GAIHit.o) _OBJC_CLASS_$_GAIProperty in libGoogleAnalyticsServices.a(GAIProperty.o) "_OBJC_CLASS_$_NSManagedObjectContext", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(TAGModel.o) objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o) "_OBJC_CLASS_$_NSManagedObjectModel", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(TAGModel.o) objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o) "_OBJC_CLASS_$_NSPersistentStoreCoordinator", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(TAGModel.o) objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o) "_OBJC_METACLASS_$_NSManagedObject", referenced from: _OBJC_METACLASS_$_TAGHit in libGoogleAnalyticsServices.a(TAGHit.o) _OBJC_METACLASS_$_GAIHit in libGoogleAnalyticsServices.a(GAIHit.o) _OBJC_METACLASS_$_GAIProperty in libGoogleAnalyticsServices.a(GAIProperty.o) "_deflate", referenced from: +[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o) "_deflateEnd", referenced from: +[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o) "_deflateInit2_", referenced from: +[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o) "_inflate", referenced from: +[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o) "_inflateEnd", referenced from: +[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o) "_inflateInit2_", referenced from: +[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我该怎么做才能解决这些问题? 谢谢你= D

我已经解决了该错误。

如果有人遇到类似我的错误,请再次仔细检查代码库Google Analytics(分析)文件。 并再次添加。

谢谢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM