IOS Adapter IOS9

Source: Internet
Author: User

1, the network interface does not support the HTTPS protocol, under IOS9

Under IOS9, the system will block access to the HTTP protocol interface by default, so the data for the HTTP protocol interface cannot be obtained.

Solution (The following method 2 is selected for 1):

(1) Temporarily return to HTTP protocol

Specific methods:

Add a key:nsapptransportsecurity to the info.plist of the project, and the type is the dictionary type.

Then add a key:nsallowsarbitraryloads to it, the type is Boolean, and the value is yes;

2016.01.06 Update:

As the SDK version is updated, the following updates are required here.

Specific methods:

Add a Key:app Transport Security Settings in the info.plist of the project, which is of type dictionary type.

Then add a key:allow arbitrary Loads, which is of type Boolean and the value is yes;

(2) Set the domain.

It can be simply understood that the interface that does not support HTTPS protocol is set to HTTP.

Specific methods:

1), add a key:nsapptransportsecurity in the info.plist of the project, type is the dictionary type.

2), then add a nsexceptiondomains to it, the type is the dictionary type;

3), add the required support domain to nsexceptiondomains. Where the domain is a key and the type is a dictionary type.

4), each domain below need to set 3 properties: Nsincludessubdomains, Nsexceptionrequiresforwardsecrecy, Nsexceptionallowsinsecurehttploads.

are of type Boolean, with the values Yes, NO, yes, respectively.

2, most social Platform SDK does not support Bitcode.

Problem Description: The IOS 9 new project requires support for Bitcode by default, and the SDK that does not support Bitcode will cause the compilation to run.

Solution:

(1) Temporarily turn off support for Bitcode (recommended) by

(2) Remove the Platform SDK that does not support Bitcode.

3. Add Scheme white list.

Problem Description: In iOS 9 involves the platform client jump, the system will automatically detect whether to set the platform scheme under the project Info.plist. For platforms that need to be configured, the platform client will not be able to jump normally if not configured. So to support client sharing and authorization, you need to configure the scheme list.

Specific methods:

1) Add a lsapplicationqueriesschemes in the info.plist of the project, type array.

2) then add to it a project that needs to be supported, type string type;

Reference link: Effect of http://wiki.mob.com/ios9-on SHARESDK (suitable for ios-9 required reading)/

  

IOS Adapter IOS9

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.