模拟器无法运行,编译报错,真机却正常。
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
解决方法:
img1
比如,MWPhotoBrowser报错, 选中后点击general
按钮
点击Choose info.plist File
, 弹出框选择Pods的plist即可。
网友评论