Cocos2d-x项目,报错
CodeSign /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dabhdlnwdwoowjeiqavvwikjihix/Build/Products/Debug-iphonesimulator/xxx.app (in target 'xxx-mobile' from project 'xxx')
cd /Users/xxx/Documents/xxx/xxx/proj.ios_mac
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --deep --entitlements /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dabhdlnwdwoowjeiqavvwikjihix/Build/Intermediates.noindex/xxx.build/Debug-iphonesimulator/xxx-mobile.build/xxx.app.xcent --timestamp\=none /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dabhdlnwdwoowjeiqavvwikjihix/Build/Products/Debug-iphonesimulator/xxx.app
/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dabhdlnwdwoowjeiqavvwikjihix/Build/Products/Debug-iphonesimulator/xxx.app: bundle format unrecognized, invalid, or unsuitable
In subcomponent: /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dabhdlnwdwoowjeiqavvwikjihix/Build/Products/Debug-iphonesimulator/xxx.app/de.lproj
Command CodeSign failed with a nonzero exit code
找了半天,一直以为是签名有错,试了很多方法都不行,最后发现是Resources目录添加的问题,开始直接把Resources拉进工程,选择的是Create folder reference,这样是有问题的,要先创建Resources group,然后把外面Resources目录下面的资源拉进这个目录才行。
网友评论