Mr Big Problem
Mr Big Problem

Reputation: 269

Error, no entitlements found in bundle " "

Please can someone assist me!

I archived my app, and I get this error:

ERROR ITMS-9000 "Missing code signing entitlements. No entitlements found in bundle "com...." for executable.

How can I resolve this? Thank you.

Upvotes: 8

Views: 2860

Answers (1)

devios1
devios1

Reputation: 38025

I was having this very problem, due to a recently-introduced automated build script. The script was codesigning the resultant app bundle manually and it turned out I needed to explicitly reference an entitlements file in the codesigning step:

/usr/bin/codesign --force --sign "$CERTIFICATE" --identifier "$BUNDLE_ID" --entitlements Entitlements.plist Payload/${BUNDLE_NAME}.app

The Entitlements.plist file is pretty standard:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>get-task-allow</key>
    <false/>
    <key>application-identifier</key>
    <string>fully-qualified bundleid</string>
    <key>keychain-access-groups</key>
    <array>
        <string>fully-qualified bundleid</string>
    </array>
</dict>
</plist>

Upvotes: 4

Related Questions