cocoscreate 导出原生iOS工程配置流程

1、配置工程属性为ARC  Apple Clang - Language-Object-C >> Objective-C Automatic Reference Counting 设置为YES

2、配置Apple Clang - Language下 C Language Dialect 为 GNU99[-std=gnu99] 不然会出现

__block typeof(self)bself = self 语句会报错

3、出现diff: /Podfile.lock: No such file or directory错误,设置Configurations

选中Project->选择Info tab->看看Configurations是不是被设置为 None了,如果是None的话请改为Pods,如图:

 

3、Pod 出现ld: library not found for -lAFNetworking错误信息  Build Setting—>Other Linker Flag中存在XXX,直接去掉问题就解决了。

4、 pod 文件 import头文件找不到

5、修改main.m 去掉以下两行代码

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

 [pool release];

6、修改info.list添加

7、提示“OBJC_CLASS$_AFHTTPRequestOperationManager”错误,在自己的工程Build Phases的Link Binary With Libraries中添加pod第三方库

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章