views:

152

answers:

2

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.com/iphone/library/samplecode/GenericKeychain/index.html

A: 

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?

St3fan
I've tested with both checked and unchecked "get-task-allow". The bundle identifier (app id) is set to se.[company name].[project name].demo
AOO
A: 

Check your KeychainAccessGroups.plist and KeychainAccessGroups2.plist.

Chage keychain-access-groups item0 and itme1.

If your provisioning file App ID is ABC123CDF456.*,

item0 is ABC123CDF456.com.yourcompany.GenericKeychain2,

item1 is ABC123CDF456.com.yourcompany.GenericKeychainSuite

mshiro