gpt4 book ai didi

iphone - 命令/usr/bin/codesign 失败,退出代码为 1

转载 作者:行者123 更新时间:2023-11-29 13:45:48 26 4
gpt4 key购买 nike

当我构建我的项目时,我遇到了这个错误:

CodeSign "build/Debug-iphoneos/MyApp.app" cd /Users/crackers/Desktop/MyApp/MyApp setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin/codesign -f -s "iPhone Developer: xxxxxxx xxxxxxxx (D492H27WDR)" "--resource-rules=/Users/crackers/Desktop/MyApp/MyApp/build/Debug-iphoneos/MyApp.app/ResourceRules.plist" --entitlements "/Users/crackers/Desktop/MyApp/MyApp/build/MyApp.build/Debug-iphoneos/MyApp.build/MyApp.xcent" "/Users/crackers/Desktop/MyApp/MyApp/build/Debug-iphoneos/MyApp.app"

/Users/crackers/Desktop/MyApp/MyApp/build/Debug-iphoneos/MyApp.app: object file format invalid or unsuitable Command /usr/bin/codesign failed with exit code 1

我的 mac 中同时安装了 Xcode3.x 和 Xcode4.x (iOS5 beta)。几周前一切正常。所有证书都工作正常。所有证书都处于良好状态。

我已将 Xcode(s) 文件移动到新目录。之后我收到此错误。

最佳答案

如果您将 Xcode 文件移动到一个新目录并且在您这样做之后出现此错误,那么显然您应该在默认的正确 Developer 位置重新安装 Xcode。我正在运行 iOS 5 Beta Xcode,它在正确的目录中运行良好。首先按照网上的教程完全卸载 Xcode:http://macdevelopertips.com/xcode/how-to-uninstall-xcode.html

然后在正确的位置重新安装 Xcode,如果可行请告诉我。恕我直言,它应该可以工作。

关于iphone - 命令/usr/bin/codesign 失败,退出代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7463280/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com