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第三方庫