Issues encountered after updating to Xcode7.0

Source: Internet
Author: User

(1) The original user login a little problem, but the update to Xcode7 the following problems:

This is a message that failed to access the network using afnetworking:

Error domain=nsurlerrordomain code=-1022 "The resource could not being loaded because the APP Transport Security policy Requi Res the use of a secure connection. " userinfo={nsunderlyingerror=0x7fec987f84d0 {Error domain=kcferrordomaincfnetwork code=-1022 "The resource could not being Loaded because the APP Transport Security policy requires the use of a secure connection. "

Workaround:

After Google verified, IOS9 introduced new features App Transport Security (ATS) . Details: App Transport Security (ATS)

The new feature requires that the network access within the app must use HTTPS protocols.
But now the company's projects are using HTTP protocols that use private encryption to keep data secure. It is not immediately possible to change the HTTPS protocol transfer.

① adding types in Info.plist NSAppTransportSecurityDictionary。

NSAppTransportSecurity under Add NSAllowsArbitraryLoads type Boolean , value is set toYES

(2)

Using Xcode7 to run the previous project, error:

LD: '/USERS/MYMAC/DOCUMENTS/IOS_PROGRAMS/ZHIDINGKUAI/ZHIDINGKUAI/OTHER/ALIPAY_SDK/ALIPAYSDK.FRAMEWORK/ALIPAYSDK ' 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 arm64

Solve:

As a result of Xcode's own small problems, the project has been running a bug error 1. Then I will check the project Friends of the Library of the dependence of AH. Very sure to confirm that the library has been imported and inside the linked binary library.  (that is, build phases inside). And then constantly re-import clean many times or not. And then I collapsed. Then the Xcode reboot to run again the real error finally surfaced (after all, Xcode is Beta). is the content of error 2. Bitcode is not supported by the binary library of the Friend Alliance. and Xcode supports Bitcode by default, and if supported, All of the binary libraries and the framework must contain bitcode. As for what is Bitcode, see here: http://blog.csdn.net/soindy/article/details/48518717

Now we turn off the Bitcode:

(3)

"xxxxxxx" is a locked for editing and your may isn't able to save your changes. Does want to unlock it?

The file "Project.pbxproj" could not being unlocked.

Could not add write permission to the file because your do not own it. Try Modifying the permissions of the file in the Finder or Terminal.

FIX: Find the item's folder, right-click on "Show Info"

Issues encountered after updating to Xcode7.0

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.