iOS開發除錯之報錯:Command /usr/bin/codesign failed with exit code 1
問題背景
在除錯的時候加入了一些圖片資源,然後發現就編譯不通過了
問題處理
- 問題描述
/Users/kodie/Library/Developer/Xcode/DerivedData/grwy-drmzoxzoscbscsfjvnllkywknoyt/Build/Products/Debug-iphonesimulator/grwy.app: replacing existing signature
/Users/kodie/Library/Developer/Xcode/DerivedData/grwy-drmzoxzoscbscsfjvnllkywknoyt/Build/Products/Debug-iphonesimulator/grwy.app: bundle format unrecognized, invalid, or unsuitable
In subcomponent: /Users/kodie/Library/Developer/Xcode/DerivedData/grwy-drmzoxzoscbscsfjvnllkywknoyt/Build/Products/Debug-iphonesimulator/grwy.app/Base.lproj
Command /usr/bin/codesign failed with exit code 1
- 問題截圖
- 問題解決
是由於我匯入的時候採用的是以下這種正常的資源方式,然後最外層資料夾的名字為Resources,然後就出問題了
後來經過多方試錯,才知道這個是資料夾的名字可能和系統的衝突了,然後導致系統內部的資源無法找到,就不能正常簽名,所以以後放置資源的路徑最好不要和系統(也可以是存在相同的名字的資源路徑)的起衝突...
附錄
網上查詢的解決辦法:雖不適用我的場景,但還是貼出來:
Xcode編譯錯誤:code object is not signed at all
XCode編譯報錯 Command /usr/bin/codesign failed with exit code 1
# Code Sign Error in macOS High Sierra Xcode - resource fork, Finder information, or similar detritus not allowed
Xcode 真機測試報錯 證書問題:Command /usr/bin/codesign failed with exit code 1
關於"Command /usr/bin/codesign failed with exit code 1"的解決辦法
以上!!!
相關文章
- Command CompileSwift failed with a nonzero exit code in Xcode 10CompileSwiftAIXCode
- Permission denied Command PhaseScriptExecution failed with a nonzero exit codeAI
- Docker Desktop啟動報錯:Failed to set version to docker-desktop: exit code: -1DockerAI
- 執行yarn報錯-node_modules\pngquant-bin: Command failedYarnAI
- command 'gcc' failed with exit status 1錯誤問題的解決辦法GCAI
- idea 報錯maven [ERROR] Maven execution terminated abnormally (exit code 1)IdeaMavenErrorORM
- 簡易的解決方式linker command failed with exit code 1 (use -v to see invocation)AI
- frepplectl解決報錯:bash: /usr/bin/frepplectl: Permission denied
- weblogic報錯: OPatch failed with error code 73WebAIError
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- git did not exit cleanly(exit code 128)報錯的部分原因及解決方法Git
- IDEA報錯Process finished with exit code -1073741819 (0xC0000005)Idea
- PHP報錯getimagesize(): SSL operation failed with code 1問題解決方案PHPAI
- iOS開發之runtime(一):runtime除錯環境搭建iOS除錯
- Sub-process /usr/bin/dpkg returned an error codeError
- cadvisor報錯failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/docAI
- iOS開發除錯神器:Reveal 24 for maciOS除錯Mac
- Mac之telnet報錯-bash: telnet: command not foundMac
- 使用VS Code從零開始開發除錯.NET 5除錯
- 正確配置 Visual Studio Code 開發和除錯 TypeScript除錯TypeScript
- step 1 :搭建開發除錯環境除錯
- vs code jshint報錯或者Open browser failed!! Please check if you have installed the browser correctly!錯誤.JSAI
- /usr/bin/python與/usr/bin/env python的區別Python
- iOS開發-使用Safari除錯iOS APP H5頁面iOS除錯APPH5
- 安裝opencv報錯/usr/bin/ld: warning: libpcre.so.1, needed by /home//anaconda3/lib/libglib-2.0.so.0OpenCV
- VS Code除錯C程式碼除錯C程式
- 如何在VS CODE除錯Angular除錯Angular
- zabbix報錯fping failed:no outputAI
- OGG Director報錯 Connection FAILEDAI
- 【linux報錯】-bash: xhost: command not foundLinux
- gitlab-runner之build failed with exit status 1問題分析GitlabUIAI
- code EACCESnpm ERR! syscall renamenpm ERR! path /usr/local/bin/webpack errno -13NPMWeb
- python中#!/usr/bin/python與#!/usr/bin/env python的區別Python
- myeclipse中提示Hot Code Replace Failed提示窗錯誤EclipseAI
- iOS xcode9.3 pod 刪除框架之後,clang報錯:not found框架iOSXCode框架
- iOS開發_Xcode15打包報錯 rsync error: some files could not be transferred (code 23) at /AppleInternaliOSXCodeErrorAPP
- vscode使用chrome除錯報錯VSCodeChrome除錯