setting up an ios device for...

12
// Setting up an iOS device for development Mark Smith | [email protected]

Upload: others

Post on 21-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

//

Setting up an iOS device for development

Mark Smith | [email protected]

Page 2: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

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.

Page 3: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

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!

Page 4: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

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?

Page 5: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

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

Page 6: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

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

Page 7: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing 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

Page 8: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing 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

Page 9: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing 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

Page 10: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

Demonstration

Page 11: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

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

Page 12: Setting up an iOS device for developmentxamarinuniversity.blob.core.windows.net/lightninglectures... · 2015-08-21 · 1. Registered Apple developer account 2. Code-signing certificate

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

// Setting up an iOS device for development