** 突然想到為何不把開發(fā)中經(jīng)常遇到的報錯信息整理起來,方便以后回顧!說干就干!**
第一. info.plist could`t be removed

](http://upload-images.jianshu.io/upload_images/3018930-5286f1575cce70b1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
解決方法: 快捷鍵:shift + command + G , 輸入含自己電腦路徑(/Users/XX/Library/Developer/Xcode),刪除DerivedData文件夾,回到xcode,選擇 product 后 clean 一下,運行OK!
第二.Signing for "XXX" requires a development team. Select a development team in the project editor.-------------------Code signing is required for product type 'Application' in SDK 'iOS 10.0'

解決方法: 點擊項目 --- targets --- General --- Signing---Team 選擇自己的開發(fā)者團隊證書,默認會勾選
默認情況為:

更改后為:

**第三.Debug-iphonesimulator/xxx.app/WeiboSDK.bundle/images: Directory not empty **
解決方法: 快捷鍵 Shift + Command + G 前往(/Users/你電腦名/Library/Developer/Xcode/DerivedData),刪除DerivedData 文件夾,運行成功!
第四.xcode運行到真機報錯 While reading xx.png pngcrush caught libpng error

解決方法: 這是提示的png并不是ps導(dǎo)出的png,而是手動修改jpeg后綴名為png,在模擬器上不會報錯,但在真機,不識別這種所謂的“png”圖片,請UI設(shè)計師將圖片重新修改就行了!
第五.Could not attach to pid : “XXXX”

解決方法: 不管它,再次運行;這個問題并不是由我們的操作引起的,有時就會莫名其妙的出現(xiàn),如果還不行,那么就把手機重新插拔或者重啟模擬器,還不行就重啟Xcode,還不行就clean一下工程,還不行就重啟系統(tǒng)!蛋疼!
第六.[NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to instance 0x618000053230

解決方法: 在Other Linker Flags 中添加-ObjC就可以了 !
第七.Invalid Podfile file: syntax error, unexpected end-of-input, expecting keyword_end.

解決方法: vi Podfile 編寫格式不對 , 比如說 vi Podfile 時候忘記 加上 end 了 正確格式如下圖,當然盡可能添加導(dǎo)入框架的版本信息!

第八.CocoaPods集成時 Apple Mach - O linker Error "std::__!::__next_prime(unsigned long)..."

解決方法: 如圖: 添加 libc++.tbd 文件 (備注: pods - build setting - C++ Standard Library 檢查是否是libc++(LLVM C++ .... support) 選項 再到 工程的 targets - build phases - Enable Bitcode 設(shè)置為NO)

第九.Program License Agreement updated

解決方法:登錄開發(fā)者帳號首頁有個紅色的條,點開就會出現(xiàn)一個閱讀協(xié)議,同意了就行
第十.This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.

解決方法:iPhone上已經(jīng)裝了包標識符一樣的 App,刪掉再運行。
第十一.code signing is required for product type 'xxxxx' in SDK 'iOS 10.0'

解決方法:點擊工程 Targets -- General ,勾選Automatically manage signing,配置相關(guān)team等即可!

第十二.The maximum number of apps for free development profiles has been reached

解決方法: 蘋果免費App ID只能運行2個應(yīng)用程序,當調(diào)試第三個的時候就會報這個錯誤,我們必須把之前的應(yīng)用程序刪除,就可以調(diào)試新的了
第十三. bash: syntax error near unexpected token `newline'

解決方法:終端編譯時候戴尖括號之類的**重定向字符**時候會報此錯誤,解決方法,去除重定向字符!
第十四.ine 2: /Users/xx/Desktop/New-WolfKill/MapFileParser.sh: Permission denied

解決方法: 首次檢出,提示對pod讀取無權(quán)限,在終端中執(zhí)行以下命令即可 chmod a+x /Users/XX/Desktop/MSU-WolfKill/MapFileParser.sh
第十五、operator delete", referenced from:

解決方法:項目 - TARGETS - General - Linked Framework and Libraries 添加依賴庫 libc++.tbd
持續(xù)更新