美文网首页
Fastlane init

Fastlane init

作者: ShenYj | 来源:发表于2019-07-19 10:02 被阅读0次
  • 设置 Fastlane

将终端导航到项目目录并运行:
$ fastlane init

如果没有进入正确路径,会出现类似报错信息,重新定位到正确路径再次执行一次即可

localhost:iOS_13_adapter_demo Shen$ fastlane init
[✔] 🚀 
[17:04:35]: Sending anonymous analytics information
[17:04:35]: Learn more at https://docs.fastlane.tools/#metrics
[17:04:35]: No personal or sensitive data is sent.
[17:04:35]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[✔] Looking for iOS and Android projects in current directory...
[17:04:35]: Created new folder './fastlane'.
[17:04:35]: It looks like there is no iOS project in the current directory, though we did find one in a sub-directory
[17:04:35]: Please `cd` into the directory of the intended Xcode project you wish to use.

[!] Please `cd` into the directory of the intended Xcode project you wish to use and run `fastlane init` again

提示选择:

localhost:iOS_13_Demo Shen$ fastlane init
[✔] 🚀 
[✔] Looking for iOS and Android projects in current directory...
[17:09:24]: Created new folder './fastlane'.
[17:09:24]: Detected an iOS/macOS project in the current directory: 'iOS_13_Demo.xcworkspace'
[17:09:24]: -----------------------------
[17:09:24]: --- Welcome to fastlane 🚀 ---
[17:09:24]: -----------------------------
[17:09:24]: fastlane can help you with all kinds of automation for your mobile app
[17:09:24]: We recommend automating one task first, and then gradually automating more over time
[17:09:24]: What would you like to use fastlane for?
1. 📸  Automate screenshots
2. 👩‍✈️  Automate beta distribution to TestFlight
3. 🚀  Automate App Store distribution
4. 🛠  Manual setup - manually setup your project to automate your tasks
?  

然后可能卡在$ updateing bundle

这时候先`Control + Z`取消,
然后打开项目路径下的Gemfile ,将里面的source跟换为https://gems.ruby-china.com保存,
然后再cd到你的项目目录下,执行bundle update,就可以看到bundle更新完成,
再执行fastlane init即可

修改后的Gemfile文件

相关文章

  • Fastlane简单使用

    Fastlane常用命令 fastlane init 1.在当前项目根目录使用fastlane init 命令初始...

  • iOS fastlane自动打包

    1.fastlane init

  • Fastlane自动打包apk

    初始化Fastlane 切换到android项目根目录,执行fastlane init命令。根据fastlane提...

  • Fastlane init

    设置 Fastlane 将终端导航到项目目录并运行:$ fastlane init 如果没有进入正确路径,会出现类...

  • Fastlane自动打包ipa

    Fastlane自动打包ipa 初始化fastlane 终端cd到项目根目录,执行fastlane init命令。...

  • 2018-06-13

    先为工程初始化fastlane 配置: 1. fastlane init执行 2. Fastfile配置(arch...

  • fastlane snapshot 使用记录

    前面省去 fastlane 的安转过程。 1、在工程目录文件下面执行 fastlane init2、执行 snap...

  • fastlane

    1.初始化fastlane fastlane init 2.在终端中,输入以下命令,即可安装蒲公英的 fastla...

  • 使用Fastlane自动部署APP

    一、iOS项目fastlane配置 1、fastlane init会有如下询问,依照提问填写就行 2、执行完上面步...

  • Jenkins Fastlane build 项目时遇到双向认证

    执行fastlane init引出双向认证的授权输入验证码后就成功授权了

网友评论

      本文标题:Fastlane init

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