xcode编译报错unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1

简介: 升级完xcode9.1之后,编译项目出现如下错误: CI今日构建时报出如下错误: /Users/xxx/Library/Developer/Xcode/DerivedData/Snowball-ebllohyukujrncbaldsfojfjxwep/Build/Intermediates.

升级完xcode9.1之后,编译项目出现如下错误:

CI今日构建时报出如下错误:

/Users/xxx/Library/Developer/Xcode/DerivedData/Snowball-ebllohyukujrncbaldsfojfjxwep/Build/Intermediates.noindex/ArchiveIntermediates/ProjectName/InstallationBuildProductsLocation/Applications//Project.app/Frameworks/AFHTTPRequestOperationLogger.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1

思来想去,也没找到原因所在,编译了其他app全部都是同样的报错信息。

可能的原因:

昨天xcode9进行了小版本更新所致

电脑里存在缓存,ded可以清除缓存

解决灵感:

https://stackoverflow.com/questions/41451502/xcodebuild-error-seckey-api-returned-25308

最终解决方法:重启电脑!!!

若没有解决,请参照如下文档:

https://stackoverflow.com/questions/44173831/codesign-returned-unknown-error-1-ffffffffffffffff

https://stackoverflow.com/questions/39868578/security-codesign-in-sierra-keychain-ignores-access-control-settings-and-ui-p

 

转自:http://www.cnblogs.com/dzblog/p/7761943.html

 

img_fa0be433d68c8212b2b0b3b1a564ccb1.png
如果本文对你有所帮助,请打赏——1元就足够感动我:)
支付宝打赏 微信打赏
联系邮箱:intdb@qq.com
我的GitHub: https://github.com/vipstone
关注公众号: img_9bde0f31ac4a0eca10b1bd7414b78faf.png


作者: 王磊
出处: http://vipstone.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,请标明出处。

相关文章
|
4月前
|
Python
解决安装ConcurrentLogHandler报错error in ConcurrentLogHandler setup command: use_2to3 is invalid.
本文介绍了在Python环境下安装ConcurrentLogHandler时遇到的"use_2to3 is invalid"错误的解决方法,主要是通过降级setuptools到57.5.0版本来解决该问题。
193 2
|
3月前
|
资源调度
安装项目的时候老是报错:Command failed.
安装项目的时候老是报错:Command failed.
|
4月前
|
iOS开发
IOS编译出现Command PhaseScriptExecution failed with a nonzero exit code
IOS编译出现Command PhaseScriptExecution failed with a nonzero exit code
338 2
|
7月前
|
NoSQL C语言
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
1572 0
|
C语言
安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1
安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1
664 0
|
Python
Pycharm报错:Process finished with exit code -1066598274 (0xC06D007E)
Pycharm报错:Process finished with exit code -1066598274 (0xC06D007E)
549 0
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
428 0
|
Perl
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
715 0
|
开发工具 Windows
“basetsd.h”: No such file or directory,LINK : fatal error LNK1158: 无法运行“rc.exe”报错
无法打开包括文件: “basetsd.h”: No such file or directory 解决方案
“basetsd.h”: No such file or directory,LINK : fatal error LNK1158: 无法运行“rc.exe”报错