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.