Summarizing the problems needing attention in the development of adaptation IOS10 _ios

Source: Internet
Author: User

Just a short time ago, Apple has just released its new operating system IOS10. The tragedy is that on the day the new system was released, the company was anxious to release a new version, the problem ... Who knows what kind of ghost the app is going to have on IOS10! The most fear is the flash-back ... So in front of the line to do a lot of IOS10 work, which also stepped a lot of pits. So here's a summary of the records.

1. Automatic Management Certificate

The first thing to say is Xcode8. The most obvious way to open Xcode8 is the Automatic Management Certificate module under Targets-->general. In the past, for beginners, both development and packaging must be abused by Apple's development signature system several times to really understand its principles and procedures. Now seemingly directly on the hook "automatically manage signing", Xcode8 everything to help us do. I have to say it's really convenient!

But seriously, this "Automatically manage signing" button is to automatically help us create AppID, Cetificaiton, profire provision and so on in the developer Center and automatically associate. However, if we do not standardize the certificate management, it is very likely that the revoke certificate situation. This has been a headache for a long time. So I would also recommend that developers manually create and manage certificates themselves. Oh, this automatic management of the certificate button we choose not to hook up.

2, the disorderly log output

Xcode8 startup after a series of disorderly log output, the first reaction is this what ghost!

Check on the Internet, the original output of this log can be closed. Close path: Edit scheme-->run-->arguments-->enviroment Variables, add a configuration option just fine. "Os_activity_mode = Disable".

3, push to add entitlements file signature

Xcode8 adds an important feature: adding entitlements file signatures for push. So, if your application is support push, that must remember to open this entitlements file signature switch! Otherwise, the app will not be able to receive the push message when it initiates the registration push service.

The next picture of the switch remember to open!

In addition, Apple has made significant adjustments to the push framework and API, requiring developers to make appropriate adaptations to ios10+, which will be described in detail later.

4, System permissions set

IOS10 more stringent control over the use of system permissions.

If the app wants to use one of the system's permissions, it must set the appropriate permission description in the project Settings Info.plist file, or else it will crash on the IOS10.

In fact, if your application uses a system-specific permission, but does not have the appropriate permission description, then your application will be changed to invalid binary immediately after uploading to itunes Connect.

Because this hole we stepped on the first day: with Xcode 8 package upload app, local verification and IPA upload is normal, but upload success, the package is immediately changed
To invalid Binary,itunes connect the build version of the background has also been out. A look at the feedback message, the reason is to use a certain system permissions but did not add the appropriate permission instructions!

The appropriate system permissions are described below:

Microphone Permissions---> Privacy-microphone Usage Description: Do you want to allow this app to use your microphone?

Camera Permissions---> Privacy-camera Usage Description: Do you want to allow this app to use your camera?

Album Permissions---> Privacy-photo library Usage Description: Do you want to allow this app to access your media database?

Address Book Permissions---> Privacy-contacts Usage Description: Do you want to allow this app to access your address Book?

Bluetooth Permissions---> Privacy-bluetooth peripheral Usage Description: Do you Xu Yun this app to use Bluetooth?

Voice-text Permissions---> Privacy-speech recognition Usage Description: Do you want to allow this app to use speech recognition?

Calendar Permissions---> Privacy-calendars Usage Description: Do you want to allow this app to use calendars?

Locate Permissions---> Privacy-location when in use Usage Description: We need to obtain information about your surroundings through your geographic location

Location Permissions---> Privacy-location Always Usage Description: We need to access your geographic information

5, the font becomes larger, some of the original control appears font display is not full

The font under IOS10 is larger than the original font.

Before just good display of the text in the IOS10 on the display is not complete, because the IOS10 Chinese font than the original font to large, the current solution is to set the original fixed width and just show the full control of the adjustment again: either widen the width or the content of the adaptive size.

6, IOS10 jump to system settings, the corresponding method has been prohibited

Before iOS10, we can jump to set the appropriate page by using the following methods:

Skip to the Set WIFI page  

Other than that:

IOS6 and IOS7 need to set the URL schemes: Add a new Item (prefs) to the URL types.

IOS8 and IOS9 do not need to set this.

IOS10 has been banned, so IOS10 's system can remove this part of the business logic.

7, Xcode code comments can not be used

This is because Apple solves Xcode ghost and shields the plugin.

Solving method

Open terminal, command run:

Sudo/usr/libexec/xpccachectl

Then you must reboot the computer to take effect.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.