Some projects run with Xcode7 Open, and the program will flash back on the iOS9 device.
If you compile with Xcode7, then it is normal to package it on a iOS9 device. This is why, the key is, how to solve?
A:after the release of IOS9, some apps will often flash back under the new system, and the authorities have given a lot of adaptations and changes. To make the user experience better. So how do developers adapt to the apps they maintain?
The quickest way to resolve this is to use the compilation package below Xcode7. (the author is because the demand has been urging, so decisively with the old version Xcode5 compiled ... 555)
Of course, if you must use Xcode7 words can also be resolved, the steps to be resolved are as follows:
(1.) About IOS9 network adaptation (HTTP to HTTPS).
To enforce enhanced data access security, IOS9 will change all HTTP requests to HTTPS requests by default. (HTTPS = http+ssl/tls+tcp)
To address the impact of this change, there are 2 scenarios:
Scenario A: Immediately let the company's server upgrade using TLS 1.2 to resolve the relevant data;
Scenario B: If the server is unable to upgrade the changes, although Apple does not recommend, but can be declared in the Info.plist, back to the unsecured network request will still allow the app to access the specified HTTP, or even arbitrary http.
The "info.plist" file under the root directory of this application should be added to the following key value;简单粗暴地信任所有http服务器:
<key>NSAppTransportSecurity</key><dict> <!--Connect to anything (this was probably bad)-- > <key>NSAllowsArbitraryLoads</key> <true/></dict>
或者不用代码,而在“info.plist”文件的属性列表上直接添加:
(2) Bitcode, an intermediate form of code that is compiled by a program. You must include Bitcode,ios in the Watch app later, but Xcode7 will turn on Bitcode by default.
Scenario A: Update the library to include Bitcode in the libraries, or the following warning will appear;
(null): Urgent:all Bitcode'll 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 a updated library from the vendor, or dis Able Bitcode for this target. Note:this'll be a error in the future.
Plan B: Simple rough, close bitcode.
Tagrets->build Setting, the upper right corner of the search "Bitcode", changed to "No";
(3). iOS9 URL Scheme Adaptation, white list concept introduced
Add a trusted Call app to Info.plist, otherwise return the following error:
-canopenurl:failed for URL: "weixin://app/wx9c8771d3c07dfd30/"-Error: "The This app isn't allowed to the query for scheme Weix In '-canopenurl:failed for URL: ' Wtloginmqq2://qzapp '-error: ' This app was not allowed to query for scheme WTLOGINMQQ2 '
可在根目录的“info.plist”文件中加入“LSApplicationQueriesSchemes”数组:每个字段的url需要我们自己添加,如添加了包括微博等sdk的url(具体的其他方应用SDK会有相应说明):
(4) Enterprise-level distribution
Before IOS9, enterprise-level distribution is easy, just click on the "Trust" button that appears in the app,
After iOS9, the Enterprise Distribution IPA package becomes the same as when installing the DMG installation package on Mac: The default cannot be installed, and the "Trust" button is no longer present;
So in our real machine run, install into the phone inside after the first time to open the app. does not trust or trust the certificate as it was previously prompted.
This time you need to open your device above the settings-"generic-" profile-"Enterprise-class application trust corresponding enterprise developers." This is also a new feature of iOS9;
Xcode7 packaging, iOS9 real machine flash back, how to solve?