开发者

warning when archiving file to IPA

I am getting the following warning:

"This bundle is inva开发者_StackOverflow社区lid. The application-identifier entitlement is not formatted correctly; it should contain your 10-character App ID Seed, followed by a dot, followed by your bundle identifier"

Why is this? Googling for this I found out that I need to follow the provisioning steps more closely, I did that. I am using 4.3.3.


I have just solved the exact problem by editing my Entitlements.plist.I found out how/why in this post.

You can edit your Entitlements.plist as a property file (see Pranav's answer) or you can edit it directly as I did.

My Entitlements.plist now resembles this:-

<?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>application-identifier</key>
    <string>XXXXXXXXXX.com.bakodo.BakodoScanner</string>
    <key>get-task-allow</key>
    <true/>
</dict>
</plist>


Check the Entitlements.plist file which we ADD before transferring the application on to the device. it should contain the APP ID & . & bundleID.

warning when archiving file to IPA


I solve this! Now I can say: This is a BUG of Xcode 4.

All the problem start when you include "Entitlements.plist" (or the name you create) in "Code Signing Entitlements" After this, all things start to have a problem.

What I want is distribute it with Ad-Hoc distribution. So, I fallow this paper. Now the why this is a bug. When I am working in a project that was create in XCode 3, this work fine (I am using it in my XCode 4.0.2). When I do this in a project that was create in XCode 4, this annoying message appear.

How to solve this: First let's imagine you have all "Code signing" working, you will only write this in "Entitlements.plist" (Open it in "source code" mode)

<?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>322ZQ37PJY.br.com.yourcompany.yourprogram</string>
    <key>keychain-access-groups</key>
    <array>
         <string>322ZQ37PJY.br.com.yourcompany.yourprogram</string>
    </array>
</dict>

The < string> need to be the exact you have in your app ID in "iOS Provision Portal", in other words, you will need use your identifier more the random code of it site. Dont forget the key get-task-allow, you will need use it to make the Ad Hoc distribution (and set it to FALSE).

This solve my problem... One entire day to discovery it... :(


1) Select "Product" in Top Menu of xCode 2) press ALT on keyboard and Select "Clean Build Folder" in submenu of "Product". 3) Rebuild your App.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜