We are trying to build iOS application using NativeScript sidekick on a Linux machine.
We got to the stage where it asks for certificate and provisioning profile.
How do we get these files?
We have a paid Apple developer Id. We created a certificate but it downloads a CER and we have no Idea what extension sidekick needs (it is not CER for sure).
How do we create the file that sidekick needs?
It also asks for a provisioning profile how do we get this?
Native script IOS deployment
455 Views Asked by Ori Idan AtThere are 2 best solutions below
On
Finally solved it. Note I have no MAC, only Linux.
NativeScript Sidekick requires two files: Certificate with extension: p12 Mobile provisioning file with extension: mobileprovision
To get the P12 file we first need to create a key: openssl genrsa -out ios_distribution.key 2048 Then create a sign request file (CSR) openssl req -new -key ios_distribution.key -out ios_distribution.csr In FQDN field enter the bundle id. Click enter for password (no password)
Go to apple developer website, under certificates Click + for new certificate. Choose either development or distribution, upload the CSR file created previously, you will then see a download button to download a CER file. Download it. Convert it to PEM using the following command: openssl x509 -inform der -in ios_development.cer -out ios_development.pem Note that ios_development.cer is the file you just downloaded.
Download the file: AppleWWDRCA.cer from: https://www.apple.com/certificateauthority/
Convert it to PEM using: openssl x509 -in AppleWWDRCA.cer -inform DER -out AppleWWDRCA.pem -outform PEM
Create the P12 file using: openssl pkcs12 -export -out ios_development.p12 -inkey ios_distribution.key -in aps.pem -certfile AppleWWDRCA.pem
In order to create a provisioning profile you will need to create a new app. id, this is done from apple developer under identifiers. After you have an identifier you can create a provisioning profile.
I don't understand why it has to be so complicated and why there is no guide how to do it?
You want to publish your ios application on app store you use command prompt it's very simple and fastly publish your app on app store. So first set your app store configuration in project directory App_resources -> iOS -> build.xconfig file.
Step-1:- build.xconfig
Step 2:- Execute this command for run project in Simulator.
Step 3:- Build iOS project and generate relase ipa file for publish your application.
Step 4:- Upload release ipa build on app store.
1. Upload iOS Package And Build On App Store With Bundle Using This Command
OR
2. Upload iOS build on App Store With IPA File Using This Command.