美文网首页
iOS 导入谷歌xml报错解决方法

iOS 导入谷歌xml报错解决方法

作者: 蚂蚁也疯狂 | 来源:发表于2018-02-07 15:10 被阅读19次
新项目导入内容错误:  libxml/tree.h file not found
1.  导入libxml2.dylib 包
2.build settings —>header search Paths 添加:
   $(SDKROOT)/usr/include/libxml2

其它问题

declaration of 'objc_property_t' must be import from module 'ObjectiveC.runtime' before it is required:
 应该特别注意的是在使用 objc_property_t 时先导入头文件 #import<objc/runtime.h>,否则报错:Declaration of 'objc_property_t' must be imported from module 'objectiveC.runtime'before it is required.

No visible @interface for 'SCBaseManagedDomain' declares the selector 'enumPropertiesUsiingBlock:'
文件没有包含某个类

expected a type:
需要自己手动导入库#import <UIKit/UIKit.h>

相关文章

网友评论

      本文标题:iOS 导入谷歌xml报错解决方法

      本文链接:https://www.haomeiwen.com/subject/efxazxtx.html