Summary of common problems such as xcode8 and ios10 adaptation (finishing)

With the update of IOS 10 and xcdoe 8, there are many problems. Today, Xiaobian takes the time to share the pits I encountered with you and have a look together.

1. Access rights

IOS 10 began to be more strict about accessing users' privacy rights. If you don't set it, it will crash directly. The solution is in info Just add the corresponding key value to the plist file.

PS: the corresponding value can be filled in by user

2. Xcode 8 solution for running and printing a pile of logs

Just add the following key value values in run - > arguments - > environment variables

OS_ ACTIVITY_ MODE = Disable

3. The problem that the Xcode 8 plug-in cannot be used

The Xcode 8 plug-in was rejected. Through some searching, it was learned that it was to avoid the Xcode ghost event. If the plug-in was used, there might be security problems and the submission for approval would be rejected. Therefore, it is recommended that you do not use it. There are always solutions. It is also convenient to add comment code blocks in Xcode. Xcode 8 has built-in function of opening comments, The location is here

PS: you can set your own shortcut keys

4. Push problem

In xcdoe 8, you need to turn on the push switch in targets - > capabilities

PS. Apple has made great changes to push this time. It hasn't been studied yet. You can check or recommend relevant articles by yourself! thank! 🙏🙏🙏

5. The font becomes larger

The font in IOS 10 has changed. If there is a fixed frame control before, it may need to be modified

6. Certificate management

Apple in Xcode 8 can help us manage certificates automatically. Check it as shown in the figure below.

7. Code error

After using xcode8, the proxy method of uiwebview reports an error.

Solution: delete nullable in front of nserror.

The above is a summary of common problems such as xcode8 and ios10 adaptation introduced by Xiaobian, and some adaptations. I hope they will be helpful to you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>