Everything started when I tried to create and validate my archive for the new app version. My developer certificate expired, I revoked it (I didn't revoke distribution certificate it is still valid) and now it is up to date. I deleted my old associated provisioning profiled from Xcode and Xcode is configured to generate them automatically. After The provisioning profiles were not in my account. I was able to compile fine without errors using simulator, but I can not run app on my iPad. I deleted old app version (I could not find in iPad Settings->General any Profiles to delete since my version is iOS8.4 and it deletes it automatically) I don't know if I need to delete anything else on iPad? Now when I try to run from Xcode app on iPad, I get this error: Command /usr/bin/codesign failed with exit code 1 (see details below) NOTE1: I don't get this error when I run it in the simulator, only when I chose to run on registered iPad NOTE2: I was able to run app on this same iPad before I revoked the certificate. NOTE3: I was able to create archive and submit the app before, problems started when certificates expired. All troubles started after revoking the certificate. I am running Xcode version 6.4 Mac has OS X Yosemite Version 10.10.5 Here is what I did so far: After revoking certificates,I tried to delete provisioning profiles and restart Xcode, Mac and iPad and that didn't help. I deleted old certificates from keychain, right now I have just the new up to date certificate in my keychain. When I tried to run Xcode it asked me to fix non-existing provisioning profiles and it worked for simulator, but not for iPad. I also looked in Xcode general settings for the build and tried various things, but that didn't help... This didn't help too: Xcode -> Preferences -> Accounts -> Choose your account, and then View Details -> Refresh (button on bottom left), Refresh again, restart Xcode
I tried to read developer guides for distribution, but troubleshooting suggestions how to run on development device didn't help, also I didn't find much about this codsign error. I also downloaded new certificate WWDR from Apple, that didn't help. I tried most of the things what people suggested related to this error posted, but didn't help... One additional info: My problem is also that I am trying to submit second version of the existing app, so I don't know what I can delete in order to be able to submit the updated version of my app again. If it was new project I would create new project from scratch and start from zero, but this happened just when I was ready to submit new archive...
Do you have any suggestion how to fix this issue, which steps to follow? I would appreciate your pointers where to read or what to do. If you need additional info from me, please let me know. Thanking you in advance, -Tatjana
CodeSign /Users/t/Library/Developer/Xcode/DerivedData/K-eskcdowdkybtiygveputefcuziqr/Build/Products/Debug-iphoneos/K.app cd /Users/t/Desktop/myProjects/K export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export 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"
Signing Identity: "iPhone Developer: T... (G....)" Provisioning Profile: "iOS Team Provisioning Profile: com.k.K" (5....)
/usr/bin/codesign --force --sign D.... --entitlements /Users/t/Library/Developer/Xcode/DerivedData/K-e.../Build/Intermediates/K.build/Debug-iphoneos/K.build/K.app.xcent /Users/t/Library/Developer/Xcode/DerivedData/K-e..../Build/Products/Debug-iphoneos/K.app
CSSM_SignData returned: 8001094A /Users/t/Library/Developer/Xcode/DerivedData/K-e..../Build/Products/Debug-iphoneos/K.app: errSecInternalComponent Command /usr/bin/codesign failed with exit code 1