1.報錯: Treating Unicode character as whitespace
解決方法: ??
可能是由于粘貼網(wǎng)頁上的代碼的時候兩行之間的回車引起的,兩行之間重新輸入回車就行...。
2.報錯:dyld: Symbol not found: ___NSArray0__?
問題描述:
dyld: Symbolnotfound: ___NSArray0__ Referenced from: /private/var/mobile/Containers/Bundle/Application/5C6F5D69-5D14-4C07-BEA4-F410C18C66CC/DGBao.app/DGBao Expectedin: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundationin/private/var/mobile/Containers/Bundle/Application/5C6F5D69-5D14-4C07-BEA4-F410C18C66CC/DGBao.app/DGBao
解決方法:

3.遇到錯誤:CLLocationManagerDelegate不調(diào)用didUpdateLocations
原因: ?
這是因為xcode升級造成的定位權(quán)限設置問題。 工程升級到xcode6編譯時需要iOS8 要自己寫授權(quán),不然沒權(quán)限定位。
解決方法:
首先在 info.plist里加入對應的缺省字段 ,值設置為YES(前臺定位寫上邊字段,前后臺定位寫下邊字段)
NSLocationWhenInUseUsageDescription?? //允許在前臺獲取GPS的描述
NSLocationAlwaysUsageDescription?? //允許在前、后臺獲取GPS的描述
4.遇到錯誤:warning: push.default is unset;
問題描述:?
在執(zhí)行 git push 時看到如下消息:
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
解決方法
‘matching’ 參數(shù)是 Git 1.x 的默認行為,其意是如果你執(zhí)行 git push 但沒有指定分支,它將 push 所有你本地的分支到遠程倉庫中對應匹配的分支。而 Git 2.x 默認的是 simple,意味著執(zhí)行 git push 沒有指定分支時,只有當前分支會被 push 到你使用 git pull 獲取的代碼。
根據(jù)提示,修改git push的行為:
git config --global push.default matching
再次執(zhí)行git push 得到解決。
5.報錯:objc_msgSend too many arguments to function call,expected 0, have3

解決方法:

6.Presenting view controllers on detached view controllers is discouraged
原因:
a,b,c 三個viewcontroller,a作為根視圖,b.view 添加到a上,在b中模態(tài)(presentViewController)彈出c.
這種情況就會出現(xiàn)標題的警告
解決方案:
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController: loginVC animated: YES completion:nil];
7.報錯: EXC_breakpoint(code=EXC_ARM_BREAKPOINT,subside=oxdefe) Enable zombie Objects
原因:
僵尸對象
8.報錯:The identity used to sign the executable is no longer valid.
錯誤描述:
我出現(xiàn)這個錯誤的情況,程序提交app store之后,第二天,在手機上運行程序,出現(xiàn)"The identity used to sign the executable is no longer valid",詳細內(nèi)容
Please verify that your device‘s clock is properly set, and that your signing certificate is not expired。
原因:
你發(fā)布的時候,創(chuàng)建了一個PP(簡介文件),你真機運行的時候,是debug狀態(tài),就不能用你發(fā)布時創(chuàng)建的PP文件,只能重新下載你debug狀態(tài)下的PP文件。簡單的說,發(fā)布到app store上的PP文件和debug狀態(tài)下的PP文件是兩個文件。
9.[****ViewController respondsToSelector:]: message sent to deallocated instance
原因解析:
某個公共類或系統(tǒng)提供的控件,存在delegate方法,當創(chuàng)建此公共控件的容器類已經(jīng)銷毀,
而這個控件對應的服務是在其它run loop中進行的,控件銷毀或者需要進行狀態(tài)通知時,依然按照
delegate的指針去通知,則會出現(xiàn)這個問題。
解決方法:
創(chuàng)建 MKMapView時設置了delegate
容器類的dealloc方法中要,將其delegate=nil;
10.安裝Cocoapods, 更新gem出現(xiàn)的問題。
錯誤描述:?
執(zhí)行sudo gem install cocoapods出現(xiàn)錯誤:
ERROR:Whileexecuting gem ... (Errno::EPERM)Operationnotpermitted -/usr/bin/xcodeproj
解決方法:
sudo?geminstall-n?/usr/local/bincocoapods