Distribution/Adhoc for testing - installing forever on iPhone

I’ve created a Distribution/Adhoc profile for testing on UDID-identified devices. all of this appears ok in Development Center - and my .app file is loads into iTunes OK.

One of the UDIDs registered is for my iPhone - and on my FIRST synch (laptop to iPhone), everything went fine and the app installed quickly. I opened it and it ran correctly. I discovered some bugs/corrections - and re-generated the .app file to iTunes.

The business app run fines in the Simulator (windows or apple).

SUBSEQUENT ATTEMPTS DO NOT INSTALL

but all subsequent attempts to install the app on my iPhone are failing. I can synch OK and the icon appears on my iPhone - but when i tap it, it remains in the “installing” mode forever. Another of my UDID testers is reporting the same problem.

I have been removing the app from my iPhone before i attempt another synch - but this is not resolving the issue. 

Is there a common issue that causes the app to download but not complete the install process?

Hi @sjhershnyc,

Have you tried installing the app via the Xcode Organizer? I find that to be a much more reliable method…

Brent

it may work easier for me as I’m the developer and have xCode installed - though I have not tried Organizer yet. but what about my testers who may not have access to xCode?

Thanks, Brent.

Hi @sjhershnyc,

Out of curiosity, did you try using a “Development” provisioning profile instead of an Ad Hoc one? Also, do you have the most up-to-date version of iTunes and are you using the most recent official build of Corona?

Brent

Per Rob’s suggestion, I’m using the Production profile via Ad Hoc. If relevant and important, my first download to my iPhone (via a registered UDID) installed fine - and the app functioned properly. My apple testers are reporting the “forever installing” status on their first attempt - and I’m getting it on all subsequent downloads.

My android .apk file installs fine via web server.

Re Corona Build, I’m using Version 3.0.0, Build 2014.2511. I’m at the lowest level of the Paying Users (not using a free version) - I’m assuming Corona will notify me when there is a new build available to me at my level.

My iTunes version 12.1.2 is the current one.

I tried changing my assigned internal app version on the Build process - but that didn’t help.

Do u have an alternate suggestion re distributing my test versions?

Thanks for the input, Brent.

Seth

Hi Seth,

There is a newer official build available, #2646. Please download that and test again.

Also, can you successfully build and install the sample “Hello World” project? I’d like to check if this is project-specific or not.

Thanks,

Brent

Brent -

I downloaded the .dmg file for 2646 - and am now getting this error when I attempt to do an iOS build:

Build failed:

ERROR: code signing failed: /Users/Seth/Desktop/ContractorsPA.app: replacing existing signature

/Users/Seth/Desktop/ContractorsPA.app: User canceled the operation.

I clicked the Corona Simulator icon within the 2646 folder and my app showed up correctly. But when I ran the Build for iOS, i got the above.

IPA FILE?

BUT my app does appear where I expected it in Apple FInder - but as an .ipa file. Can this be correct?

APPLICATIONS FOLDERS

What do i do with the original CoronaSDK folder in Applications folder vs the new one just downloaded, CoronaSDK-2646? Fwiw, i’m running Outlaw as my IDE.

I haven’t tried working with the Hello World file.

Thanks for helping me move this forward…

Seth

Hi Seth,

Let’s step back and try the most simple case.

  1. First, you are free to keep multiple versions of Corona SDK. Personally, I created a folder within “Applications” called “Corona”, and inside that I put different versions (each its own self-contained folder). That way, I can test and build using the most recent official build, but also more recent daily builds if necessary.

  2. I can’t vouch for anything that Outlaw IDE is doing. So, please simply locate and build the “Hello World” project located within the Corona SDK application folder (“SampleCode > GettingStarted”). Then report back if you can successfully build and install that project.

Brent

Brent -

On my Apple Laptop, I loaded the entire HelloWorld (from build 2646) project into Outlaw as a new Project. I launched Corona Simulator from within Outlaw with no problems. The CS displayed correctly. From CS, I did a build from the File menu to iOS.

The build failed – see last lines of CS Terminal output, below, for relevant error advisory.

Here are the initial lines of CS Terminal for the build:

+++++++++++++++++++++++++

Corona Simulator Console


Diagnostics and Lua print output will appear here

 

Jun 26 20:36:41.591: 

Copyright © 2009-2015  C o r o n a   L a b s   I n c .

Jun 26 20:36:41.591: Version: 3.0.0

Jun 26 20:36:41.591: Build: 2015.2646

Jun 26 20:36:41.609: Platform: iPhone / x86_64 / 10.10.0 / Intel Iris Pro OpenGL Engine / 2.1 INTEL-10.0.86 / 2015.2646

Jun 26 20:36:41.655: Loading project from:   /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld

Jun 26 20:36:41.655: Project sandbox folder: ~/Library/Application Support/Corona Simulator/HelloWorld-B4E578FCC38DEC2DCD350292030CDA39

Jun 26 20:37:19.990: Using Custom Build Id 00000

Jun 26 20:37:32.360: Using additional build settings from: /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld/build.settings

Jun 26 20:37:32.370: Contents of ZIP file from server:

Jun 26 20:37:32.375: HelloWorld.app/

+++++++++++++++++++++++++

 

Here are the last lines of the Terminal output:

+++++++++++++++++++++++++

Jun 26 20:37:33.734: Copying /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld/ReadMe.txt to /Users/Seth/Desktop/HelloWorld.app/ReadMe.txt

Jun 26 20:37:33.740: Copying /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld/world.jpg to /Users/Seth/Desktop/HelloWorld.app/world.jpg

Jun 26 20:37:33.742: Signing application with “iPhone Distribution: Seth Hersh (6VY6FBF4P2)”…

Jun 26 20:37:33.926: ERROR: build command failed: DEVELOPER_BASE="/Applications/Xcode.app/Contents/Developer"

Jun 26 20:37:33.926: export PATH="$DEVELOPER_BASE/Platforms/iPhoneOS.platform/Developer/usr/bin:$DEVELOPER_BASE/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Jun 26 20:37:33.926: export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate"

Jun 26 20:37:33.926: “/usr/bin/codesign” --verbose -f -s “13E703F58682ECC5422FB5DC9470C21B50300FA5” --entitlements “/var/folders/2z/jfd774ks2n77j97269ybj_fm0000gn/T/CLtmp7Uw61W/entitlements.xcent” “/Users/Seth/Desktop/HelloWorld.app”

Jun 26 20:37:33.926: ERROR: with exit code 1 and output: 

Jun 26 20:37:33.928: /Users/Seth/Desktop/HelloWorld.app: replacing existing signature

Jun 26 20:37:33.928: /Users/Seth/Desktop/HelloWorld.app: User canceled the operation.

Jun 26 20:37:33.928: BUILD ERROR: ERROR: code signing failed: /Users/Seth/Desktop/HelloWorld.app: replacing existing signature

/Users/Seth/Desktop/HelloWorld.app: User canceled the operation.

Jun 26 20:37:33.931: iOS build failed (12)

+++++++++++++++++++++++++

 

FWIW, I didn’t do anything to “cancel the operation”; the build simply failed.

 

Build Settings:

App Name = HelloWorld

Version = 1.0

Project Path = /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld

Build for = Device

Supported Devices = iPhone Only

Code Signing Identity = iPhone Distriibution: Seth Hersh (6VY6FBF4P2) [Seth Hersh - ContractorsPA]

iOS SDK = 8.3

Save to Folder = /Users/Seth/Desktop

 

Could my issues arise from the Code Signing Identity, which is the one in effect for the app I’ve written and am now having probs with installing on the iPhone? FWIW, i installed Build 2646 on my Windows PC and was able to get a successful Android build for my ContractorsPA app.

 

Seth

Brent - I’m back in business. Not sure what I did other than remove all the Profiles I had in Dev Center, removed unused Public/Private Keys not being used. I re-created my Certificates (one for Production-Ad Hoc and another for Development).

I think the issue arose from invalid Code-Signing Identities, which I removed and replaced, as well.

In any event, I downloaded successfully the Hello World app and my own ContractorsPA app. Both work as advertised (well, the latter isn’t being advertised yet).

Thanks for your nudges.

Seth

Hi @sjhershnyc,

Have you tried installing the app via the Xcode Organizer? I find that to be a much more reliable method…

Brent

it may work easier for me as I’m the developer and have xCode installed - though I have not tried Organizer yet. but what about my testers who may not have access to xCode?

Thanks, Brent.

Hi @sjhershnyc,

Out of curiosity, did you try using a “Development” provisioning profile instead of an Ad Hoc one? Also, do you have the most up-to-date version of iTunes and are you using the most recent official build of Corona?

Brent

Per Rob’s suggestion, I’m using the Production profile via Ad Hoc. If relevant and important, my first download to my iPhone (via a registered UDID) installed fine - and the app functioned properly. My apple testers are reporting the “forever installing” status on their first attempt - and I’m getting it on all subsequent downloads.

My android .apk file installs fine via web server.

Re Corona Build, I’m using Version 3.0.0, Build 2014.2511. I’m at the lowest level of the Paying Users (not using a free version) - I’m assuming Corona will notify me when there is a new build available to me at my level.

My iTunes version 12.1.2 is the current one.

I tried changing my assigned internal app version on the Build process - but that didn’t help.

Do u have an alternate suggestion re distributing my test versions?

Thanks for the input, Brent.

Seth

Hi Seth,

There is a newer official build available, #2646. Please download that and test again.

Also, can you successfully build and install the sample “Hello World” project? I’d like to check if this is project-specific or not.

Thanks,

Brent

Brent -

I downloaded the .dmg file for 2646 - and am now getting this error when I attempt to do an iOS build:

Build failed:

ERROR: code signing failed: /Users/Seth/Desktop/ContractorsPA.app: replacing existing signature

/Users/Seth/Desktop/ContractorsPA.app: User canceled the operation.

I clicked the Corona Simulator icon within the 2646 folder and my app showed up correctly. But when I ran the Build for iOS, i got the above.

IPA FILE?

BUT my app does appear where I expected it in Apple FInder - but as an .ipa file. Can this be correct?

APPLICATIONS FOLDERS

What do i do with the original CoronaSDK folder in Applications folder vs the new one just downloaded, CoronaSDK-2646? Fwiw, i’m running Outlaw as my IDE.

I haven’t tried working with the Hello World file.

Thanks for helping me move this forward…

Seth

Hi Seth,

Let’s step back and try the most simple case.

  1. First, you are free to keep multiple versions of Corona SDK. Personally, I created a folder within “Applications” called “Corona”, and inside that I put different versions (each its own self-contained folder). That way, I can test and build using the most recent official build, but also more recent daily builds if necessary.

  2. I can’t vouch for anything that Outlaw IDE is doing. So, please simply locate and build the “Hello World” project located within the Corona SDK application folder (“SampleCode > GettingStarted”). Then report back if you can successfully build and install that project.

Brent

Brent -

On my Apple Laptop, I loaded the entire HelloWorld (from build 2646) project into Outlaw as a new Project. I launched Corona Simulator from within Outlaw with no problems. The CS displayed correctly. From CS, I did a build from the File menu to iOS.

The build failed – see last lines of CS Terminal output, below, for relevant error advisory.

Here are the initial lines of CS Terminal for the build:

+++++++++++++++++++++++++

Corona Simulator Console


Diagnostics and Lua print output will appear here

 

Jun 26 20:36:41.591: 

Copyright © 2009-2015  C o r o n a   L a b s   I n c .

Jun 26 20:36:41.591: Version: 3.0.0

Jun 26 20:36:41.591: Build: 2015.2646

Jun 26 20:36:41.609: Platform: iPhone / x86_64 / 10.10.0 / Intel Iris Pro OpenGL Engine / 2.1 INTEL-10.0.86 / 2015.2646

Jun 26 20:36:41.655: Loading project from:   /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld

Jun 26 20:36:41.655: Project sandbox folder: ~/Library/Application Support/Corona Simulator/HelloWorld-B4E578FCC38DEC2DCD350292030CDA39

Jun 26 20:37:19.990: Using Custom Build Id 00000

Jun 26 20:37:32.360: Using additional build settings from: /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld/build.settings

Jun 26 20:37:32.370: Contents of ZIP file from server:

Jun 26 20:37:32.375: HelloWorld.app/

+++++++++++++++++++++++++

 

Here are the last lines of the Terminal output:

+++++++++++++++++++++++++

Jun 26 20:37:33.734: Copying /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld/ReadMe.txt to /Users/Seth/Desktop/HelloWorld.app/ReadMe.txt

Jun 26 20:37:33.740: Copying /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld/world.jpg to /Users/Seth/Desktop/HelloWorld.app/world.jpg

Jun 26 20:37:33.742: Signing application with “iPhone Distribution: Seth Hersh (6VY6FBF4P2)”…

Jun 26 20:37:33.926: ERROR: build command failed: DEVELOPER_BASE="/Applications/Xcode.app/Contents/Developer"

Jun 26 20:37:33.926: export PATH="$DEVELOPER_BASE/Platforms/iPhoneOS.platform/Developer/usr/bin:$DEVELOPER_BASE/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Jun 26 20:37:33.926: export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate"

Jun 26 20:37:33.926: “/usr/bin/codesign” --verbose -f -s “13E703F58682ECC5422FB5DC9470C21B50300FA5” --entitlements “/var/folders/2z/jfd774ks2n77j97269ybj_fm0000gn/T/CLtmp7Uw61W/entitlements.xcent” “/Users/Seth/Desktop/HelloWorld.app”

Jun 26 20:37:33.926: ERROR: with exit code 1 and output: 

Jun 26 20:37:33.928: /Users/Seth/Desktop/HelloWorld.app: replacing existing signature

Jun 26 20:37:33.928: /Users/Seth/Desktop/HelloWorld.app: User canceled the operation.

Jun 26 20:37:33.928: BUILD ERROR: ERROR: code signing failed: /Users/Seth/Desktop/HelloWorld.app: replacing existing signature

/Users/Seth/Desktop/HelloWorld.app: User canceled the operation.

Jun 26 20:37:33.931: iOS build failed (12)

+++++++++++++++++++++++++

 

FWIW, I didn’t do anything to “cancel the operation”; the build simply failed.

 

Build Settings:

App Name = HelloWorld

Version = 1.0

Project Path = /Applications/Corona/CoronaSDK-2646/SampleCode/GettingStarted/HelloWorld

Build for = Device

Supported Devices = iPhone Only

Code Signing Identity = iPhone Distriibution: Seth Hersh (6VY6FBF4P2) [Seth Hersh - ContractorsPA]

iOS SDK = 8.3

Save to Folder = /Users/Seth/Desktop

 

Could my issues arise from the Code Signing Identity, which is the one in effect for the app I’ve written and am now having probs with installing on the iPhone? FWIW, i installed Build 2646 on my Windows PC and was able to get a successful Android build for my ContractorsPA app.

 

Seth

Brent - I’m back in business. Not sure what I did other than remove all the Profiles I had in Dev Center, removed unused Public/Private Keys not being used. I re-created my Certificates (one for Production-Ad Hoc and another for Development).

I think the issue arose from invalid Code-Signing Identities, which I removed and replaced, as well.

In any event, I downloaded successfully the Hello World app and my own ContractorsPA app. Both work as advertised (well, the latter isn’t being advertised yet).

Thanks for your nudges.

Seth