Xcode到处ipa报错解决

应客户需求要打个ipa包给他们测试,谁知导出包的时候报如下错:

ipatool failed with an exception: #
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:811:in `rawLoadCommands'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:827:in `rpaths'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:258:in `resolveLoadedDylibs'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1422:in `block (2 levels) in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1421:in `block in initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1420:in `each'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1420:in `initialize'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2287:in `new'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2287:in `ProcessIPA'
    /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2938:in `
'

报错截图:


Xcode到处ipa报错解决_第1张图片


问题:可能是Xcode9.1及以后的一个bug

解决方案:在进入到如下界面的时候,不要等直接点“next”进入下一个页面

Xcode到处ipa报错解决_第2张图片

附上国外大牛博文链接:https://stackoverflow.com/questions/47039883/ipatool-failed-with-an-exception-nomethoderror-undefined-method-toolspath

你可能感兴趣的:(IOS)