ipatool失败,并发生以下异常:#< NoMethodError:nil:NillClass>的未定义方法`toolsPath'; [英] ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NillClass>

查看:219
本文介绍了ipatool失败,并发生以下异常:#< NoMethodError:nil:NillClass>的未定义方法`toolsPath';的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将Xcode升级到9.0.1版本后,我在我的一个项目中导出为iPA时遇到错误"ipatool失败,但异常:#NoMethodError:nil:NilClass的未定义方法'toolsPath'".尝试导出其他项目归档文件和同一项目归档文件的较旧版本,潜在地,我能够导出iPA.

Post upgradation of Xcode to 9.0.1 version, I am experiencing an error "ipatool failed with an exception: # NoMethodError: undefined method `toolsPath' for nil:NilClass" while exporting as iPA in one of my project. Tried exporting other project archives and older version of same project archive, Potentially I was able to export the iPA.

由于依赖框架的限制,项目中的位码被禁用.阅读一些博客,没有找到令人信服的答案.希望有人可以帮助我理解这个问题吗?

Bitcode is disabled in the project due to constraints in dependency framework. Read some blogs and did not find a convincing answer for this issue. Wish some one can help me understand the issue please?

Xcode版本:9.0.1

Xcode version: 9.0.1

MAC OS版本:10.13

MAC OS Version: 10.13

ipatool JSON错误响应:

{ 代码= 646; description ="ipatool失败,但出现以下异常:#toolsPath'for nil:NilClass> \ n/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:804:inrawLoadCommands'\n/Applications/Xcode.app/Contents /Developer/usr/bin/ipatool:820:在rpaths'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:259:in resolveLoadedDylibs'\ n/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1415:在block (2 levels) in initialize'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1414:in每个'\ n/Applications/Xcode .app/Contents/Developer/usr/bin/ipatool:1414:在block in initialize'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1413:in每个'\ n/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1413:在initialize'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2278:in新建'\ n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2278:in ProcessIPA'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2929:in'; 信息= { }; 级别=错误; 类型=异常; }

{ code = 646; description = "ipatool failed with an exception: #toolsPath' for nil:NilClass>\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:804:inrawLoadCommands'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:820:in rpaths'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:259:inresolveLoadedDylibs'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1415:in block (2 levels) in initialize'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1414:ineach'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1414:in block in initialize'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1413:ineach'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1413:in initialize'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2278:innew'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2278:in ProcessIPA'\n /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2929:in'"; info = { }; level = ERROR; type = exception; }

错误的屏幕截图

推荐答案

已解决的Xcode 9.1

即使我删除了旧的框架文件,禁用了位代码,也无法导出企业版发行版ipa,甚至无法使用XCode 9.1

Even if I removed old framework files, disabled bitcode.. I could not export distribution ipa for enterprise or even in development mode with XCode 9.1

最后,在出现红色错误之前,我只是单击了下一个,然后O能够导出我的ipa..我认为这是XCode 9.1s错误还是什么.

Finally I just clicked fast next before below red error comes, and O was able to export my ipa.. I think this is XCode 9.1s bug or what.

ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NillClass>

我在developer.apple.com中写了答案 https://forums.developer.apple.com/thread/90934# thread-message-281096

I wrote answer in developer.apple.com https://forums.developer.apple.com/thread/90934#thread-message-281096

这篇关于ipatool失败,并发生以下异常:#&lt; NoMethodError:nil:NillClass&gt;的未定义方法`toolsPath';的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆