Troy Sartain
Troy Sartain

Reputation: 163

How do you solve the iPhone error "signature is valid but not trusted"?

Finally got MGTwitterEngine stuff to

compile (by setting the Header Search Paths to /usr/include/libxml2 iphoneos3.0/usr/lib/libxml2)

AND link (by removing the Twitter LibXML Parsers code and assigning a weak role to libxml2.2.dylib in Targets: Link Binary With Libraries).

But when I do a Build and Go to the iPhone (not the simulator), I get this error:

"This provisioning profile does not have a valid signature (or it has a valid, but untrusted signature)."

I have followed the official Apple Developer process of getting a certificate and provisioning, etc. Obviously, I did something wrong somewhere. Has anyone come across this problem or have any ideas on how to solve it?

Upvotes: 2

Views: 12348

Answers (5)

Mihir Mehta
Mihir Mehta

Reputation: 13833

Restarting Xcode may also work... (Work for me couple of times)

Upvotes: 1

Anup Nair
Anup Nair

Reputation:

One of the things that I tried and worked for me was to reset the keychain access http://support.apple.com/kb/TS1544

Upvotes: 0

Troy Sartain
Troy Sartain

Reputation: 163

I guess the fifth time's the charm. I basically deleted the certificate and the provisioning file, etc., and started completely over. Viola! Now for those pesky memory leaks! :-) Oh, Java, wherefore art thou, Java? (and your majic garbage collection!)

Upvotes: 0

paulthenerd
paulthenerd

Reputation: 9507

Troy It looks like the issue is you don't have a keypair that is tied to the provisioning profile installed. It's tough to tell for sure but that is my best guess.

If that is the case, I've been working in a similar situation - what you need is to either generate a private key using the iphone development portal under the same account your boss used and then add that new key to the provisioning profile you are building with. OR You can get your boss to export the key he generated when he created the provisioning profile - he can export it from keychain and give it a password that will allow you to install it but protect it from anyone else installing it.

Upvotes: 0

commanda
commanda

Reputation: 4881

Things to check:

  1. In Keychain Access, make sure you have a code sign identity (public and private keys and a certificate titled "iPhone Developer: Your Name"
  2. In your Info.plist, make sure your Bundle Identifier matches your App ID that you created in the dev portal
  3. Make sure you installed the .mobileprovision (from Terminal> open x.mobileprovision)
  4. In the dev portal, make sure your provisioning profile has your certificate, your App ID, and your device all enabled. If it doesn't, fix that and re-download and re-install your provisioning profile.
  5. Follow the instructions very carefully when creating your Certificate. One time, in Keychain Access, when I went to Request a Certificate, I had something else selected in the list panel and so it created the wrong kind of certificate. Make sure nothing in the list is selected when you do this part.

Upvotes: 4

Related Questions