Installing Error / Codesigning (Device: iPhone)

You must Login before you can answer or comment on any questions.

I'm stuck with this and it really starts annoying me!

Whenever I try to run my app on my iPhone it return this error:

Install Error
 
 Error: Traceback (most recent call last):
  File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 1143, in main
    execute_xcode("iphoneos%s" % iphone_version,args,False)
  File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 925, in execute_xcode
    output = run.run(args,False,False,o)
  File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/run.py", line 31, in run
    sys.exit(rc)
SystemExit: 1
and checking the build.log
warning: Application failed codesign verification.  The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
 Application failed codesign verification.  The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
/Users/USER/Documents/App Development/MyApp/build/iphone/build/Release-iphoneos/MyApp.app: object file format invalid or unsuitable
 - (null)
 
warning: Unable to extract codesigning entitlements from your application.  Please make sure MyApp.app is a valid Mach executable that's properly codesigned. (-19050)
 Unable to extract codesigning entitlements from your application.  Please make sure MyApp.app is a valid Mach executable that's properly codesigned. (-19050)
/Users/USER/Documents/App Development/MyApp/build/iphone/build/Release-iphoneos/MyApp.app: object file format invalid or unsuitable
 - (null)
 
** BUILD FAILED **
Even though everything should be provisioned and all certificates should be right. The developer provisioning is uploaded and on my iPhone which is running 4.1. The simulator works fine and I haven't had any problems using XCode so far, but this just doesn't seem to be working, I've read a lot of previous threads about this, but none helped me out.

Also trying to debug a Titanium project in XCode just throws a /bin/sh error back.

I'm running Titanium Mobile 1.5.1, XCode 3.2.5 and OS X 10.6.

Help would be much appreciated!

— asked 2 years ago by Tinu S
0 Comments

4 Answers

Finally: Success!

My problem was that my project was called "AppName Lite" and had a space in the project name - removed it and everything worked just great! But they should really address this problem in the next build, a solution e.g. would be automatically adding a "_".

Tinu

Have same problem.

"Run on device" always worked for my project, but suddenly codesign error occurs in build.log (same error if build the project directly in XCode). Tried: - Removing build directory - Uploading new provisioning profile - Restarting computer - Changing target Titanium SDK version - Changing target iPhone SDk version

But no success. The project does work on emulator.

I had to remove also the Apple WWDCA certificate and re-install it to get it working (on OSX Lion).

Your Answer

Think you can help? Login to answer this question!