在開發(fā)中.我們可能會遇到各種各樣的問題.下面的問題是我近期遇到的
1.Xcode創(chuàng)建項目時點選Git后創(chuàng)建的項目一直報此錯"Couldn’t communicate with a helper application."
解決辦法:
xcrun git config --global user.email your@email.com
xcrun git config --global user.name "your name"
注意事項:
- 郵箱注冊github的郵箱
- 名字為github的用戶名
2.SVN: Unexpected HTTP status 405‘Method Not allowed’on '/'

613E0B59-E7FC-4E39-ADD6-9C50EF571B81.png
我是在add repository的時候遇到這個問題的.
看了很多資料之后發(fā)現(xiàn),路徑少了‘/’。如“https:192.168.1.1/svn/”。
3.今天上班打開一個外包的項目,打開報:pods-frameworks.sh:permission denied;shell script invocation error

D7BD1928-9886-486C-8C52-202229290A9C.png
解決辦法:找到Build Phases, 點開Embed Pods Frameworks 是不是看到了
"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh" 這句話? 刪除后commond+R,OK。。。。
4.隱藏Tabbar上黑線的問題:如果設置了TabBar的背景圖片,tabbar上的黑線需要隱藏:
[[UITabBar appearance] setBackgroundImage:[UIImage imageNamed:@"tab_bg"]];
[[UITabBar appearance] setShadowImage:[UIImage new]];
如果以上這種方式隱藏不了,可以加上下面這句試試:
[[UITabBar appearance] setBarStyle:UIBarStyleBlack];
5.0 main.m報錯Thread: 1EXC_BAD_ACCESS(code=EXC_1386_GPFLT)

圖1.png
解決辦法:
1.按下圖設置

圖2.png
2.按圖設置

圖3.png
3.你會得到下面的類似信息
message sent to deallocated instance 0x600000643bd0
記住這個內(nèi)存0x600000643bd0,下面會用的到
4.打開活動監(jiān)視器,找到對應進程的PID

圖4.png
5.0打開終端輸入輸入指令:sudo malloc_history+PID+0x600000643bd0

圖5.png
紅線部分就是你發(fā)生錯誤的方法了