ios invalid code signing exception - ios5

I have developed ios application and generated ipa file and installed it on my ipad using provisioning profile it works fine. now i need to install same ipa file from another mac and another iphone device. i have used existing certificates in organizer but it says invalid code signing. how to solve this issue?

certificates are system specific. u need to export your certificate from your system to .p12 or .cer file from your keychain then only it can be used upon installation of that certificate on some other mac system.
with certificate, you would also need the provisioning profile with which you were compiling the build earlier using that certificate.

Related

Xcode 8 export archive for client

I developed an iOS (the swift based) application for my client. I have enrolled Apple developer program and my client have different one too. My client want from me the Xcode archive, which he can publish on AppStore (he need to re sign with his certificates). He send me his provisioning profile, but I'm unable to generate the Xcode archive. It fails with:
No signing certificate "iOS Distribution" found: No "iOS Distribution" signing certificate matching team ID "XXXXXXX" with a private key was found.
I also tried to disable code signing in iOS SKD but this is not helping.
How can i solve this problem?
Your client needs to send you his iOS Distribution Certificate (exported from Keychain with his private key) and then you can archive from your xcode.
If he don't know how to do that, he can simply give you access to his Apple developer account (a limited developer access is enough) and then you can generate the iOS Distribution certificate by yourself.
I solve this problem as is written above. Client made me part of his team. So I can set provisioning and signing certificate from his team. Now I was able to generate Xcode archive and send him to my client.

verification failed as the authority is invalid

I'm trying to resign an ipa which is already signed with the developer certificate.
Now I'm resigning with the enterprise distribution certificate.
I've got proper provisioning profile, ios_distribution certificate to sign the app.
I'm following this answer Re-sign IPA (iPhone) for the resigning steps.
With this I'm successfully able to resign the ipa but when I try to install this via itools, I'm getting this error: verification failed as the authority is invalid.
Another thing is I'm resigning with the enterprise distribution certificate but still when i try to install the resigned ipa directly (keeping resigned ipa on dropbox) getting this error "safari can't download this file" which I believe should come when the app is not signed with the enterprise distribution certificate and someone try to download that file directly on iphone (not via appstore or itunes).This certificate says I can distribute this app outside the appstore, so I'm confused what I'm really missing.
I don't know about itools and the error message doesn't sound right, but it could be that
xcrun PackageApplication is copying your dev app's entitlements across to the distribution app and they don't match what's in your distribution profile. e.g get-task-allow may still be true.
If you use a distribution signing identity PackageApplication actually tries to fix this, but it just failed for me now and I get an unusable IPA. Ah, looks like it detects the "distribution-ness" of your signing identity with regular expressions. I was using the abbreviated form "My Company (ID)" form instead of "iPhone Distribution: Company Name (ID)".
If I use the longer form, the resulting binary installs fine. The more you know.
You can't install IPA files directly from Safari, you need to set up an itms anchor tag and a plist, and a bunch of absolute URLs as described here.

Signing identity not found on XCODE (Organizer)

I already made iPhone application thanks to all certificates and so on.
Now, I'm installing a second mac to develop applicaions (the same applications) so :
I generated a Certification Signin Request (with keychain)
I didn't upload it but I downloaded the Distribution Certificate (that I generated before with the old computer), and install it (in keychain again)
I Downloaded the Distribution Provisioning profile
The last File , I installed it and in Organizer, the status of the file is "Valid Signing identity not found".
How can I fix that problem ?
This is common operations but I always have trouble with all those certificates :-)
Thanks
Export your existing certificate from your old machine to your new one. This will make you skip all other stuff to do and it's easy as 1,2,3.

CSSMERR_TP_NOT_TRUSTED after build on xcode4

Im having some trouble to get my app installed on my iphone just after I built my code in xcode. When the build has finished I get this error: "CSSMERR_TP_NOT_TRUSTED Command /usr/bin/codesign failed with exit code 1". My certs are ok, as I just re-downloaded from apple's site because Im working on a different mac.
I've tried a lot of solutions I found on google: changed form "always accept" to "system default" on the cert trust section, re donwloaded the certs, create a new project and start all over again but nothing seems to work.
However, I'm able to create an IPA file and install it on my iphone using iTunes, is this ok?? Also the certs were correctly installed on the iphone as on the organizer and the phone recognizes them.
I really appreciate any help! :)
In addition to the provisioning profile, you also need to download and install your developer certificate and the Apple WWDR intermediate certificate from the Provisioning Portal. Follow the instructions in the 'Certificates' section of the provisioning portal. You need to download your developer and intermediate certificates and drag them into the Keychain application.

How to install previously-archived apps from xcode organizer to my iphone

Xcode keeps an archive of all the versions of my apps that I've submitted to the app store in the 'archived applications' section. I assumed using this I could install an old version of an app to my device, in order to reproduce any problems my client may have had with that particular version.
However, when I try to do this I get an error:
'this executable was signed with invalid entitlements, the entitlements specified in your applications code signing entitlements do not match those specified in your provisioning profile'
The original app was signed using our App Store distribution certificate, and I use the Organizer interface to re-sign it using our Developer profile.
select the archived app
select the version I want to test
click 'share'
select 'iphone developer' next to identity
save to disk (saves the ipa file)
then copy the ipa to the device using the little + button you see next to 'applications' on the screen you get when you select the connected device.
Then I get the error, and the app isn't installed.
Is there something obvious I'm doing wrong here? Or is there a different process to re-install an archived app to my device?
Edit: Thanks for the answers, I've solved this now. I wrote up the process I used if others want to do this http://pervasivecode.blogspot.com/2011/01/installing-archived-application-to.html
You cannot install an app by dropping it into iTunes when it is signed with the App Store distribution certificate. You need an IPA signed with an Adhoc certificate to do that.
Xcode can resign an archive with the second certificate but I don't think this resigning will overwrite the first certificate. But then, I never tried.