相关疑难解决方法(0)

如何在Mac OS X中删除文件中的"扩展属性"?

我有一个运行压力测试的AppleScript脚本.部分测试是打开,保存和关闭某些文件.不知何故,文件已经选择了一些禁止文件保存的"扩展属性".这导致压力测试失败.

如何删除扩展属性?

macos attributes

250
推荐指数
5
解决办法
19万
查看次数

Xcode 11,命令 CodeSign 失败,退出代码非零

自从(违背我的意愿)更新到 Xcode 11 后,当我尝试构建我的项目时出现此错误:

CodeSign /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app (in target 'pplight-ofx-098' from project 'pplight-ofx-098')
cd /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity:     "-"


 /usr/bin/codesign --force --sign - --entitlements /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/build/pplight-ofx-098.build/Debug/pplight-ofx-098.build/pplight-ofx-098Debug.app.xcent --timestamp=none /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app

/Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app: code object is not signed at all
In subcomponent: /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app/Contents/Frameworks/GLUT.framework
Command CodeSign failed with a nonzero exit code
Run Code Online (Sandbox Code Playgroud)

我已经尝试清理我的项目,重置我的登录钥匙串,并重新启动我的电脑,但我仍然收到这个错误......怎么办?

我正在使用 OpenFrameworks 构建 OSX 应用程序,而不是 iOS 应用程序。当我在 Xcode 10.3 中构建它时,它工作正常,没有错误。

这个问题的独特之处在于,这是针对 Xcode 11,而不是 10,并且其他问题的答案都不适合我!

xcode

8
推荐指数
4
解决办法
1万
查看次数

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

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

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. 被机器诅咒

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

在此处输入图片说明

code-signing code-signing-certificate ios

1
推荐指数
1
解决办法
2737
查看次数