iOS Build without Mac

  • 1
  • Question
  • Updated 8 years ago
Can all of the docs/files needed for PhoneGap Build for iOS (https://build.phonegap.com/docs/ios-b...) be completed via Apple's Dev website?

I have used UDK for iOS on a PC and they make it so you can create certs, provisioning files, etc via Apple's website and then upload those files to UDK.

Can I do the same for PhoneGap Build? If so, where is the how-to?
Photo of skeinath

skeinath

  • 2 Posts
  • 1 Reply Like
  • unsure

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
We haven't developed any tools for doing this (creating cert requests, exporting certs) on Windows, but we're agnostic about it. If you send us a valid certificate and profile, we'll be able to build your apps.
Photo of bitwave

bitwave

  • 10 Posts
  • 0 Reply Likes
skeinath;
did you evetually manage to do this without using a Mac?
Photo of skeinath

skeinath

  • 2 Posts
  • 1 Reply Like
Not yet. I will test it out in a couple weeks.
Photo of OKeez

OKeez

  • 25 Posts
  • 0 Reply Likes
After much digging, I think I figured it out using only OpenSSL on Windows, based on some great info videos from Brent Arnold to do something similar for Adobe based iOS development:

https://www.youtube.com/watch?v=mpzSXA...
https://www.youtube.com/watch?v=4GteMg...

This was accepted on both the apple dev site and PG Build, and my app has been queued for a while to build as I write this.

#Step 1 - create private key
openssl genrsa -out mykey.key 2048

#Step 2 - Create Certificate Signing Request
C:\OpenSSL-Win32\bin\openssl req -new -key mykey.key -out CertificateSigningRequest.certSigningRequest -subj "/emailAddress=email@address.com, CN=Your Name, C=US"

#Step 3 - Upload the created CSR to apple developer site to create certificate and download the developer_identity.cer

#Step 4 - Set up your app & provisioning and download the provisioning file on the apple Dev site

#Step 5 - convert developer_identity.cer to pem
C:\OpenSSL-Win32\bin\openssl x509 -in developer_identity.cer -inform DER -out developer_identity.pem -outform PEM

#Step 6 - export to .p12 (entering password required)
C:\OpenSSL-Win32\bin\openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dist.p12

# Step 7 - upload .p12 and provisioning to PhoneGap Build (use same password as above)
Photo of OKeez

OKeez

  • 25 Posts
  • 0 Reply Likes
FYI - build still queued after 1 hour, will keep you posted if this works or not
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Looks like your app successfully built OKeez - were you able to install on your device? If so, I'll check if we can put your process in our docs - it's something a lot of people have been asking about.
Photo of OKeez

OKeez

  • 25 Posts
  • 0 Reply Likes
Yes, I just ran the app successfully on my iPhone, so the workflow described seems to be valid.

I've written out the steps in much greater detail here as you indicated it could be helpful:

http://community.phonegap.com/nitobi/...
Photo of mrmarionoble

mrmarionoble

  • 3 Posts
  • 0 Reply Likes
you rock, OKeez! just what I was looking for.
Photo of kxb

kxb

  • 4 Posts
  • 0 Reply Likes
There are online options available like Mobundler.com which let you create p12 bundle and java keystore without Mac and/or OpenSSL.