1.JSONKithtml
項目在xcode7 IOS9 開發環境上報錯,不能進行JSONSring和JSONData的使用 。在真機上沒有問題,在模擬器上put和post數據適合JSONKit報空對象野指針的錯誤。ios
JSONDatajson
//沒有修改
NSData * jsonData = [[records keyValues] JSONData];//在ios9上JSONKit模擬器報錯
//採用系統
NSData * jsonData = [NSJSONSerialization dataWithJSONObject:[records keyValues] options:NSJSONWritingPrettyPrinted error:nil]; NSString *sendResult = [self putData:jsonData toUrl:senderUrl];
JSONStringxcode
model.pictures= [arr JSONString];//在ios9上JSONKit模擬器報錯
//採用系統
NSData *jsonData=[NSJSONSerialization dataWithJSONObject:arr options:NSJSONWritingPrettyPrinted error:nil];
model.pictures = [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding];
Bitcode服務器
方法一:更新library使包含Bitcode,不然會出現如下中的警告;app
1
|
(
null
): URGENT: all bitcode will be dropped because
'/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/foldername/appname/GoogleMobileAds.framework/GoogleMobileAds(GADSlot+AdEvents.o)'
was built without bitcode. You must rebuild it
with
bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode
for
this
target. Note: This will be an error
in
the future.
|
方法二:關閉Bitcode,方法見下圖post
Httpsui
公司暫時不給升級服務器this
採用原來的請求方式spa
更多請參考地址:IOS9適配教程
IOS開發技術交流QQ羣:491355147 歡迎加入一塊兒討論技術哦