"Go" unity5.x release iOS project Xcode8 visa-free Debug Release tutorial

Source: Internet
Author: User

Http://www.jianshu.com/p/b0fb49fbcc14

Recently tried to publish the iOS project, found that the release is much easier now, do not need a developer account can be simple and quick to debug the real machine.

Debugging:

1. Preparatory work
① Hardware: Mac machine one; An iphone or ipad device
② sign up for an Apple account
③ Download unity5.x, search Unity download
④ to AppStore download Xcode8

2. Release iOS in Unity
The published project needs to be debugged with a real machine.
①unity publishing a real-machine debug: Build settings→player settings→other settings→sdkversion→ Select Device SDK
② basic information: Build settings→player settings→ fill <company name> < Product name>
③ basic information: Build Settings→player settings→ fill in other settings->bundleidentifier (consistent with the above information, or permissions may be problematic)
Before ④ release, note that you need to set the icon and splash image. Build settings→player Settings→default icon should also be set.
⑤ chooses the CPU architecture based on its Apple device, Build settings→player settings→other settings→architecture→ new iphone and 64-bit is ARM64, itouch or the old version of the iphone is 86-bit ARmv7, do not know the device is that you can check the Internet


If a project made by another platform is transferred to iOS development, you can put the project directly on the Mac and then run Unity release, but the first time the project is large, the platform conversion time will be longer and patiently waiting.
After posting to iOS, it's a Xcode project.

3. Open the Xcode8 project
Open the folder you got after publishing with Xcode8. XCODEPROJ "suffix name of file
① Connect your Apple device and choose Trust. Select the Apple device you're connected to generic IOS devices above Xcode
② top left corner triangle Debug button
③ after Xcode8 we need to open the Info.plist file to add a description of the appropriate permissions (camera, microphone, etc.), or the program will crash on the iOS10 flash back
If your app wants to access the user's camera, album, Microphone, Contacts, and so on, it needs to be configured, otherwise it will be crash directly.
You need to add some device permissions to your app in Info.plist.

Nsbluetoothperipheralusagedescription
Access Bluetooth

Nscalendarsusagedescription
Visit calendar

Nscamerausagedescription
Camera

Nsphotolibraryusagedescription
Album

Nscontactsusagedescription
Contacts

Nslocationalwaysusagedescription
Always access location

Nslocationusagedescription
Position

Nslocationwheninuseusagedescription
Access location during use

Nsmicrophoneusagedescription
Microphone

Nsapplemusicusagedescription
Accessing the Media Library

Nshealthshareusagedescription
Access to health sharing

Nshealthupdateusagedescription
Access Health Updates

Nsmotionusagedescription
Access to sports and fitness

Nsremindersusagedescription
Access Reminders

Older versions of Xcode are not used, it is recommended to develop with 7.3, strong compatibility with unity, but the iOS 10 version is not supported by default


④ Left folder is a project, project settings can be made

4. Create a certificate
Login Team: Click unity-iphone→general→signing→team→ to login to your Apple account → Click Viewdetails→create an iOS development


 
5. Release Run
Click the Run button in the top left corner of Xcode and wait a few moments to see your project on your connected Apple device, trust your Apple account certificate in the settings, and then run it.

Release:

1. First you need to have a developer account, I am the company provided to me

2. Login https://developer.apple.com/account/#/itunes-connect/

3. Select "My App" to click "?" to create a new app


Paste_image.png

4. Fill in all the information

5. Upload *.ipa to the store

6. Add uploaded *.ipa to "my App"

7. Submit a review

"Go" unity5.x release iOS project Xcode8 visa-free Debug Release tutorial

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.