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 欢迎加入一起讨论技术哦

最新文章

  1. Json数据中的特殊字符处理
  2. C# 7.0 新特性2: 本地方法
  3. volatile简介
  4. LeetCode Meeting Rooms II
  5. homework-08 C++课程课后思考与练习
  6. 模板:多Case输入处理
  7. C# 文件创建时间,修改时间
  8. oracle列合并
  9. hdu 游乐场
  10. hibernate tools连接数据报错
  11. Java代理模式汇总
  12. [原创]HBase学习笔记(3)- Java程序访问HBase
  13. 机器学习:Python实现单层Rosenblatt感知器
  14. 3D Slicer中文教程(八)—导出STL文件
  15. THE OVERARCHING PROCESS OF TEST DESIGN
  16. mydumper安装、原理介绍
  17. YII2中添加自定义模块
  18. CentOS7上Mongodb安装、卸载
  19. 解决 hibernate cannot define positional parameter after any named parameters have been defined
  20. 【bzoj1026】 SCOI2009—windy数

热门文章

  1. 12种不宜使用的Javascript语法 ---阮一峰
  2. Docker学习第三天
  3. Oracle数据泵的导入和导出
  4. c# 调用Go 动态库
  5. 攻克弹唱第七课(如何弹奏neon)
  6. Postman实用小技巧
  7. Windows/Linux 代码共享,开发者称此举使Linux有了更差的结局
  8. 测试Hessian反序反序列化 客户端少字段和多字段时能否成功
  9. CentOS 6.5 iso系统定制
  10. 【2020.11.30提高组模拟】剪辣椒(chilli)