美文网首页
Xcode8.1 编译报错 /usr/bin/codesign

Xcode8.1 编译报错 /usr/bin/codesign

作者: 缭雾 | 来源:发表于2016-12-13 11:09 被阅读2732次

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

    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

    img1

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

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

    相关文章

      网友评论

          本文标题:Xcode8.1 编译报错 /usr/bin/codesign

          本文链接:https://www.haomeiwen.com/subject/gjgvmttx.html