Cannot sync to iPhone for testing.

I have just updated all my certs and profiles from Apple for this year.  I have deleted everything that has expired.  I have a new provisioning profile on my iPhone for my app.  Confirmed both in Xcode and on the phone itself.  I build against the development provisioning profile, install to iTunes, and when I sync to my iPhone it gives me a short message that my app failed to sync.

Any ideas?

Using 2013.1076 (2013.4.3)

Happens on my iPad 3 as well.  Both my iPhone 5 and iPad 3 are registered development devices, and both have the deployment provisioning profile freshly created today.

All old certs and profiles have been deleted.  No old certs remain in Mobile Applications in my user Library.

Hi Niles,

This process can still be troublesome, even with Apple’s much-improved UI interface (an updated guide on that is coming in the next few days).

Did you follow the entire process through, start to finish? Requesting the certificate via Keychain Access, installing it, generating new provisioning profiles based on that certificate, downloading them, syncing them with both devices, restarting Corona, using the new code signing identity to build, etc.? It seems like you have done all of that, but there might be one tiny step along the way that wasn’t done perfectly correct.

Brent

Yes.

i went through all this last year, when I first wrote and submitted my first iPhone app.  I remember having issues, but that’s because i didn’t have the the certs and profiles.

I know of nothing else for me to install.  If I build for the app store, I get no errors from Corona, so I assume Apple would accept it, but I’d like to test it first on my devices!

Are you building with a “Distribution: App Store” cert/profile, or either a “Development” or “Distribution: Ad Hoc” profile?

Development.

Just a suggestion… Have you rebooted?

Yup.  iPhone and Mac.

You don’t by any chance already have an app using that same bundle ID on the device?  That happens with me and my testing bundle ID’s.  Are you using the wildcard ID?

Might I also suggest that you use XCode’s organizer to install the app instead of iTunes.  You might get a better error message.

No, I’ve made a unique provisioning profile for this app, both for the App Store, and one for Development.

Xcode says I don’t have a valid signature when I try to install the app that way.

Are your devices in the provisioning profile?  Also, make sure you don’t have a “resources” folder in the folder with your main.lua.  See this stack overflow post where there are a few other comments about this and a link to another article.

http://stackoverflow.com/questions/1519865/iphone-error-this-provisioning-profile-does-not-have-a-valid-signature

Yes.  Double checked.

No resources folder.

This is the exact same package as the one I created last year and is in the App Store, with the exception of having the new Default-568h@2x.png file to make it work on the iPhone 5.

Deleted the development profile and re-created it with a new name.  Same problem.

This is what Corona tells me after the build:

failed to extract requirements data: 1
/Users/niles/Desktop/TextAdv…app: invalid signature (code or signature have been modified)
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 879

  • (null)

warning: Unable to extract codesigning entitlements from your application.  Please make sure TextAdv. is a valid Mach executable that’s properly codesigned. (-19050)
/Users/niles/Desktop/TextAdv…app/TextAdv.: invalid signature (code or signature have been modified)

  • (null)

I don’t get this message if I build with the distribution profile.

If you can build and install an AdHoc profile, then it’s either your development cert/key pair isn’t correct or its a problem with the provisioning profile.  Do you need the development version for a reason?  (I know you need it to run Leaks and the other profiling utilities). 

Ad Hoc works!

Weird!

I had exactly the same problem just today.   Used the adhoc and it worked but would like to know why!

Also the adhoc build creates a zip which you have to unzip first before installing via iTunes, thats a bit annoying

Hi @dweezil,

AdHoc should be generating both the “.zip”  and the regular “.app” file which you should be able to install via iTunes or the Xcode Organizer. I just tested this. Are you not getting both files output for some reason?

Brent

Whoops, my bad, yes both are generated.   I just need to figure out why when building with the dev profile it doesn’t install on the device.

Happens on my iPad 3 as well.  Both my iPhone 5 and iPad 3 are registered development devices, and both have the deployment provisioning profile freshly created today.

All old certs and profiles have been deleted.  No old certs remain in Mobile Applications in my user Library.

Hi Niles,

This process can still be troublesome, even with Apple’s much-improved UI interface (an updated guide on that is coming in the next few days).

Did you follow the entire process through, start to finish? Requesting the certificate via Keychain Access, installing it, generating new provisioning profiles based on that certificate, downloading them, syncing them with both devices, restarting Corona, using the new code signing identity to build, etc.? It seems like you have done all of that, but there might be one tiny step along the way that wasn’t done perfectly correct.

Brent