IOS and ios

Source: Internet
Author: User

IOS and ios
1. The network interface does not support https protocol.

In iOS9, the system intercepts access to the http interface by default, so the data of the http interface cannot be obtained.

Solution (select 2 from 1 in the following method ):

(1) temporarily return to http

Specific Method:

Add a Key: NSAppTransportSecurity to info. plist of the project. The type is dictionary.

Then add a Key: NSAllowsArbitraryLoads. The type is Boolean and the value is YES;

 

(2) set the domain.

You can simply set an interface that does not support the https protocol to an http interface.

Specific Method:

1) Add a Key: NSAppTransportSecurity to info. plist of the project. The type is dictionary.

2), and then add an NSExceptionDomains to it. The type is dictionary type;

3) Add the required supported domains to NSExceptionDomains. The field is used as the Key and the type is dictionary.

4) set three attributes for each domain: NSIncludesSubdomains, NSExceptionRequiresForwardSecrecy, and NSExceptionAllowsInsecureHTTPLoads.

Values of the Boolean type are YES, NO, and YES, respectively.

 

2. Most social platform sdks do not support bitcode.

Problem description: by default, you must support bitcode when creating a new project in iOS 9. SDK that does not support bitcode may cause compilation and running failure.

Solution:

(1) temporarily disable bitcode support (recommended). The method is as follows:

(2) Remove platform sdks that do not support bitcode.

 

3. Add a Scheme whitelist.

Problem description: in iOS 9, when a platform client jump is involved, the system will automatically go to the info. plist project to check whether the platform Scheme is set. If the platform to be configured is not configured, it cannot jump to the platform client normally. Therefore, to support client sharing and authorization, You need to configure the Scheme list.

Specific Method:

1) Add LSApplicationQueriesSchemes to info. plist of the project. The type is Array.

2) Add a project to be supported. The type is string;

 

See http://wiki.mob.com/ios9-impact on sharesdk( ios-9 adaptation required )/

  

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.