问题描述
我正在尝试从Apple网站运行GenericKeychain:
I'm trying to run the GenericKeychain from Apple's website : http://developer.apple.com/library/ios/#samplecode/GenericKeychain/Introduction/Intro.html
该可执行文件已使用无效的权利进行了签名。事实证明,我需要一个临时的配置文件才能使示例工作。
的主要问题是,当我使用分发配置文件对其进行签名时,我无法调试我的应用程序。
after a lot of struggles with "The executable was signed with invalid entitlements.", it turns out i need an ad hoc provisioning profile to make their example work.The main problem with this is that i can't debug my app when i sign it with a distribution profile.
是否可以使用以下方法进行调试?分布情况?或者使用开发者个人资料来运行GenericKeychain?
Is there any way to debug with a distribution profile ? Or to run the GenericKeychain with a developer profile ?
感谢您的回答
推荐答案
我刚刚下载了新的GenericKeychain,并在Xcode 4中对其进行了测试:没问题。您唯一要做的就是设置项目&的基本SDK将 GenericKeychain和 GenericKeychain2这两个目标定位为最新iOS。
I just downloaded the fresh GenericKeychain and tested it in Xcode 4: No problem. The only thing you have to do, is to set the "Base SDK" of the project & the two targets "GenericKeychain" and "GenericKeychain2" to "Latest iOS".
您需要做两件事以使应用程序在您的设备上运行:
You need to do two things to get the app work on your device:
- 从
Apple Developer-iOS Provisioning
门户-AppIDs中获取应用程序的APP_ID。您可以创建
新的APP_ID或使用 Xcode:
通配符AppID进行测试和测试。
开发目的。 - 在
源代码中替换 YOUR_APP_ID_HERE ...并且不要忘记
在
中进行更改KeychainAccessGroups.plist&
KeychainAccessGroups2.plist。
现在,您应该可以在设备上测试演示应用程序了。
Now you should be able to test the demo app on the device.
这篇关于iPhone-调试GenericKeychain示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!