Titanium Studio Will Not Distribute My iOS App

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

Using Xcode 4.3, and the latest Titanium Studio, I keep receiving this error.

[ERROR] Code Sign error: The identity 'iPhone Distribution: Photonics Graphics Inc.' doesn't match any valid, non-expired certificate/private key pair in the default keychain
All certificates/provisioning profiles are valid according to the Apple web-site, and keychain. They are all in the login keychain along with the public and private keys. It just doesn't want to compile. I've tried deleting my certificates on the web page, and re-making them, I've quadruple checked everything. The app runs fine in the emulator. I've tried both distributing options (Ad Hoc, and App Store), both give the error. For now all I really need is Ad Hoc for testing purposes.

Am I missing something? By the way, I am the certificate authority if this helps me correct the problem easily. Any help would be greatly appreciated.

3 Answers

Accepted Answer

  • How do they appear in xCode?
  • Certificates aren't required in the simulator (and it is a simulator)
  • 'latest version of Titanium Studio' is subjective, version numbers are better
  • This is a distribution certificate not a development certificate you are trying to sign with, right?
  • Version of the TiMobile SDK you are building against?
  • Did you import the certificate into just xCode, or just into TiStudio, or into both?
— answered 9 months ago by Stephen Feather
answer permalink
4 Comments
  • (and I feel your pain, the entire code signing thing with Apple can be a pain even in xCode)

    — commented 9 months ago by Stephen Feather

  • well, #1 seems to be you problem.

    The fact that xCode doesnt like it will only flow into Titanium, as xCode is the end tool in the packaging process.

    Delete the certificate, redownload it from the dev portal. and install in xCode again (normally just double clicking it)

    — commented 9 months ago by Stephen Feather

  • I still can't get it to work, no matter what I try. I can't mess with the distribution certificate (revoke and create a new one) because we already have something deployed on the app store with it. Beyond frustrated now.

    — commented 8 months ago by John Overley

  • Show 1 more comment

1.) The Development profile is valid, but it's saying the Distribution profile does not have a valid signing identity, not sure why. http://i45.tinypic.com/15gc6sn.png

2.) I know, I was just trying to type that out quickly as I am at work :-/

3.) http://i48.tinypic.com/1jtehk.png

4.) Not really sure, I couldn't find that information, but I downloaded Titanium Studio and Xcode the other day, that's all I remember. The image above shows the version of Titanium Studio.

5.) The certificates went into Keychain, not Xcode. The provisioning profiles went into the Xcode Organizer. I didn't know you could import certificates into Titanium Studio. I just clicked the Distribute icon above the project explorer and followed the instructions. http://i50.tinypic.com/91jxhl.png I tried using both the Development and Distribution profiles for this, just for the hell of it, neither worked.

Also here's a picture of 'login' on Keychain. http://i48.tinypic.com/6sfdx2.png

Sorry if i'm missing any information.

— answered 9 months ago by John Overley
answer permalink
2 Comments
  • Just to clarify, the distribution profile is valid in the apple developer provisioning portal website.

    — commented 9 months ago by John Overley

  • Also just realized the SDK version is in the Distribution wizard, which I linked a screenshot of in #5. Version 5.1 of the SDK.

    — commented 9 months ago by John Overley

Hi John, try deleting the certificate and profile from keychain and clean titanium studio including its hidden files in your Home directory, reinstall the your certificate and profile. then do a fresh install of titanium it will ask you for keyChain access. provide that and then check and let us know. it that worked. worked for me for developer profile, not sure for distribution.

— answered 8 months ago by Ashish Nigam
answer permalink
4 Comments
  • Thank you for your response. I finally got it to work by deleting the Distribution certificate on the Apple iOS Provisioning Portal, and requesting a new one from this computer. I guess it didn't like the fact that the private keys didn't match, because the old Distribution certificate was made from another computer.

    — commented 8 months ago by John Overley

  • nothing like being 6 days late to the party.

    — commented 8 months ago by Stephen Feather

  • Thanks for all your help Stephen, I realize the formatting of this Q&A is atrocious. I was afraid to delete the old distribution certificate in fear that it would somehow effect the app we have on the app store. I just requested a new one from this computer though, and added back the provisioning profiles and all was dandy. I've learned a lot though, that's for sure. Next time I'll give more information, and maybe not add an answer to my own question -_-

    — commented 8 months ago by John Overley

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!