Content source The vast internet
Magic Apple, once again let the programmer in the gun.
First, Xcode7 the new project, all HTTP requests under Foundation are changed to HTTPS requests.
HTTP+SSL/TLS+TCP = HTTPS
That is, the service needs to provide an interface for HTTPS (TLS 1.2);
If the service does not change, then the client info.plist root <dict> need to add the following key value;
简单信任所有http服务器
<key>NSAppTransportSecurity</key><dict> <!--Connect to anything (this is probably BAD)--> <key>NSAllowsArbitraryLoads</key> <true/></dict>
或者严谨的
<key>NSAppTransportSecurity</key><dict> <key>NSExceptionDomains</key> <dict> <key>yourserver.com</key> <dict> <!--Include to allow subdomains--> <key>NSIncludesSubdomains</key> <true/> <!--Include to allow insecure HTTP requests--> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> <!--Include to specify minimum TLS version--> <key>NSTemporaryExceptionMinimumTLSVersion</key> <string>TLSv1.1</string> </dict> </dict></dict>
Second, xcode7 default on, Bitcode (iwatch need), will cause some third-party framework error (such as the Friend League errors)
YOUMENG/LIBMOBCLICKLIBRARY.A (MOBCLICK.O) ' does not contain 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. For Architecture ARMv7
This is either updating the library, or you can search for Bitcode in build setting, and the Enable Bitcode is set to NO
Three, iOS9 install Enterprise Certificate Package app
Enterprise Certificate packaged app, installed in the phone inside the first time after opening the app. does not trust or trust the certificate as it was previously prompted;
This is a time when you need iOS9 settings-"general-" profile-"Enterprise-class application trust corresponding enterprise developers."
Iv. iOS9 URL Schemes
In addition to setting the URL schemes in the project info URL types, you also need to add a trusted calling app to the Info.plist, otherwise the following error is returned
-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: "The This app was not allowed to the query for scheme wtloginmqq2"
Info.plist Join
<key>LSApplicationQueriesSchemes</key>
<array>
<string>urlscheme</string>
<string>urlscheme2</string>
<string>urlscheme3</string>
<string>urlscheme4</string>
</array>
V. ipad adaptation slide over and Split View
Split screen Application It is best to change the pure code to Stroyboard
XCODE7,IOS9 Partial compatibility settings