Xcode迦太基导出错误ipatool失败,并出现以下异常:#<nomethoderror:undefined =“” method =“”`toolspath'=“” for =“” nil:nillclass =“”>,bitcode_strip失败

时间:2019-01-14 05:38:53

标签: ios xcode carthage in-house-distribution enterprise-distribution

我正在使用 Carthage 维护一个项目。它运行良好,存档也很好。但是它无法导出企业应用程序。 “企业分发选项”中的错误是

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

如果立即单击“下一步”跳过“企业分发选项”页面,则会导致另一个错误“ bitcode_strip失败”。

我在stackoverflow上进行了搜索,有很多相关的帖子,但是没有与我的情况相同的问题,所以我发布了一个新问题。

我关注了这篇文章 Bitcode_strip failed in Xcode 8 但以下解决方案均无效。

  1. 删除所有派生数据并多次清除-不起作用
  2. 更改Xcode版本(Xcode 9.2和Xcode 8.3)-不起作用
  3. 设置STRIP_BITCODE_FROM_COPIED_FILES = NO -不起作用
  4. 构建设置中的所有位代码选项均设置为NO -不起作用
  5. 选中-取消选中“从位码重建”选项-不起作用

我找到了答案,希望对使用迦太基的人有所帮助。请检查my answer

Enterprise distribution options ipatool failed with an exception   NoMethodError Click "Next" before loading finish

1 个答案:

答案 0 :(得分:0)

构建阶段> 复制捆绑资源

在Carthage / Build / iOS 中删除* .dSYM enter image description here

参考:

Ref(1)http://ka2n.hatenablog.com/?page=1458709290 enter image description here

Ref(2)https://twitter.com/steipete/status/725816245749166080 enter image description here

Ref(3)https://stackoverflow.com/a/34797244/111277

相关问题