1.CFNetwork internal error?
(0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-758.2.8/Loading/URLConnectionLoader.cpp:289)
原因:網(wǎng)絡請求接口使用的是http不是https請求。
解決辦法: 修改info.plist
在App Transport Security Settings之下 ?NSExceptionDomains 添加
NSExceptionRequiresForwardSecrecy : NO
NSIncludesSubdomains:YES
NSExceptionAllowInsecureHTTPLoads : YES
鏈接:蘋果官方文檔
2.the view outlet was not set
[UIViewController _loadViewFromNibNamed:bundle:] loaded the "LoginViewController" nib but the view outlet was not set.'
原因:在創(chuàng)建一個控制器或者cell等的.xib文件時沒有添加的view的控制器批什,找不到LoginViewController的xib文件或者沒法加載LoginViewController的view
解決辦法:添加LoginViewController下xib文件的控制器 File‘s owner 關聯(lián)一下就ok了
鏈接:暫無
3 This will cause an exception in a future release.
This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.? This will cause an exception in a future release.
原因:在項目運行時婆咸,在子線程刷新了主視圖,導致會在以后的過度release
解決辦法:在項目中添加全局斷點磷箕,找到那個子線程任務,把刷新或者添加在主視圖的任務放在主線程,
dispatch_async(dispatch_get_main_queue(), ^{
// 主線程任務
//reload coder
});
鏈接:無
4.Terminating app due to uncaught exception 'NSInternalInconsistencyException'
'unable to dequeue a cell with identifier cellid - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
原因:1.沒有注冊cell 2.在從棧中復用cell的時候給了角標
解決:
1.注冊cell 給storyboard或者自定義的cell添加identifier ?
2.在初始化TableView時注冊cell:[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:cellid];如果使用了自定義的cell 改為[self.tableView registerNib:[UINib nibWithNibName:@"自定義cell的類名" bundle:nil] forCellReuseIdentifier:cellid];
3.UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellid forIndexPath:indexPath];
改為UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellid];
鏈接 : 無
5.iOS 9 failed for URL: "XXX://@" - error: "This app is not allowed to query for scheme XXX"? 應用間跳轉(zhuǎn)
原因:未設置應用跳轉(zhuǎn)白名單
解決辦法:在跳轉(zhuǎn)的應用中設置白名單LSApplicationQueriesSchemes
***
一個iOS學習路上的小學僧,歡迎指正!
***