Cocoachina (summary) upgrade to XCODE8 problems encountered and solutions

Source: Internet
Author: User

This summary by the Cocoachina forum moderator wo709128079 and the vast number of altar friends together .>> view original posts

Upgrade Xcode8 has been inevitable, upgrade the iOS 10 users can not say that there are, should not be less, the landlord heard that, if not upgraded Xcode8, shelves the latest package, then may be applied to iOS 10 is not supported. So, these new features of Xcode8, you should know!!!

1. Shortcut key COMMAND +/comment invalid;

Workaround 1:xcode The bindings comment in-> preferences-> key Selection set the shortcut key

Solution 2:http://blog.csdn.net/jnbbwyth/article/details/52576169 Fourth Problem detailed

2.xcode8 supports the following true machine test methods for iOS 8:

①. Application-xcode Display Package content-contents-developer-platforms-iphoneos.platform-devicesupport Paste 6.0 6.1 7.0 7.1 folders inside Xcode8 Within the corresponding folder

②. Application-xcode Display package content-contents-developer-platforms-iphoneos.platform-developer-sdks-iphoneos.sdk-sdksettings.plist  File under Defaultproperties-deployment_target_suggeste ... Add 6.0 6.1 7.0 7.1 corresponding beta versions of the array (note: If your file is read-only, it cannot be modified. You need to put contents-developer-platforms-iphoneos.platform-developer-sdks-iphoneos.sdk-sdksettings.plist The read-only mode of these files is changed to read-write mode. This version must be sorted from small to large, it doesn't work to add small to the bottom, you have to drag the small one to the top. Quit your Xcode this time, and then reboot, and you'll find that the real machine under ios8.0 can also be tested properly.

3. If the project contains a certificate

The ID contained in the certificate must be consistent with the bundle ID, and the developer team account must create a certificate that corresponds to the bundle ID, which means that not all Apple accounts can be tested on the real machine (here is a certificate in the project)

4. Create a new project using Xcode 8

Will let you select the developer team to automatically generate the corresponding certificate. In the general of the new and old projects can also set the signature, check the automatic Management certificate (optional), Xcode will automatically generate debugging certificate and description of the problem, the certificate and description file validity period of 6 days, to avoid a large number of garbage redundant certificate occupation.

5.-(void) WebView: (UIWebView *) WebView Didfailloadwitherror: (Nullable nserror *) error; Changed to-(void) WebView: (UIWebView *) WebView didfailloadwitherror: (nserror *) error

6. Version target started from 8.0

But the old code of 7.1 with Xcode8 Open or show 7.1, you can enter 7.1 handwriting, still works.

7. The previous two characters occupy 24 width and now occupy 27

Cause some of the UI may need to be fit; Or to judge the current system version, if >=10.0, let the appropriate control call the SizeToFit method.

8. Permissions

* Microphone Permissions: Privacy-microphone Usage Description allows this app to use your microphone.
* Camera Privileges: Privacy-camera Usage Description allows this app to use your camera.
* Album permissions: Privacy-photo library Usage Description allows this app to access your media database.
* Address Book permissions: Privacy-contacts Usage Description allow this app to access your address book.
* Bluetooth Permissions: Privacy-bluetooth peripheral Usage Description Whether Xu Yun this app uses Bluetooth.
* Voice-text permissions: Privacy-speech recognition Usage Description allows this app to use speech recognition.
* Calendar permissions: Privacy-calendars Usage Description allows this app to use the calendar.
* Location Permission: privacy-location When using Usage Description we need to obtain information about your surroundings through your geographic location
* Location permissions: privacy-location Always Usage Description We need to obtain information about your surroundings through your geographic location.

9. Reference: 45 F: Dcook-> Mjrefresh iOS10 system after each Drop-down refresh can not fully restore the normal state y-axis distance is always about 20 of the difference ... (MJ, who is also used by the landlord, says that he has not found the problem for the time being)
Solution: http://www.cnblogs.com/dev1024/p/5889865.html

10. Reference: Rainy season fog itunesconnect upload encountered problems, ERROR ITMS-90682: "Invalid Bundle." The asset catalog at ' Payload/eliteplus.app/assets.car ' can ' t contain 16-bit or P3 Assets if the app is targeting IOS rele ASEs earlier than IOS 9.3. "
Workaround:
Http://www.cnblogs.com/zyonbao/p/5872943.html
http://www.jianshu.com/p/b13e1e441116


11.iOS 10 flash-back crash due to Apple health
Original link: http://www.jianshu.com/p/545bd1bf5a23
Terminating app due to uncaught exception ' nsinvalidargumentexception ', Reason: ' nshealthupdateusagedescription must is s Et in the app ' s info.plist into order to request write authorization. '


12. Reference to the 79 floor: New caanimationdelegate, previously used caanimation files need to force add agent

13. On the shelves of Apple stores, if an IPA is uploaded, but not at the time of submission, make sure that the permissions in your application have been added, whether the added permissions are filled in, and whether the push has been turned on (as appropriate);

14. Teach you how to use plug-ins scientifically on Xcode8

Turn from: Ame_ Rain Link: http://www.cocoachina.com/bbs/read.php?tid-1705417.html

Good Article recommend 1:http://blog.csdn.net/jnbbwyth/article/details/52576169
Content: Certificate Management/xib considerations/Code and API note/code comments can not be used solutions/permissions and related Settings 6. The font size is larger, the original frame needs to fit 7. Push 8. Screen the messy bugs

Good Article recommendation 2: Dance from the moon http://www.cocoachina.com/bbs/read.php?tid-1695563.html
IOS 10 album Camera Flash back Bug
http://www.jianshu.com/p/5085430b029f
IOS 10 flash crash due to Apple health
Http://www.jianshu.com/p/545bd1bf5a23
Microphone, multimedia, map, Address Book
IOS 10 Camera etc crash
Http://www.jianshu.com/p/ec15dadd38f3
IOS 10 Configuration Notes
http://www.jianshu.com/p/65f21dc5c556
iOS development fit with iOS 10 and Xcode8
Http://www.jianshu.com/p/9756992a35ca


Good article recommended 3:IOS10 push notice:
Http://www.cocoachina.com/ios/20161017/17769.html

Good article recommended 4:xcode8 new features and pits
Http://www.cocoachina.com/ios/20161024/17830.html

Good article recommended 5:IOS10 not log:
http://ios.jobbole.com/89270/

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.