The application does not have a valid signature

@seanh,

I sent the Terminal log of an app build with spaces in the destination path. [import]uid: 8194 topic_id: 2067 reply_id: 11169[/import]

Getting rid of a space in the build path cleared this issue up for me. An annoying little bug, but I shouldn’t have spaces in my directory names anyways. Lesson learned! [import]uid: 13838 topic_id: 2067 reply_id: 17330[/import]

Thought I’d post with a tip - I was having the same problem and solved it. If you:

  • get an “invalid signature” error
  • but you are sure your certificate is correct
  • and you do not have any spaces in your paths

Then check that you don’t have two certificates with the same name installed. It seems this confuses the build process (check the terminal - it will say “ambiguous certificate name”).

Having two certs with the same name is probably pretty common if you’ve been messing around creating / downloading various different ones.

I deleted the old certificate with the same name, re-built the app and it submitted to the app store just fine. [import]uid: 14382 topic_id: 2067 reply_id: 22615[/import]

I’m getting an invalid signature issue trying to upload any of my apps to my phone for testing.

No spaces in my directories.
I updated all my certificates and deleted the older ones.
I’m using today’s daily build.

I get this message in log: classtest.app: replacing invalid existing signature [import]uid: 10903 topic_id: 2067 reply_id: 25015[/import]

Can you try this with the release build 268 to see if it works?. Do you get the same error if you set the build directory to the desktop?
[import]uid: 7559 topic_id: 2067 reply_id: 25035[/import]

Does not work with 268, nor if I build it to the desktop.

Still says signer is not valid. [import]uid: 10903 topic_id: 2067 reply_id: 25040[/import]

Sorry you’re having the problem. Has the installation every worked for you or is this the first time you’re trying to install on the iPhone? We had problems in the past but all have been resolved with the latest builds.

Please submit a support request so we can follow up.
http://developer.anscamobile.com/forms/support
Please submit a screen capture of your build screen with the support form.

Thanks,
Tom [import]uid: 7559 topic_id: 2067 reply_id: 25043[/import]

Yeah it worked fine until my provisioning profile expired. I renewed it but it hasn’t worked since it expired. [import]uid: 10903 topic_id: 2067 reply_id: 25044[/import]

I’m not sure that this is a Corona problem. Did you delete the profile on the device itself (Settings)?

Have you tried testing the profile by building and installing a Xcode project (Objective-C) on your iPhone. Does that fail too? [import]uid: 7559 topic_id: 2067 reply_id: 25058[/import]

This got fixed for me only by installing Xcode over. Before installing new certificate had to go to keychain and be sure to delete the older one first. [import]uid: 6317 topic_id: 2067 reply_id: 25061[/import]

I installed the daily build from today Corona2011.309 and tried to install an app build on my device using iTunes and an adhoc provision profile for distribution. It’s been working fine previously with the last stable version Corona2011.268, I’m getting the warning ’ was not installed on device because the code signing is not valid’.
I did have a space in my folder name, and then removed it and tried to reinstall. My provision profile doesn’t expire for another 4 months.

Any suggestions? Is it todays build? Should I delete previous builds before reinstalling new ones?

thanks ; ) [import]uid: 14261 topic_id: 2067 reply_id: 26398[/import]

Not able to test on iPhone or iPad
Corona build 268, Trial mode
Xcode 3.2.5

Using Xcode Organizer to install build on device, I get:
“The application does not have a valid signature.”

Corona Terminal at the end of the build says:
“replacing invalid existing signature”
“The operation was cancelled by the user.”

I am a complete newbie, but I spent several hours, double checking certificates and provisioning, and watching tutorials, and checking.

Building to Xcode simulator works. After some research, I thought maybe I needed to set CFBundleIdentifier, so I created “build.settings” and set it in the plist area.

DISCOVERY: In Corona “Build for iPhone”, I didn’t notice, until I created a second Ad Hoc Distribution Profile, that mine are grayed out.

iPhone Developer is available, and that was what I was building with. Both of my iPhone Distribution entries are grayed out and end with “[Not available in trial]”.

I understand that Corona can build for a device for testing purposes in trial mode, so what is the solution? [import]uid: 47723 topic_id: 2067 reply_id: 30569[/import]

Working after these changes.
I decided to see if I could get an Xcode project loaded on my iPhone (1st Gen, iOS 3.1.3).

A simple Hello World had an error. The Base SDK was missing.
Project > Edit Project Settings:
General tab:
Project Format: Xcode 3.1-compatible

Build tab:
Base SDK: iOS 4.2
Code Signing Identity, Any iOS was already on iPhone Developer
iOS Depluyment Target: iOS 3.1.3

It now built without errors.
NOTE: The project window still says in upper left corner, “Base SDK Missing”, but it builds fine.

Build and Run said something about provisioning and that it would take care of it when I hit okay, so I did. This created a duplicate entry in Organizer for Provisioning, I have two “Team Provisioning Profile: *” now.

My iPhone woke up. I unlocked it an ran hello world.

NOW THE CORONA BUILD FOR DEVICE:
The terminal window said, “replacing invalid existing signature”.
And then a pop-up, “codesign wants to sign using key…”
I clicked Allow.
The pop-up said the same thing again. I clicked Allow.
Terminal window: “signed bundle with Mach-0 universal (armv6 armv7) [HelloWorld]” (I was using Corona’s HelloWorld)

Pop-up: “Your application is ready to install on your device.”

I then dragged that build into Organizer > Applications. It worked!!! I could run it on my iPhone.

QUESTION: I used “iPhone Developer…” for my “Code Signing Identity” in Corona builder, the iPhone Distribution is grayed out and says “[Not available in trial]”

I thought the way to get a build from Corona to device was with an Ad Hoc Distribution identity.

[import]uid: 47723 topic_id: 2067 reply_id: 30604[/import]

Resolved my issue; sorry for the bother.

Thanks
Rob

[import]uid: 16527 topic_id: 2067 reply_id: 30619[/import]

This is my first web app development for any iOS device. Please pardon my ignorance and basic questions.

My environment is,

Xcode version: 4.2.1
Mac OS X: Software Mac OS X Lion 10.7.2 (11C74)
iPad: IOS 5.0.1


On my iMac I installed Xcode 4.2.1 from the app store.

I downloaded a sample hello world app from Apple library website. I opened the hello world app in Xcode on the iMac.

It runs perfectly fine on the iOS simulator (Xcode) on the iMac.

I connected the iPad to my iMac. The moment I connect the Xcode recognizes my iPad device and I set Xcode run to execute on the iPad device. Now I clicked on “Run” I get “Build failed” and the logs says the following (but the build is successful when I run in the simulator)

CodeSign /Users/johndoe/Library/Developer/Xcode/DerivedData/HelloWorld-dxztjuxsornpzsbseolkcsytxcfa/Build/Products/Debug-iphoneos/HelloWorld.app
cd /Users/johndoe/Downloads/HelloWorld_iPhone
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH “/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/usr/bin/codesign --force --sign “iPhone Developer: John Doe (6U988729CX)” --resource-rules=/Users/johndoe/Library/Developer/Xcode/DerivedData/HelloWorld-dxztjuxsornpzsbseolkcsytxcfa/Build/Products/Debug-iphoneos/HelloWorld.app/ResourceRules.plist --entitlements /Users/johndoe/Library/Developer/Xcode/DerivedData/HelloWorld-dxztjuxsornpzsbseolkcsytxcfa/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/HelloWorld.xcent /Users/johndoe/Library/Developer/Xcode/DerivedData/HelloWorld-dxztjuxsornpzsbseolkcsytxcfa/Build/Products/Debug-iphoneos/HelloWorld.app

/Users/johndoe/Library/Developer/Xcode/DerivedData/HelloWorld-dxztjuxsornpzsbseolkcsytxcfa/Build/Products/Debug-iphoneos/HelloWorld.app: replacing invalid existing signature
/Users/johndoe/Library/Developer/Xcode/DerivedData/HelloWorld-dxztjuxsornpzsbseolkcsytxcfa/Build/Products/Debug-iphoneos/HelloWorld.app: CSSMERR_TP_NOT_TRUSTED
Command /usr/bin/codesign failed with exit code 1

I seem to be missing something very basic. Any help is greatly appreciated. [import]uid: 115481 topic_id: 2067 reply_id: 77535[/import]