setting up an ios device for...

Post on 21-May-2020

4 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

//

Setting up an iOS device for development

Mark Smith | mark.smith@xamarin.com

Information in this document is subject to change without notice. The example companies, organizations, products, people, and events depicted herein are fictitious. No association with any real company, organization, product, person or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user.

Xamarin may have patents, patent applications, trademarked, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any license agreement from Xamarin, the furnishing of this document does not give you any license to these patents, trademarks, or other intellectual property.

© 2015 Xamarin. All rights reserved.

Xamarin, MonoTouch, MonoDroid, Xamain.iOS, Xamarin.Android, and Xamarin Studio are either registered trademarks or trademarks of Xamarin in the U.S.A. and/or other countries.

Other product and company names herein may be the trademarks of their respective owners.

v Simulator is great but …§ Uses different runtime (JIT)§ Uses desktop CPU + memory§ Hardware features are simulated

v Your app might run great on the simulator and crash or struggle with performance on a real device

v So test on the kinds of devices your target users will have!

Test on a real device!

1. Registered Apple developer account2. Code-signing certificate for development (public/private keys) issued

by Apple developer portal and installed on your Mac3. iOS device plugged into your Mac4. Provisioning Profile for development installed on your Mac

What do I need?

What is the provisioning profile?Provisioning Profile

App ID

entitlements

DistributionCertificate

(public key)iOS Device

Appbundle id

entitlements

signed with private key

Device id List of valid devices

Must match (wildcard)

Must match

Must be key pair

Must be in list

Provisioning Profile is installed on the Mac and onto the device

v Xcode can request and install the required code-signing certificates and provisioning profiles by creating a new project using File > New > Project

Getting a development certificate

v On the General property page for the project (initially displayed), locate the Team drop-down and either select a team, or add an account

Getting a development certificate

v View Details for your organization and request an iOS Development signing certificate; the request will need to be approved by the team admin

Getting a development certificate

v Once the certificate and profiles have been downloaded, you can plug a device into the Mac with a USB cable, unlock it and select it in Xcodeand run the generated app – if the device is not registered, Xcode will do so and download the provisioning profile with the device id

Register an iOS device

Select the iDevice from the drop-down

Build + Run the app a single time to test deployment to the device

Demonstration

v Another way to setup your device is directly through the Apple Developer Portal – this requires a paid developer account to access

Manual provisioning

Certificates and profiles can be generated and then downloaded to your Mac

Thank You!Please complete the class survey in your profile:university.xamarin.com/profile

// Setting up an iOS device for development

top related