OGeek|极客世界-中国程序员成长平台

标题: iphone - iOS 代码签名错误 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 16:06
标题: iphone - iOS 代码签名错误

我正在尝试在我的 iPhone 上安装和运行一个基本的 iOS 应用程序。我尝试构建和安装时遇到的错误是:

CodeSign /Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app
cd /Users/jacob/code/iphone/newProject
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin"
setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s "iPhone Developer: Jacob LYLES (P4AAK856G5)" --resource-rules=/Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app/ResourceRules.plist --entitlements /Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Intermediates/newProject.build/Debug-iphoneos/newProject.build/newProject.xcent /Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app

/Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app: The operation was cancelled by the user.
Command /usr/bin/codesign failed with exit code 1

我已经删除并重新下载了我所有的配置文件和证书等等一百万次。任何帮助深表感谢。我可以根据需要提供更多信息。我在 XCode 4.0 上使用 iOS 4.3 SDK。

编辑:请记住,项目在不需要代码签名的模拟器上编译、安装和运行完美。



Best Answer-推荐答案


请检查 info.plist 中的包标识符,如果它也正确,请重新启动您的设备和机器,然后进行构建并选择正确版本的 SDK,它可能会工作。

关于iphone - iOS 代码签名错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5619874/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4