协同设计失败,退出代码为1-无法建立副本资源

Lin*_*ing 1 code-signing code-signing-certificate ios

我意识到这个问题已经被问过好几次了,但是我尝试使用很多给出的答案来解决问题,但是很幸运。

CodeSign /Users/XXXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXXX-blligpejpeysabczydnolvooizok/Build/Products/Debug-iphoneos/XXXXXXXX.app
    cd /Users/XXXXXXXX/Documents/Development/Native/tomhais
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer: XXXXXXX"
Provisioning Profile: "iOS Team Provisioning Profile: XXXXXX"
                      XXXXXXXX

    /usr/bin/codesign --force --sign XXXXXXXXX --entitlements /Users/XXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXX-XXXXXXXX/Build/Intermediates/tomhais.build/Debug-iphoneos/XXXXXX.build/XXXXXXX.app.xcent --timestamp=none /Users/XXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXX-XXXXXXXX/Build/Products/Debug-iphoneos/tomhais.app

/Users/XXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXX-XXXXXXXX/Build/Products/Debug-iphoneos/XXXXXXXX.app: code object is not signed at all
In subcomponent: /Users/XXXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXXX-XXXXXXXX/Build/Products/Debug-iphoneos/XXXXXXXX.app/0CeadLitir.png
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)

我尝试了以下方法:

  1. 删除了我的开发者帐户并重新添加了
  2. 删除所有供应配置文件并重新下载
  3. 检查了钥匙串访问以确保它们使用系统默认值
  4. 检查我的代码签名是否输入了正确的证书
  5. 从资源中删除该图像/从“构建阶段/复制捆绑资源”中将其删除并再次添加它
  6. 重新启动机器
  7. 被机器诅咒

关于我可以尝试的任何其他想法?

在此处输入图片说明

Tim*_* R. 6

我发现,在应用程序捆绑包中有一个名为“ resources”的文件夹将导致代码签名失败。我认为,这似乎是iOS应用程序的某些实现细节或代码签名的未记录结果。一个空的项目只有一个资源文件夹,里面有一个随机文件,从而重现了该问题。

我无法使用共享的代码库轻松地重命名该文件夹,因此我的解决方案是将“ resources”文件夹放入一个具有不同名称的父文件夹中,并调整构建资源路径的方式。

  • 那有效,拥有一个名为“ resources”的文件夹是我的问题。糟糕,XCode太烂了!我在这个主题上研究了很多话题,其他解决方案均无效。 (2认同)