美文网首页
fastlane打包上传到appstore

fastlane打包上传到appstore

作者: 太平洋_cfd2 | 来源:发表于2023-04-11 16:01 被阅读0次

https://juejin.cn/post/7081923961704939527

注意点

fastlane deliver init 生成deliverFile文件,产生appstore需要的metadata
注意:
deliverFile文件中放username:appleid
文件内容如下,ps:

# The Deliverfile allows you to store various App Store Connect metadata
# For more information, check out the docs
# https://docs.fastlane.tools/actions/deliver/

username "mumu19920210@sina.com"
其次:
metadata -> zh-Hans -> release_notes.txt中更新文本(本次更新内容的文本)
app_identifier("xxxxxxxxx") # The bundle identifier of your app
team_id("xxxxxxxx") # Developer Portal Team ID 
apple_id("xxxxxxx") # Your Apple email address 自己的账号
itc_team_id("xxxxx") # App Store Connect Team ID 公司id(名下关联多个公司)
 desc "以 app-store 方式打包并上传到 iTunes Connect"
  lane :release do

    puts "自动生成 Provisioning Profiles 文件"

    puts "以 app-store 方式打包"

    gym(
      # 指定打包所使用的输出方式 (可选: app-store, package, ad-hoc, enterprise, development)
      export_method: "app-store",
      # 指定项目的 scheme 名称
      scheme: "Customer",
      # 指定输出的文件夹地址
      output_directory: './fastlane/build',
    output_name:"driver.ipa",
      # 指定打包方式 (可选: Release, Debug)
      configuration: "Release",
      export_xcargs: "-allowProvisioningUpdates"
    )

    #puts "上传 ipa 包到 TestFlight"
    #pilot(team_name: "Shenzhen Kuai Feike Logistics Co., Ltd.")

    puts "上传 ipa 包到 iTunes Connect"
    deliver(
    submission_information: {
        add_id_info_limits_tracking: false,
        add_id_info_serves_ads: false,
        add_id_info_tracks_action: false,
        add_id_info_tracks_install: false,
        add_id_info_uses_idfa: false,
        content_rights_has_rights: false,
        content_rights_contains_third_party_content: false,
        export_compliance_platform: 'ios',
        export_compliance_compliance_required: false,
        export_compliance_encryption_updated: false,
        export_compliance_app_type: nil,
        export_compliance_uses_encryption: false,
        export_compliance_is_exempt: false,
        export_compliance_contains_third_party_cryptography: false,
        export_compliance_contains_proprietary_cryptography: false,
        export_compliance_available_on_french_store: false
    },
      # 跳过截图上传
      skip_screenshots: true,
      # 跳过元数据上传
      skip_metadata: true,
      #跳过上传ipa或pkg到iTunes Connect
      skip_binary_upload: false,
      # 跳过审核直接上传
      force: true,
      # 在上传所有内容后提交新版本进行审核
      submit_for_review: true,
      # 一旦应用程序审核通过,该应用会自动发布App Store
      automatic_release: false
    )

  end
以上的appstore上传到苹果后台后,并没有提交审核,以下才可以
desc "以 app-store 方式打包并上传到 iTunes Connect"
  lane :upload do

    puts "上传 ipa 包到 iTunes Connect"
    deliver(
    submission_information: {
        add_id_info_limits_tracking: false,
        add_id_info_serves_ads: false,
        add_id_info_tracks_action: false,
        add_id_info_tracks_install: false,
        add_id_info_uses_idfa: false,
        content_rights_has_rights: true,
        content_rights_contains_third_party_content: true,
        export_compliance_platform: 'ios',
        export_compliance_compliance_required: false,
        export_compliance_encryption_updated: false,
        export_compliance_app_type: nil,
        export_compliance_uses_encryption: false,
        export_compliance_is_exempt: false,
        export_compliance_contains_third_party_cryptography: false,
        export_compliance_contains_proprietary_cryptography: false,
        export_compliance_available_on_french_store: false
    },
      # 跳过截图上传
      skip_screenshots: true,
      # 跳过元数据上传
      skip_metadata: false,
      #跳过上传ipa或pkg到iTunes Connect,如果已上传就是true,反之false
      skip_binary_upload: false,
      # 跳过HTML预览文件的验证
      force: true,
      # 在上传所有内容后提交新版本进行审核
      submit_for_review: true,
      # 一旦应用程序审核通过,该应用会自动发布App Store
      automatic_release: false
    )
在打包到appstore后,并且苹果后台处理完,但由于缺少附加信息submission_information,而导致无法自动提审,比如“缺少出口规范证明”
submission_information参考:
https://www.jianshu.com/p/3376370c7572
deliver用法参考:
https://blog.csdn.net/ArthurChenJS/article/details/104728490
http://docs.fastlane.tools/actions/deliver/#compliance-and-idfa-settings

相关文章

网友评论

      本文标题:fastlane打包上传到appstore

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