美文网首页
fastlane打包,不一定要指定project(或者路径错误)

fastlane打包,不一定要指定project(或者路径错误)

作者: 太平洋_cfd2 | 来源:发表于2024-06-18 10:33 被阅读0次
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

lane :dev do

    app_url = "https://www.pgyer.com/8b3D0JH0"
    updateLog = "1. <font color=DeepPink>优化bug</font>"
    sh("echo 'updateLog: \n#{updateLog}'")

    updateText = " # iOS测试环境 \n #{updateLog} "

    gym(
          clean: true,
          silent: true,
          #project: "danceRN.xcodeproj",
          export_method: 'ad-hoc',
          output_directory: './fastlane/build',
          output_name:"danceRN.ipa",
          scheme: 'danceRN',
          configuration: 'Dev',
          include_symbols:true,
          export_xcargs: "-allowProvisioningUpdates",
    )

    pgyer(
        api_key: "d16d96f2c4dfbe99a76058d7afc64905",
    )

  end

  lane :release do

    app_url = "https://www.pgyer.com/8b3D0JH0"
    updateLog = "1. <font color=DeepPink>优化bug</font>"
    sh("echo 'updateLog: \n#{updateLog}'")

    updateText = " # iOS线上环境 \n #{updateLog} "

    gym(
          clean: true,
          silent: true,
          #project: "danceRN.xcodeproj",
          export_method: 'ad-hoc',
          output_directory: './fastlane/build',
          output_name:"danceRN.ipa",
          #scheme: 'Customer',
          configuration: 'Release',
          include_symbols:true,
          export_xcargs: "-allowProvisioningUpdates",
    )

    pgyer(
        api_key: "d16d96f2c4dfbe99a76058d7afc64905",
    )

  end

相关文章

网友评论

      本文标题:fastlane打包,不一定要指定project(或者路径错误)

      本文链接:https://www.haomeiwen.com/subject/tesfcjtx.html