美文网首页
【iOS】自动打包fastlane 使用 Appfile和F

【iOS】自动打包fastlane 使用 Appfile和F

作者: alanim | 来源:发表于2019-02-21 18:49 被阅读0次

自动打测试包并上传至pgyer

1.终端: cd到工程目录
2.终端: fastlane init

然后会出现

示例

选择4 稍等片刻会提示点击enter键 多点击几次 之后工程目录下会出现 fastlane文件夹(包含Appfile、Fastfile)、Gemfile、Gemfile.lock

3.编辑Appfile
app_identifier("com.xxx.xxx") # The bundle identifier of your app

apple_id("xxx@xxx.com") # Your Apple email address
4.编辑Fastflie

eg: 工程名:AAA

default_platform(:ios)

platform :ios do

  desc "Submit a new adhoc Beta Build to [https://www.pgyer.com/](https://www.pgyer.com/)"

  lane :adhoc do

    gym(scheme: “AAA",

        workspace: “AAA.xcworkspace",

        include_bitcode: true,

        configuration: "Release",

        export_method: "ad-hoc”,                                 //什么种类的包

        output_directory: "/Users/xxx/Desktop/ipa”,    //导出到的文件夹  随意创建的文件夹

        output_name: “xxx.ipa”,                                   //包名 xxx可以随意代替

        silent: false,

        include_symbols: true,

    )

    #pgyer(api_key: “xxx", user_key: “xxx")

  end

end
5.终端: bundle exec fastlane adhoc (adhoc 是Fastfile 里的lane名)

... (等待打包结果)

相关文章

网友评论

      本文标题:【iOS】自动打包fastlane 使用 Appfile和F

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