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)
我尝试了以下方法:
关于我可以尝试的任何其他想法?
我发现,在应用程序捆绑包中有一个名为“ resources”的文件夹将导致代码签名失败。我认为,这似乎是iOS应用程序的某些实现细节或代码签名的未记录结果。一个空的项目只有一个资源文件夹,里面有一个随机文件,从而重现了该问题。
我无法使用共享的代码库轻松地重命名该文件夹,因此我的解决方案是将“ resources”文件夹放入一个具有不同名称的父文件夹中,并调整构建资源路径的方式。
归档时间: |
|
查看次数: |
2737 次 |
最近记录: |