Re: CSSM_SignData returned: 8001094A
Re: CSSM_SignData returned: 8001094A
- Subject: Re: CSSM_SignData returned: 8001094A
- From: Steve Christensen <email@hidden>
- Date: Fri, 13 Jun 2014 22:31:01 -0700
> Is this for an Enterprise distro? What type of dev account are you signing this with?
No, this is for a normal app store distribution. It’s using the distribution certificate and provisioning profile. I’ve been trying to get that build to complete successfully so I can submit the app to the store.
As I’d said, if I do a debug build, which uses my dev certification and profile, or do a test using another client’s distribution certificate and profile, then the build completes successfully if the only thing I do is to adjust the app's bundle identifier to match the other provisioning profiles. If I use this particular distribution certificate and profile then the code signing step fails and no signature is applied.
Keychain access says that it’s happy with that distribution certificate, and as far as I can tell Xcode is happy with the certificate and provisioning profile in the Accounts tab in preferences. When I do a build, though, it says it’s not happy but I don’t know how to determine what it doesn’t like based on the scant error information that’s displayed.
On Jun 13, 2014, at 5:08 PM, Alex Zavatone <email@hidden> wrote:
> On Jun 13, 2014, at 7:30 PM, Steve Christensen wrote:
>
>> I’ve been stuck trying to get the distribution version of a client’s app to build. Everything runs along smoothly, including am earlier ProcessProductPackaging step that says that it’s using the correct provisioning profile. However when I get to the actual code sign step, it returns an error. (I’ve appended the text from that step below.) If I execute “codesign -dvvvv …/my_app.app” from the command line then it says “code object is not signed at all”.
>>
>> The debug build uses my provisioning profile (and an adjusted start to the bundle ID) so I can test on my own devices, and works fine. I’ve also tried doing a distribution build with another client’s distribution profile (and adjusted bundle ID) and that works fine. I’d last built the app a few months ago and the build succeeded, which seems to suggest that the problem is with this particular client’s profile and/or certificate but I can’t tell from the information below what the exact problem might be. I’m also unsure why any of the client’s signing pieces would have changed.
>>
>> I’m currently using Xcode 5.1.1 and building against iOS 7.1 SDK. The last successful client build was on Xcode 5.0.x and iOS 7.0 SDK.
>>
>> Any ideas?
>
> Is this for an Enterprise distro? What type of dev account are you signing this with?
>
> I ran into this issue with an Enterprise app at 3 AM about this time last year. I'd set both the debug and release versions of the app to sign as Developer. It Archived fine. I was able to set up the Enterprise distro just, set up the HTML file and itms:// distro link and it just would not install.
>
> It turned out that I was using Developer instead of Distribution for the release Code Signing and found out at about 4:30 AM.
>
> As soon as I changed that, it built, archived, and was able to be installed onto the device through an HTML itms:// link from within Safari on the device.
>
> Not sure if this is the issue since your issue states something about entitlements, but hope this helps.
>
>>
>> ---------------
>> CodeSign Build/…/app_name.app
>> cd "…"
>> 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"
>> Using code signing identity "iPhone Distribution: x (xxxxxxxxxx)" and provisioning profile "app_name Distribution" (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
>> /usr/bin/codesign --force --sign xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --resource-rules=…/Build/…/app_name.app/ResourceRules.plist --entitlements …/Build/…/app_name.build/app_name.xcent …/Build/…/app_name.app
>>
>> CSSM_SignData returned: 8001094A
>> …/Build/…/app_name.app: errSecInternalComponent
>> Command /usr/bin/codesign failed with exit code 1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden