Xcode8.1 编译报错 /usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/...

模拟器无法运行,编译报错,真机却正常。

CodeSign ~/Library/Developer/Xcode/DerivedData/...BundleName.bundle  
    cd ~/.../Pods  
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate  
    export PATH="..."  
     
Signing Identity:     "-"  
  
  
    /usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/...BundleName.bundle  
  
  
~/Library/Developer/Xcode/DerivedData/...BundleName.bundle: bundle format unrecognized, invalid, or unsuitable  
Command /usr/bin/codesign failed with exit code 1  

解决方法:

https://forums.developer.apple.com/thread/66538

Xcode8.1 编译报错 /usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/..._第1张图片
img1

比如,MWPhotoBrowser报错, 选中后点击general按钮

Xcode8.1 编译报错 /usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/..._第2张图片

点击Choose info.plist File , 弹出框选择Pods的plist即可。

Xcode8.1 编译报错 /usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/..._第3张图片

你可能感兴趣的:(Xcode8.1 编译报错 /usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/...)