Cannot sync to iPhone for testing.

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.

This was helpful. Tried Development provision and was getting the “valid signature” error in xcode.The Ad hoc provision finally allowed me to test on my iPad. THANK YOU.

This was helpful. Tried Development provision and was getting the “valid signature” error in xcode.The Ad hoc provision finally allowed me to test on my iPad. THANK YOU.