Company project adaptation IOS9 summary, adaptation ios9 Summary

Source: Internet
Author: User

Company project adaptation IOS9 summary, adaptation ios9 Summary

1. JSONKit

The project reports an error in the xcode7 IOS9 development environment. JSONSring and JSONData cannot be used. There is no problem on the real machine. put and post data on the simulator are suitable for JSONKit to report the error of Null Object wild pointer.

JSONData

 
// Not modified
NSData * jsonData = [[records keyValues] JSONData]; // error reported by JSONKit simulator on ios9
// Use the System
NSData * jsonData = [NSJSONSerialization dataWithJSONObject: [records keyValues] options: NSJSONWritingPrettyPrinted error: nil]; NSString * sendResult = [self putData: jsonData toUrl: senderUrl];

JSONString

Model. pictures = [arr JSONString]; // error reported by the JSONKit simulator on ios9
// Use the System

NSData * jsonData = [NSJSONSerialization dataWithJSONObject: arr options: NSJSONWritingPrettyPrinted error: nil];
 model.pictures = [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding]; 

 

Bitcode

Method 1: update the library to include Bitcode. Otherwise, the following warning will appear;

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.

Method 2: Disable Bitcode. For details, refer

 

 

Https

The company does not upgrade the server for the time being.

Original Request Method

For more information, see the IOS9 adaptation tutorial.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.