gpt4 book ai didi

ios - Xcode 10,命令 CodeSign 失败,退出代码非零

转载 作者:IT王子 更新时间:2023-10-29 07:32:04 26 4
gpt4 key购买 nike

每次我构建控制台时都会显示此消息。

CodeSign /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app (in target: Desker)cd /Users/admin/Desktop/AppStoreBuild/Project201export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

签名标识:“-”

/usr/bin/codesign --force --sign - --entitlements /Users/admin/Desktop/AppStoreBuild/Project201/build/Project.build/Debug-iphonesimulator/Project.build/Project.app.xcent --timestamp=none /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app

/Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app: resource fork, Finder information, or similar detritus not allowedCommand CodeSign failed with a nonzero exit code

...有什么方法可以确定此故障的原因吗?当我也尝试在模拟器中运行时,它显示签名身份:“-”。为什么我们需要在模拟器中签名身份?还有一件事是,如果我退出 Xcode 并重新启动,它会在我更改代码或添加方法时正确构建,但会再次构建失败。

最佳答案

我遇到了那个问题,Xcode 无法在设备上编译,但在模拟器上,它运行良好。

我用这些步骤解决了:

  1. 打开钥匙串(keychain)访问。
  2. 锁定“登录”钥匙串(keychain)。
  3. 解锁,输入你的PC账号密码。
  4. 在产品菜单中清理项目。
  5. 重新构建它。

然后一切正常。

关于ios - Xcode 10,命令 CodeSign 失败,退出代码非零,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52421999/

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