Sencha Touch - Native iOS Provisioning



Sencha Touch provides native IOS provisioning feature. Following are the steps to create and install a native application on the device running iOS for development and testing.

Following are the steps to run an application on an iOS device.

  • Create, download, and convert an iOS certificate
  • Create an application id
  • Register the device
  • Create and download a provisional profile

After apple development portal steps are done, go through the following steps −

  • Configure the application package configuration
  • Generate an application
  • Run a package application

Create, Download, and Convert an iOS Certificate

All native iOS application need iOS certificate. One certificate can be used for multiple applications, so once you have created a certificate use the same across applications.

Use the following steps to create iOS certificate which is the same for Windows, Mac OS; however, the commands are different.

Step 1 − Generate a Certificate Signing Request (CSR).

This is a prerequisite to create an iOS certificate. You can use an app builder to create CSR. You should be logged in to the app builder and should have your app code running in it.

Click the cogwheel icon and select option. Then select iOS cryptographic identity and click create. Enter your details and click OK.

Once you click OK, it may prompt to specify the name and location to save the downloaded file. Provide the required information.

Cryptographic certificates come in P12 format.

Steo 2 − Go to the Apple Development Portaland follow the steps −

Once you have CSR with you, log in to the iOS development center and click the certificate section.

Click Certificate, then Development, and next click Add.

Select iOS development center and click Continue.

Provide your CSR and click Continue again.

Click download for downloading the generated certificate and click Done.

Create Application Id

Application Id, also known as bundle id is a unique string, which identifies your application.

You can use the same id for development purpose; however, for production each application should use a unique id. Id can be created from Apple development center.

Register the Device

You need to register your device with Apple development center if not already done. All devices need to be registered once.

To register a device, you may need UDID. It is a unique id of the device, which you can get out of iTunes of your device.

To check your UDID, open iTunes in your computer and connect your device to it. Click its name under the device list and go to the summary page. Then click the serial number, which is the UDID for your device.

To add your device, click the add device option in the portal and provide your UDID.

Create and Download a Provisional Profile

This step is to link your iOS certificate, application id, and device to run your application.

To generate a provisioning profile, provide a name to the profile and provide your appId and iOS certificate with the device information.

Now generate and download the provisioning profile. Default name for the provisioning profile file would be _profileName_.mobile provision, where profileName is the name you provide during provisioning.

Configure the Application Package Configuration.

This step is to create a packager for your application. Run the following command to generate a packager. You can edit the packager and provide your application Id as well as other relevant information specific to your application.

sencha app package generate packager.json

Generate application

Build your application using the following command in Sencha CMD.

sencha app build native 

Run a Package Application

Once all the above steps are complete, you can finally test your application on iOS device.

Launch iTunes and go to the Apps library. Add your .app directory to the Apps screen.

Finally, in your device, go to apps and choose the app from Apps library. Install and launch the app. You will see your app is running successfully.

sencha_touch_packaging.htm
Advertisements