bug之 /usr/bin/codesign --force --sign - --timestamp=none

bug 描述

Xcode8.3 编译报错

/usr/bin/codesign –force –sign - –timestamp=none


Showing Recent MessagesCodeSign ~/Library/Developer/Xcode/DerivedData/YiDing-fiptpxtujwvnricolywfszwdtqod/Build/Products/Debug-iphonesimulator/CTAssetsPickerController.bundle    cd ~/Downloads/MVVM-RAC-Demo-master/YiDing/Pods    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~/Library/Developer/Xcode/DerivedData/YiDing-fiptpxtujwvnricolywfszwdtqod/Build/Products/Debug-iphonesimulator/CTAssetsPickerController.bundle~/Library/Developer/Xcode/DerivedData/YiDing-fiptpxtujwvnricolywfszwdtqod/Build/Products/Debug-iphonesimulator/CTAssetsPickerController.bundle: bundle format unrecognized, invalid,orunsuitableCommand /usr/bin/codesign failedwithexit code1


解决方法:

这里是CTAssetsPickerController报错,那么选择如图

选择General,

选择Identity 下的 『Choose info.plist file』,如图

选择 plist 文件,然后点击 Choose 按钮即可。

选择完,刷新一下(点一下其他的库,再点刚刚修改的)变成如图


于是乎,bug 解决

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 首先如果遇到应用卡顿或者因为内存占用过多时一般使用Instruments里的来进行检测。但对于复杂情况可能就需要用...
    攻克乃还_阅读 1,948评论 0 7
  • 放一篇之前一直在私人笔记里的参考,也就是个参考手册,用到的时候回来看看。 ‘$’ 作为引用关键字 ex:$PROJ...
    SMThree阅读 3,947评论 0 13
  • two Last login: Tue Aug 4 17:09:57 on ttys000 yushengyang...
    aofeilin阅读 1,061评论 1 9
  • 1:如何给一个Button增加一个可以传递的参数,代码如下:实现的原理是使用了iOS的“黑魔法” Runtime ...
    Z_Lukas阅读 301评论 1 1
  • XCode编译错误,如下: CodeSign /Users/admin/Library/Developer/Xco...
    JackSteven阅读 554评论 0 0