开发者

Problems Executing iPhone "GenericKeychain" Example

I can't get apple's "GenericKeychain" example to run. I have replaced all 5 occurrences, as mentioned in the readme file, of "YOUR_APP_ID_HERE.com.yourcompany" with my own string: se.[company name].[project name].demo. The compilation goes fine but when trying to run it on the phone, an error saying "The executable was signed with invalid entitlements" appears. And yes, I have an ad hoc provisioning profile installed. I've tried to add "Entitlements.plist" with "get-task-allow" checked but with the same result. Has anyone been able to run the example? If that is the case, provide me with instructions on how you got it to run, please.

URL: http://developer.apple.开发者_如何学Gocom/iphone/library/samplecode/GenericKeychain/index.html


Check your KeychainAccessGroups.plist and KeychainAccessGroups2.plist.

Change keychain-access-groups item0 and itme1 by doing the following:

  1. Go to Organizer -> Devices -> Provisioning Profiles (on the upper left)
  2. Look for the Provisioning Profile you are using to sign your app and click it
  3. Look for "App Identifier" that's your App ID

If your provisioning file App ID is ABC123CDF456.*,

item0 is ABC123CDF456.com.yourcompany.GenericKeychain2,

item1 is ABC123CDF456.com.yourcompany.GenericKeychainSuite


The get-task-allow property should be false/unchecked for AdHoc builds. Have you also correctly set your own reverse domain or app id in the Info.plist file?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜