iOS University Program on test Application on iPhone - iphone

I am on a iOS University Program, and everything is registered OK, but on my computer I can not get this to work:s
I have generated the certificate from my computer, uploaded it and downloaded the certificate again. I am getting this error:
Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“CM2012”) were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0'
Can anyone help me?
Thanks
Best Regards

You should check apple documentation https://developer.apple.com/library/ios/qa/qa1618/_index.html
Certificates is a tedious task in ios, but I recommend you to erase all certificates and follow the steps, it's the best way to get it.

Related

iPhone code signing -- why would developer build complain about lack of distribution certificate?

Here is the error I am getting. This is preventing me from testing the developer build of my app on my iPad device. The "failed to satisfy specified code requirement(s)" line grabs my attention, but I have no idea what it means.
Validate /Users/william/Library/Developer/Xcode/DerivedData/GraphingCalculatorDeluxe-fduucejdaajqvxekndurxjggarcu/Build/Products/Debug-iphoneos/GraphingCalculatorDeluxe.app
cd /Users/william/Documents/GraphingCalculatorDeluxe
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/william/Library/Developer/Xcode/DerivedData/GraphingCalculatorDeluxe-fduucejdaajqvxekndurxjggarcu/Build/Products/Debug-iphoneos/GraphingCalculatorDeluxe.app
warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Users/william/Library/Developer/Xcode/DerivedData/GraphingCalculatorDeluxe-fduucejdaajqvxekndurxjggarcu/Build/Products/Debug-iphoneos/GraphingCalculatorDeluxe.app/GraphingCalculatorDeluxe
codesign_wrapper-0.7.10: using Apple CA for profile evaluation
/Users/william/Library/Developer/Xcode/DerivedData/GraphingCalculatorDeluxe-fduucejdaajqvxekndurxjggarcu/Build/Products/Debug-iphoneos/GraphingCalculatorDeluxe.app: valid on disk
/Users/william/Library/Developer/Xcode/DerivedData/GraphingCalculatorDeluxe-fduucejdaajqvxekndurxjggarcu/Build/Products/Debug-iphoneos/GraphingCalculatorDeluxe.app: satisfies its Designated Requirement
test-requirement: code failed to satisfy specified code requirement(s)
codesign_wrapper-0.7.10: failed to execute codesign(1)
- (null)
I am doing a debug build, signing as my developer identity. Here is the output of codesign in the terminal:
Williams-iMac:Debug-iphoneos william$ codesign -dvvv GraphingCalculatorDeluxe.app
Executable=/Users/william/Library/Developer/Xcode/DerivedData/GraphingCalculatorDeluxe-fduucejdaajqvxekndurxjggarcu/Build/Products/Debug-iphoneos/GraphingCalculatorDeluxe.app/GraphingCalculatorDeluxe
Identifier=com.jockusch.calculator
Format=bundle with Mach-O thin (armv7)
CodeDirectory v=20100 size=10772 flags=0x0(none) hashes=530+5 location=embedded
Hash type=sha1 size=20
CDHash=96b088a0cd93ff9b5adc9552bbc29e4cef247356
Signature size=4338
Authority=iPhone Developer: William Jockusch (B86JCKGV32)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Jul 10, 2012 8:08:35 PM
Info.plist entries=30
Sealed Resources rules=3 files=564
Internal requirements count=1 size=292
Williams-iMac:Debug-iphoneos william$
EDIT: I'm telling Xcode to use my developer profile. See the screen shot below.
Check whether you've set the Code Signing's name (your project target -> Build Settings -> Code Signing) correctly:
The problem was apparently related to Xcode mixing up two different developer accounts.
I develop both for myself and as a team with someone else. I had recently submitted an app for the team. As a result, the portion of Xcode that logs in to iTunes Connect to distribute apps was set to that account.
When I compiled this app, even though all the settings appear to be pointing to stuff on my own account, some part of the team information was apparently confusing some aspect of it.
The reason I believe this is that the problem went away after I did the following:
Go to the organizer.
Navigate to an archive of the app.
Click the "distribute" button.
Sign in to iTunes connect as myself
I then got a message saying that no suitable application records were found.
Build again, problem recurred.
quite Xcode and delete my build folder.
Restart Xcode
Repeat steps 1-5.
Build again. It worked!

Application failed codesign verification

When I upload my app to the App store I am facing the issue below:
Application failed codesign verification. The signature was invalid,
or it was not signed with an Apple submission certificate
I did all of the changes below:
cleaning project,
cleaning all,
deleting build directory,
deleting certificates + profiles
and reinstall distribution provisional profile and distribuction certificate
but still I am facing the same problem. What am I missing?
First, check that your certificate is correct/valid. To do this, log in to the iOS Provisioning Portal with your Apple developer account and create a new distribution certificate. Make sure that you specify that you want to store you app on the iOS App Store. Create a certificate for the App Store by clicking the App Store radio button - don't choose "Ad Hoc". After that, download and install the newly created provisioning certificate.
Check that you've done the following:
Set your code-signing identity in the XCode project to use the new provisioning certificate.
Used the certificate for Distribution profile, not just Developer.
Used the "Clean all targets" function in XCode.
Deleted any build folders from your application's directory tree in the Finder.
After that, build and run your application.
For a fuller explanation, see Apple's documentation about this.
For the iOS error "Application failed codesign verification", see Apple's complete list of potential causes at the following URL "How do I resolve the error: Application failed codesign verification?"
I had the same issue and tried all the solutions listed and then some. But it turned out that it was something so simple, I could kick myself! Set your Archive Build Configuration to Release. You can do this by going into PRODUCT -> EDIT SCHEME -> ARCHIVE -> BUILD CONFIGURATION -> SET TO RELEASE.
Good Luck!

error during app installation on device

When I am installing my app on device this error is coming..
I am searching on net since yesterday found many tips and also applied but it fruitless.
Please guide me what to do ?
Give the valid code sign identity of your corresponding device in your xcode project(i.e) valid provisioning profile.
Verify the following things,
1.Login to your developer account, and in the provisioning portal confirm that the corresponding device is added.
2.Have you install the provisional file into your device?
3.Check your build settings that you have choose the correct code sign identity.

A valid signing identity matching this profile could not be found in your keychain

I am able to test my app on my device using the development profile/certficates...
In the same way, I have created distribution profile/certicates for my app....
But when I try to upload my app to iTunes , it says "Application failed codesign verification"
Also in the Organizer, it says "A valid signing identity matching this profile could not be found in your keychain"
i have tried everything that is listed here by other users...But not sure what the issue is...Please help me.
You need to have the little key under your certificate in keychain Access. If you do not you need to revoke your certificates in your developer account and start over.
More info here,
http://developer.apple.com/library/ios/#qa/qa2008/qa1618.html

Codesign verification failed in Xcode for iphone app distribution

I am trying to prepare my app for distribution to the app store and am getting the following warning in Xcode which is causing an error in ApplicationLoader. I know this is a common problem from searching but I have yet to find a proper solution? I went thru Apple's steps for distribution on the iOS provisioning portal and still get this error.
My distribution profile is set on my Target.
"Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)"
Any suggestions?
1) Check for the scheme in 4.2
2) make sure you have selected the release scheme
3) make sure you have selected the distribution profile
4) build for archiving .
App distribution certificate is only used for the app store. You will get this error if you try and put an app signed with your distribution certificate on your phone -- it simply won't work.
Do you have a valid iPhone Distribution certificate in your Keychain?
Does the Xcode Organizer Provisioning Profile window show your Distribution provision?
Does your distribution provisioning profile have an app ID that is the same or compatible (wildcard) with the Identifier setting in your Target Info Properties setting?
Edit: added:
Do you have exactly one iPhone Distribution certificate in your Keychain?
Did you do a Build Clean in Xcode before your distribution build? (or rm -rf ./build)
First of all, check your Certificate, is it distribution or developer? And it must be Distribution certificate.
Follow these steps:
clean all certificate from your keychain and download new distribution certificate.
Also clean remove the distribution provisioning profile what you use for the particular for your this application and re download that one. after that must be clean build in Xcode and after that in project setting you must be select the particular D.P.P. for your application and go a head just only build it. then you get the particular build.
Regarding the D.P.P you must be clear what type of profile you create for this. it must be Appstore D.P.P.
I hope it should be helpful for you.
I had a similar problem. For me it turns out that I didn't download the "distribution" provisioning file (note the emphasis on the "distribution"). Once I got that, everything worked. I'm almost certain that that's what your problem is ;)
cheers,
Matt