国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

公司項目適配IOS9總結

2019-11-14 18:18:25
字體:
來源:轉載
供稿:網友

1.JSONKit

   項目在xcode7 IOS9 開發環境上報錯,不能進行JSONSring和JSONData的使用 。在真機上沒有問題,在模擬器上put和post數據適合JSONKit報空對象野指針的錯誤。

JSONData

  //沒有修改
NSData * jsonData = [[records keyValues] JSONData];//在ios9上JSONKit模擬器報錯
 //采用系統
NSData * jsonData = [NSJSONSerialization dataWithJSONObject:[records keyValues] options:NSJSONWritingPRettyPrinted error:nil]; NSString *sendResult = [self putData:jsonData toUrl:senderUrl];

JSONString

   

  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,否則會出現以下中的警告;

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,方法見下圖

 

 

Https

公司暫時不給升級服務器

采用原來的請求方式

   

更多請參考地址:IOS9適配教程

IOS開發技術交流QQ群:491355147 歡迎加入一起討論技術哦 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 保定市| 博罗县| 瑞安市| 博湖县| 凤阳县| 石家庄市| 哈尔滨市| 阿拉善左旗| 姜堰市| 华蓥市| 图木舒克市| 香格里拉县| 大安市| 怀仁县| 溆浦县| 平谷区| 抚松县| 玛曲县| 花莲县| 城固县| 富平县| 秀山| 彩票| 铜山县| 长阳| 凉城县| 渝中区| 台江县| 建湖县| 若尔盖县| 长兴县| 舞钢市| 米林县| 黄陵县| 益阳市| 胶州市| 浪卡子县| 新泰市| 淳化县| 丰都县| 汉阴县|