Quantcast
Channel: 天狐博客
Viewing all articles
Browse latest Browse all 115

iOS Xcode .bundle format unrecognized, invalid, or unsuitable

$
0
0

Xcode 8.2.1 (8C1002) 运行很来一个很老的项目,项目使用bundle与framework进行开发。出现bundle不能识别的信息:

CodeSign /Users/Jakey/Library/Developer/Xcode/DerivedData/Service-bulelefekgjaatgwhutjmmwiunir/Build/Products/Debug-iphonesimulator/RLResources.bundle
    cd "/Volumes/files/Service"
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    
Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --timestamp=none /Users/Jakey/Library/Developer/Xcode/DerivedData/Service-bulelefekgjaatgwhutjmmwiunir/Build/Products/Debug-iphonesimulator/RLResources.bundle

/Users/Jakey/Library/Developer/Xcode/DerivedData/vw-service-bulelefekgjaatgwhutjmmwiunir/Build/Products/Debug-iphonesimulator/RLResources.bundle: bundle format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1

解决办法

TARGETS->选择出错的bundle的target->General->Identity  Choose info.plist File

选择对应出错bundle target目录中的xxx.plist文件

原因

个人猜测原来.bundle文件是不需要info.plist文件的,Xcode8校验更加严格,需要这个plist文件而且必须与build配置进行关联。如果build配置中没有plist被认为是无效的bundle,不完整的bundle。

Run!

转载请注明:天狐博客 » iOS Xcode .bundle format unrecognized, invalid, or unsuitable


Viewing all articles
Browse latest Browse all 115

Trending Articles