reloading iOS provisioning profiles etc
William Prothero
prothero at earthednet.org
Thu Sep 29 19:55:27 EDT 2016
Dave Kilroy:
Dave, your prescription for loading the iOS app really helped a lot!!!
I got the app onto my iPhone is less than an hour and most of that was spent making icons. It solves a problem of using very complex software to do a rather simple task and it’s so easy to go wrong at any step. It’s the gotchas that are critical.
BTW, I used LC 8.1 (rc1) and XCode 8. My Mac is on 10.11.6. I’m waiting to upgrade until I’m assured LC will build and load iOS apps on the new version of OSX.
One thing I had to do was first create an appID profile for my app. No biggy. After I made the provisioning profile and launched Xcode and looked at it in the Preferences:Accounts pane, I had some old profiles and tried to delete them, but they didn’t all delete. The right click on the profile line to open the enclosing folder was wonderful! I just dragged all my old profiles into the trash, figuring to download the ones I needed. But, then the XCode list of profiles didn’t show up as downloads. Probably something on the developer site didn’t update them, because they did show up and the web site. So, I downloaded the profile manually from the developer site and dragged it into the correct folder (which I found by right clicking on the Preferences:Accounts profile line). It showed up and, to my surprise, it loaded onto my iPhone. Whoopee!
Wow, I’m so happy that now I have a bunch of unplanned time, so I’ll go have a glass of wine and drink a toast to you.
Best,
Bill
>>
>> You can’t force LC to refresh provisioning profiles - LC only uses provisioning profiles made at the developer portal and stored on you computer. These are the steps you should consider when adding a new device...
>>
>>
>>
>> At the Developer Portal:
>>
>> - add your new device’s UDID in the ‘Devices’ section
>> - in the ‘Provisioning Profile’ section edit the provisioning profile of the app you are interested in - including your new device in the ‘Devices’ box (this box is a scrolling field so all your devices may not be in view)
>> - click the ‘Generate’ button
>> - do not click the ‘Download’ button
>>
>>
>>
>> On your computer (Keychain Access)
>>
>> - check the ‘my Certificates’ section for any expired keys/certificates - zap all non-current ones
>>
>>
>>
>> On your computer (Xcode)
>>
>> - open Xcode
>> - open ‘Preferences’
>> - open the ‘Accounts’ tab
>> - click on your Apple ID
>> - click on one of the listed ‘team member’ roles (there may only be one)
>> - click the ‘View Details’ button
>> - wait a few seconds for data to refresh
>> - in the upper ‘Signing Identities’ box ensure your certificates are up to date
>> - in the lower ‘Provisioning Profiles box remove any duplicate Provisioning Profile by right-clicking them and choosing ‘Move to Trash’
>> - click any showing ‘Download’ buttons showing alongside Provisioning Profile (and get rid of all duplicate Provisioning Profiles)
>> - tidy up all the profiles in each of your ‘team role’ entries
>> - if you have any remaining profiles you can’t get rid of, right-click one of the provisioning profiles and select ‘View in Folder’ (this shows you where profiles are stored locally and you can delete all of them and download them afresh (close and reopen Xcode preferences to get it to refresh) - try to ensure that you only have valid provisioning profiles on your computer - and only one copy of each profile
>>
>>
>>
>> On your computer (LiveCode)
>>
>> - open LiveCode
>> - open your app
>> - open the ‘Standalone Application Settings’ dialog box
>> - open the iOS tab
>> - find the relevant Provisioning Profile in the ‘Profile’ drop-down (there should only be a single profile with your app’s name in the list)
>> - save your app
>> - try building an iOS standalone
>>
>>
>>
>> You should now have built a new version of your app that can be installed on your new device.
>>
>>
>>
>> BTW the reason I recommend not clicking the ‘download’ button on the Developer Portal is that getting Xcode to do the downloading is neater and means it’s easier to ensure you only have a single and valid Provisioning Profile for each of your development apps on your machine for LiveCode to access
>>
>> One other thing - I always add “ - development” or “ - distribution” to profile names so that when it comes to adding the correct one from the LiveCode drop-down I can be sure I’m adding the correct type of profile…
>>
>> Kind regards
>>
>> Dave
>>
>>
More information about the use-livecode
mailing list