【问题标题】:Xcode Carthage export error ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NillClass> , bitcode_strip failedXcode Carthage 导出错误 ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NillClass> , bitcode_strip failed
【发布时间】:2019-06-08 03:07:12
【问题描述】:

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

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

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

我在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. 选中 - 取消选中“从位码重建”选项--不起作用

我找到了答案,希望对使用 Carthage 的人有所帮助。请查看my answer

【问题讨论】:

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


    【解决方案1】:

    构建阶段中删除 *.dSYM "in Carthage/Build/iOS" > 复制捆绑资源

    参考:

    参考(1)http://ka2n.hatenablog.com/?page=1458709290

    参考(2)https://twitter.com/steipete/status/725816245749166080

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-17
      • 2023-01-21
      • 2018-10-27
      • 1970-01-01
      • 2021-07-30
      • 2018-03-03
      相关资源
      最近更新 更多