无法构建Apple的示例项目核心数据手册
我直接从 Xcode 的文档窗口打开了核心数据手册示例。该项目将无法构建。它说 Iphone OS 4.0 丢失。由于我使用 Xcode 3 和 iOS 4.2 的 SDK,因此我将构建 SDK 更改为 iOS4.2(最新),但它接着说:
代码签名错误:找不到与应用程序标识符“com.yourcompany.CoreDataBooks”匹配的有效配置文件
如果我将代码签名身份更改为“不进行代码签名”,它会显示:
CodeSign 错误:SDK“iOS 4.2”中的产品类型“应用程序”需要代码签名
我不确定运行该示例是否需要 99 美元的开发人员费用。这会是问题吗?
提前致谢。
I opened the core data book example directly from Xcode's documentation window. The project won't build. It says the Iphone OS 4.0 is missing. Since I used Xcode 3 with SDK of iOS 4.2, I changed the build SDK to iOS4.2 (latest), but it then says:
Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.CoreDataBooks' could not be found
If I change the code signing identity to "don't code sign", it says:
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.2'
I am not sure whether the $99 developer fee is required to run the example. Would that be the problem?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Leo,
仅当您尝试构建设备并且没有配置文件或提供错误信息时,才会发生代码签名错误。
当您提供错误的标识符时,会发生以下错误,如果您有配置文件(在 Windows 菜单下检查 XCode 的组织者),那么您应该提供从 com.app 开始的应用程序标识符。等等。
代码签名错误:找不到与应用程序标识符“com.yourcompany.CoreDataBooks”匹配的有效配置文件
您遇到的第二个错误是因为您尝试在没有任何配置文件的情况下构建设备构建。
CodeSign 错误:SDK“iOS 4.2”中的产品类型“应用程序”需要代码签名
如果您想构建该应用程序的设备,您应该拥有正确的配置文件,否则您将无法它。
如果您只想在模拟器上运行它,那么您可以轻松完成。
在最左上角,您将看到一个下拉菜单。您需要选择模拟器和调试。然后清理所有目标和“构建并运行”应用程序。
谢谢
Leo,
Code signing error will occur only when you try to make device build and either dont have provisioning profile or you are giving wrong information.
Following error occurs when you provide wrong identifier, If you have provisioning profile (check in organizer of XCode, under windows menu)then you should provide its app identifier starting from com. and so on.
Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.CoreDataBooks' could not be found
The second error you are getting is because you are trying to build, device build without having any profile.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.2'
If you want to make that application's device build you should have right provisioning profile, else you would not be able to make it.
If you only wants to run it on simulator then you can do it easily.
On the LeftMost corner top you will fine a dropdown menu. In that you will need to select Simulator and Debug. And after that clean all targets and "Build and Run" application.
Thanks