bug之 /usr/bin/codesign --force -

2017-10-19  本文已影响82人  主角test

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 解决

上一篇下一篇

猜你喜欢

热点阅读