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"的解決辦法
以上!!!
相關文章
- 解決Xcode報錯:Command /usr/bin/codesign failed with exit code 1XCodeAI
- iOS報錯:linker command failed with exit code 1 (use -v to see invocation)iOSAI
- Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1錯誤解決辦法...APPXCodeDeveloperAI
- iOS linker command failed with exit code 1 (use v to see invocation)iOSAI
- Xcode執行範例程式遇到的問題Command /bin/sh failed with exit code 1XCodeAI
- 新增第三方類庫造成的linker command failed with exit code 1 (use -v to see invocation)的錯誤除錯AI除錯
- 執行yarn報錯-node_modules\pngquant-bin: Command failedYarnAI
- command 'gcc' failed with exit status 1錯誤問題的解決辦法GCAI
- Docker Desktop啟動報錯:Failed to set version to docker-desktop: exit code: -1DockerAI
- Permission denied Command PhaseScriptExecution failed with a nonzero exit codeAI
- Command CompileSwift failed with a nonzero exit code in Xcode 10CompileSwiftAIXCode
- ios clang: error: linker command failed with exit code 1 (use -v to see invocation)解決方法iOSErrorAI
- idea 報錯maven [ERROR] Maven execution terminated abnormally (exit code 1)IdeaMavenErrorORM
- /usr/bin/xauth: error in locking authority file錯誤Error
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- 簡易的解決方式linker command failed with exit code 1 (use -v to see invocation)AI
- vscode使用chrome除錯報錯VSCodeChrome除錯
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- weblogic報錯: OPatch failed with error code 73WebAIError
- iOS xcode9.3 pod 刪除框架之後,clang報錯:not found框架iOSXCode框架
- iOS開發除錯神器:Reveal 24 for maciOS除錯Mac
- iOS開發除錯 LLDB使用概覽iOS除錯LLDB
- Xcode除錯技巧之:LLDBXCode除錯LLDB
- step 1 :搭建開發除錯環境除錯
- iOS開發之runtime(一):runtime除錯環境搭建iOS除錯
- git did not exit cleanly(exit code 128)報錯的部分原因及解決方法Git
- QT錯誤之——collect2:ld returned 1 exit statusQT
- Sub-process /usr/bin/dpkg returned an error codeError
- Mac下用VSCode開發除錯GolangMacVSCode除錯Golang
- iOS開發之AFNetWorking初次使用會報錯的坑iOS
- asm報錯一例-support 報錯rename failedASMAI
- cadvisor報錯failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/docAI
- 使用VS Code從零開始開發除錯.NET 5除錯
- linux中/bin和/sbin和/usr/bin和/usr/sbinLinux
- 【shell 】 test, /usr/bin/test, [ ], 和/usr/bin/[都是等價命令
- iOS 除錯篇iOS除錯
- iOS 高效除錯iOS除錯
- iOS lldb除錯iOSLLDB除錯