-
Notifications
You must be signed in to change notification settings - Fork 4
Fastlane
ShenYj edited this page Sep 10, 2020
·
1 revision
Fastlane
是一种配置iOS和Android自动化Beta部署和发布的最简单的方法之一。它可以简化一些乏味、单调、重复的工作,像截图、代码签名以及发布App。只需一条命令就可实现从 Xcode 项目到 编译\打包\构建\提交审核。
-
gem
安装:$ sudo gem install fastlane -NV
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.
如果遇到权限问题,可尝试更换指令再次执行
$ sudo gem install fastlane -n /usr/local/bin
... ... ... Done installing documentation for rouge, xcpretty, terminal-notifier, unicode-display_width, terminal-table, plist, public_suffix, addressable, multipart-post, word_wrap, tty-screen, tty-cursor, tty-spinner, babosa, colored, highline, commander-fastlane, excon, unf_ext, unf, domain_name, http-cookie, faraday, faraday-cookie_jar, fastimage, mini_magick, multi_xml, rubyzip, security, xcpretty-travis-formatter, dotenv, bundler, faraday_middleware, naturally, simctl, jwt, httpclient, multi_json, signet, os, memoist, googleauth, mime-types-data, mime-types, retriable, declarative-option, declarative, uber, representable, google-api-client, digest-crc, google-cloud-env, google-cloud-core, google-cloud-storage, emoji_regex, fastlane after 305 seconds 56 gems installed
成功完成.
-
Homebrew Cask
安装$ brew cask install fastlane
sudo gem install -n /usr/local/bin gym
-
设置
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
即可
TBD...
ShenYj.github.io - 简书地址 - 返回首页
-
Apple
Common
蓝牙
LBS
音视频
- AVAudioSessionchange_route
- 切换线路
- StreamingKit
- Audio Unit 基础
OC 与 Swift 混编
Object-C
- 代码混淆
- autoreleasepool
- 忽略编译器(clang)警告
- 定时器
- 锁
- RunLoop
- block
- NS_REFINED_FOR_SWIFT
- NS_CLOSED_ENUM
- NS_TYPED_ENUM、NS_STRING_ENUM
- NS_TYPED_EXTENSIBLE_ENUM、NS_EXTENSIBLE_STRING_ENUM
- 关键字nonnull和nullable
- class、objc_getClass和object_getclass方法区别
- isKindOfClass和isMemberOfClass
- 应用程序的加载
- non-lazy classes & lazy classes
- load方法
- initialize方法
- 方法的本质
- 类型编码
- self和super
- 类的内存分析
Swift
- precondition
- 权限控制
- Array常用Api
- String初始化、定义
- String常用Api
- String截取演练
- Set定义、创建
- Set访问和修改
- Dictionary操作
- Dictionary和KeyValuePairs
- Dictionary与String转换
- 常用高阶函数
- enum原始值
- enum关联值
- enum遍历
- 递归enum
- enum内存分配
- 指针
- for循环
- break跳出循环
- 变量名与关键字冲突
- 类的定义
- 类的继承和初始化
- 关键字: final
- 关键字: mutating
- 关键字: lazy
- 修饰类方法的关键字: static
- 关键字: final、dynamic、objc和_dynamicReplacement
- 关键字:@dynamicMemberLookup和@dynamicCallable
- 关键字: propertyWrapper
- 自定义运算符
- 下标: subscript
- 扩展: extension
- 协议: protocol
- 协议和扩展
- 为什么需要泛型
- 泛型函数定义
- 泛型类型
- 泛型的类型约束
- 关联类型
- 为泛型定义要求
- 泛型下标
- 多线程
- Attributes
- 错误处理
- Codable
- DispatchSourceTimer
- Swift 5.x 演练: 更多功能编辑页
- Swift 5.x 类库收集
- 单元测试笔记
- 实例对象内存结构
- 元类型、Type、Self
- frozen
- convention
- Swift(5.3.2)源码编译
- SQLite.Swift类库演练
- Swift 5.5 关键字: async/await
- Swift 5.5 新特性: Continuations
- Swift 5.5 新特性: Actor
- Swift 方法调度
- Swift Mirror
- Swift 关键字: @_silgen_name
- Swift 关键字: @_disfavoredOverload
- swiftmodule
- Swift 5.6 新特性: Type placeholders
- Swift 5.6 新特性: #unavailable
- Swift 5.6 新特性: CodingKeyRepresentable
- Swift 5.6 新特性: existential any
- Swift 5.7 新特性: if-let/guard 语法简化
- Swift 5.7 新特性: Multi-statement closure type inference
- Swift 5.8 新特性: @backDeployed
- Swift 5.9 新特性: if switch expressions
- Swift 6.0 新特性:@preconcurrency
RxSwift
macOS - AppKit
-
iOS Assembly(ARM64)
-
C++
C++ 基础
- cout、cin
- 函数重载
- 默认参数
- extern "C"
- pragma once
- inline function
- const
- Reference
- 汇编
- 类和对象
- 堆空间内存管理
- Constructor
- Destructor
- 成员变量初始化
- 声明与实现分离
- namespace
- 继承
- 访问权限
- 初始化列表
- 多态:虚函数
- 多态:虚函数实现原理
- 多态:虚析构函数
- 多态:纯虚函数
- 多态:抽象类
- 多继承
- static
- static: 单例模式
- const 成员
- 引用类型成员
- 拷贝构造函数
- 调用父类的拷贝构造函数
- 浅拷贝、深拷贝
- 对象型参数和返回值
- 匿名对象
- 隐式构造
- 编译器自动生成的构造函数
- 友元
- 内部类
- 局部类
- 运算符重载
- 模板
- 类型转换
- C++标准
- Lambda
- 异常
- 智能指针
-
Flutter
Dart
Flutter
-
Go
Go 基础
-
Ruby
Ruby 基础
-
React-Native
React-Native
-
工具篇
-
Swift Package Manager
-
自动化
-
TroubleShooting
-
扩展