一、ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1.缺少.a文件
2.在 Other Linker Flags中刪除相關(guān)鏈接
二、directory not found for option ? ??
沒找到相關(guān)的文件 -->刪除了文件,但是文件路徑未刪除
解決:刪除相關(guān)路徑
三、 Application tried to push a nil view controller on target .
項(xiàng)目當(dāng)中遇到過這種問題
控制臺提示
Application tried to push a nil view controller on target .
先說下項(xiàng)目的情況,
由于我要push 的控制器是用StoryBoard畫的,
而我自己新建的rootVIewController 用代碼所編寫,
那么,在push的時候 顯然用不了StoryBoard直接連線的方法,
這里,自己push過去 就會提示找不到所要push的控制器資源,
解決方法:
//Main 是storyboar的資源名
_storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
//實(shí)例化一個所要push的控制器
PerfectInformationViewController *informationVC = [_storyBoard instantiateViewControllerWithIdentifier:@"informationVC"];
四、xcode的8以上版本打開或新建SB和xib在xcode的7版本上報(bào)錯打不開
將
修改為
再將紅色區(qū)域的地方刪除
五kCFErrorDomainCFNetwork error 306
1 )kCFErrorDomainCFNetwork error 306 means that your web proxy isn't working. Make sure that your HTTPS proxy setting is correct, and that the proxy server is up and running if you are using one.
kCFErrorDomainCFNetwork錯誤306意味著您的web代理不工作。確保你的HTTPS代理設(shè)置是正確的,代理服務(wù)器啟動并運(yùn)行,如果你正在使用一個。
2)真機(jī)的網(wǎng)絡(luò)使用了代理
六 計(jì)算好的寬度實(shí)際上不夠文字所用寬度
可能是在計(jì)算中將小數(shù)舍棄了 ?在計(jì)算的長度上面加 1 或者 2。
七could not build module uikit
1)刪除moduleCache
/Users/YOURUSERNAME/Library/Developer/Xcode/DerivedData/ModuleCache
2)不小心修改到UIKit的源碼,拷貝了一份UIKit.framework覆蓋過去
系統(tǒng)Framework路徑:(右鍵Xcode,顯示包內(nèi)容)
/Applications/Xcode8.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/UIKit.framework