代码之家  ›  专栏  ›  技术社区  ›  Whirlwind

执行deliver init时,多个命令产生错误

  •  0
  • Whirlwind  · 技术社区  · 5 年前

    我正在使用 deliver 使用fastlane提交审查申请。。。

    多个命令产生 '/Users/admin/Library/Developer/Xcode/DerivedData/fastlane integration ios fhihcydqlflwnvffrgoyqgikqaugq/Build/Products/Debug iphonesimulator/fastlane integration ios.app/phone\ u number.txt': 'fastlane integration ios')具有来自的复制命令 '/Users/admin/Projects/fastlane integration ios/fastlane/metadata/review\u information/phone\u number.txt' 2) 目标是“fastlane集成ios”(项目 'fastlane integration ios')具有来自的复制命令 到 '/Users/admin/Library/Developer/Xcode/DerivedData/fastlane integration ios fhihcydqlflwnvffrgoyqgikqaugq/Build/Products/Debug iphonesimulator/fastlane integration ios.app/phone\ u number.txt'

    这是因为有些文件具有相同的名称,它们都添加到编译包资源部分的构建阶段。

    deliver init 命令,我想不可能只重命名那些冲突的文件。

    有什么解决办法吗?

    0 回复  |  直到 5 年前
        1
  •  1
  •   Energy    4 年前

    对我来说,我的构建阶段->复制包资源(粉红色区域)多次引用该文件。

    单击您的项目 enter image description here

        2
  •  0
  •   balazs630    5 年前

    Project &燃气轮机; Build Phase Copy Bundle Resources 阻止。

    然后用Finder重命名这些资源文件,使其具有唯一的名称,最后在Xcode下重新添加它们 . 这样就不会破坏Xcode中对文本资源文件的引用。

    如果要在代码中解析这些文件,也应该在代码中更新文件名路径。

    另一个想法:

    如果文件具有相同的名称(如 phone_number.txt )只持有相同格式的电话号码,您可以添加一个新的 Run Script Phase 给你的