ios deployment issue [solved]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

ios deployment issue [solved]

Post by sms5138 » Sat May 16, 2015 8:41 pm

Hi everyone,

I'm trying to deploy to ios to test out the app with a small group in test flight. I have the app set up, and created a provisioning profile, but i am not able to select a profile from the standalone settings. the only option available it "none" and i am unable to get a drop down menu of any kind. I've been looking for a while and have been unsucessful in finding much information on this matter. I wondered if anyone else has created a successful ios deployment, and perhaps had any idea what step i'm missing.

Thanks in advance for any help you can provide.

-Sean
Last edited by sms5138 on Wed Jun 03, 2015 3:11 pm, edited 1 time in total.

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: ios deployment issue

Post by dave.kilroy » Sat May 16, 2015 9:24 pm

Hi Sean - if you open LiveCode's preferences and then open the 'mobile support' section do you see Xcode listed there and a nice green colour showing the little box? If not then LiveCode isn't connecting with Xcode

Also, if you open Xcode and then from the Xcode menu choose preferences, and then choose 'accounts', do you see your details listed there? If so if you click 'view details' do you see all your provisioning profiles and certificates listed? and are they all showing as valid and not expired?

Thirdly, after you created your provisioning profile did you download it and then double-click it in finder?

Kind regards

Dave
"...this is not the code you are looking for..."

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Sun May 17, 2015 5:16 pm

Hi Dave!

Thank you for getting back to me.

I have ensured that the box is green and xcode is connecting to livecode. i could even successfully test my app in the iPhone emulator.

I believe i may be missing something on the second step. I have gone to accounts, and see that my email address is indeed listed as an account, but when i click on it the "view all" is greyed out and the following message is displayed.

"'myemail' is Not on Any Developement Teams"

I'm not sure how i create or join a team. I'm looking to develop as an individual, and do not wish to be part of a team (at least for the time being)

I did take your advice regarding the provisioning profile that i had downloaded. I double-clicked it in finder, and it made an animation as if it were opening, but nothing ended up happening.

I'm sure i'm missing something silly, and would appreciate any information regarding this.

Thanks!

-Sean

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: ios deployment issue

Post by dave.kilroy » Sun May 17, 2015 5:59 pm

Hi Sean

You can still join as an individual rather than a team - though it does sound as if you haven't finished setting yourself up as a developer with apple. Apple will allow free accounts to deploy apps to their simulator, but if you want to put an app on your own iOS device you have to join their 'paid for' programme that costs $99 a year (as far as I remember).

But maybe you already have joined up and just haven't generated your certificates - if you go to apple's developer portal and enter the Certificates section do you see something like this?
Screen Shot 2015-05-17 at 17.52.04.png
Kind regards

Dave
"...this is not the code you are looking for..."

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Mon May 18, 2015 9:48 pm

Hi Dave,

I've included the steps i've taken below to create a provisioning profile if you have time to take a look, and let me know if i'm missing anything that'd be greatly appreciated.

1) open up the keychain on my Mac, and go to the following Keychain>certificate assistant>request assistance from certificate authority
Screen Shot 2015-05-18 at 4.33.59 PM.png
1
2) fill out the fields as stated on Apples site, and save the file to desktop.
Screen Shot 2015-05-18 at 4.37.42 PM.png
2
3) log into Certificates, Identifiers & Profiles on developer.apple.com can select certificates>all>Certificate Signing Request
Screen Shot 2015-05-18 at 4.41.08 PM.png
3
Last edited by sms5138 on Mon May 18, 2015 9:59 pm, edited 1 time in total.

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Mon May 18, 2015 9:59 pm

4)select iOS development>continue, and then upload my file and click "generate"
Screen Shot 2015-05-18 at 4.44.16 PM.png
4
Screen Shot 2015-05-18 at 4.46.04 PM.png
5
5) i download the file that it generates, and double-click it. The animation appears as if it is about to open but nothing happens.

6) i go back to the webpage, and select device, and add my udid number as requested. no issue there. i then go to provisioning profile, and follow the instructions by selecting my app id which was created earlier, the certificate that was just created, and lastly my device.

7) a provisioning profile is created, and downloaded. I double-click the downloaded file, and it takes me to the xcode opening screen. I go to see my account, and this is all i see...
Screen Shot 2015-05-18 at 4.57.07 PM.png
6
All the resources i find online are saying this is what i need to do, and yet i yield no progress? is there anything i'm missing?

Thanks,

Sean

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Mon May 18, 2015 10:17 pm

Well i feel very silly having repeated the same steps over and over for the past few days... i tried something outta the blue and it worked! i just deleted my email address from the account page, and then added it back in and it found all the previously created provisioning profiles.... color me embarassed.... :oops: Thanks for all the help Dave! I really appreciate it! Turns out to be another case of user error...

Regards,

Sean

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Mon May 18, 2015 10:42 pm

Plug one hole, and it sprouts two more.. i'm now getting the following message:

"could not find a valid identity for use for the selected profile"

If i could get any advice on this i'd be very grateful.

thank you in advance!

Sean

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: ios deployment issue

Post by dave.kilroy » Mon May 18, 2015 11:31 pm

Hi Sean - good, you're making progress

Getting the Apple ducks all in a row is tricky so its not just you! (more fun and games each year when you have to renew your certificate and uploading an app to iTunes Connect can also be weird...)

Before your last posting I was about to point out that you hadn't mentioned 'Registering an App ID' and you (usually) need one of these in order to create a valid Provisioning Profile

The 'could not find valid identity' message can be caused by several things - and usually the way past this block is to create a brand new App ID and Provisioning Profile, download them carefully and double click them in finder (when you do this you only get to see a tiny flicker as they are registered) - then go to Xcode and click on the 'View Details' link - and you should see something like this:
Screen Shot 2015-05-18 at 23.26.30.png
If your screen is showing you invalid or expired items then zap them, when each entry is 'valid' you should be good to go

Be sure to delete any old conflicting provisioning profiles on your hard drive, the simplest thing is to name each new one you make uniquely

Good luck!
"...this is not the code you are looking for..."

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Wed May 20, 2015 12:19 pm

Hi Dave,

I wanted to follow up and say thank you! i've not yet had time to take another crack at this, but will follow up once i have!

I appreciate your help on this!

-Sean

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Sun May 24, 2015 1:42 pm

I got the app to build successfully, but am slightly confused. it created a folder, but there does not appear to be anything in it? I'm i missing something or are there hidden files?

- Sean

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: ios deployment issue

Post by dave.kilroy » Sun May 24, 2015 1:53 pm

Hi Sean - good you are making more progress!

Are you being asked where to save your standalone files as part of the build process? If so then the .app file should be saved there.

If you are not being given a prompt to say where to save the standalone it may be that LiveCode thinks it should by default save it somewhere else. If you open the 'Standalone Application Settings' dialog box for your app do you have a 'Default build folder'? (see the text box and checkbox towards the bottom of the 'Standalone Application Settings' for one of my apps for which I have set a default build folder)
Screen Shot 2015-05-24 at 13.45.42.png
"...this is not the code you are looking for..."

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

Re: ios deployment issue

Post by sms5138 » Mon May 25, 2015 2:26 pm

Hi Dave,

Thank you for your help! i've now successfully created a .app, and created a listing in iTunes connect. I click "Prerelease", and see the following message "Submit your builds using Xcode 5.1.1 or later, or Application Loader 3.0 or later."

I must say i'm beginning to feel a bit foolish for not being able to figure all these steps out, but at any rate i've now downloaded application loader as suggested by iTunes connect.

I've opened application loader, and click "Deliver your App", and navigate through the finder window to where my application has been saved. I see in the folder that the .app is there, but it is greyed out with a circle with a slash through it (like a no smoking sign).

I guess my question is, what do i do with the .app, and how do i get it into iTunes connect? I remember you mentioning that that'd be a "fun" process, and now i'm beginning to see why.

Thanks in advance for any help you can provide.

-Sean

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: ios deployment issue

Post by dave.kilroy » Mon May 25, 2015 3:05 pm

Hi Sean - you can't upload an .app file to iTunes Connect, it has to be a .ipa file. I usually use AirLaunch (http://hyperactivesw.com/airlaunch/index.html) to transform my .app to .api but I think you can also use iTunes to do it (or at least you used to be able to do it this way - but it was a hassle...)

However before you get to upload to iTunes Connect you'll need to have a distribution certificate and distribution provisioning profile (as opposed to development ones) and to have incorporated these into your app.

And one would normally only upload to iTunes Connect once you have finished testing on a real device and are ready to place in the App Store (unless you are trying to get TestFlight working).

Have you really finished testing on your devices? If you only want to test your app on a real device you shouldn't use iTunes Connect - use a USB cable and Xcode to get the app on your device...
"...this is not the code you are looking for..."

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 157
Joined: Thu Jun 29, 2006 4:16 pm

Re: ios deployment issue

Post by Randy Hengst » Mon May 25, 2015 3:36 pm

Hi Sean,

As I recall, these are the steps.

Create the .app file with LiveCode… you’ve already done this according to your post
Compress it
remove all spaces from the name

open Application Loader
Select “Deliver Your App” ... it’s the default
Press “Choose”
Select your compressed app file.

Follow the next screen steps.

After the app is successully sent, go back to iTunes Connect, your app page.
Scroll down to the bottom and select Submit Build… you should see the app icon as a selection option.
Then (I think) you’ll have to scroll back to the top to hit “Save”…

You’ll have to agree to some other restrictions after submit.

be well,
randy

Post Reply