我正在尝试在我的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.3SDK。
编辑:请记住,项目在模拟器上编译、安装和运行非常完美,不需要代码签名。
发布于 2011-04-11 19:01:47
请在info.plist中检查您的捆绑包标识符,如果它也是正确的,请重新启动您的设备和机器,然后进行构建,并选择正确的SDK版本,它可能会正常工作。
发布于 2011-05-27 09:38:50
每次我换一台新电脑时都会遇到这个问题,这是我的解决方案:
转到您的密钥链访问,然后在developer.apple.com
瞧!就这样!
发布于 2011-04-11 18:24:20
你检查你的部署目标了吗?许多人混淆了术语Base SDK奇怪地代表了你的应用将在其上运行的最高版本的操作系统,因此,它越低,兼容性的机会就越大。
https://stackoverflow.com/questions/5619874
复制相似问题