安装
1.安装ruby
brew install ruby
2.安装Fastlane Sigh
sudo gem install sigh
签名
下面开始签名,执行命令
fastlane sigh resign /Users/Singer/Downloads/xxx.ipa
选择Signing Identity,输入重签命令后会给你Mac中有效的Identity
[11:52:17]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[11:52:17]: Available identities:
iPhone Distribution: abc (xxxxx)
8EC5C89124FJKDS5D3090CBABEDCA980A7C891B9
iPhone Developer: XFC (xxxx)
41FC30F693C4F42AC0EB4AD8212F8BE5F9C90EBE
[11:52:17]: Signing Identity: 41FC30F693C4F42AC0EB4AD8212F8BE5F9C90EBE
输入provisioning文件
Path to provisioning file: /Users/Singer/Downloads/Test.mobileprovision
签名过程中如果遇到以下问题:
_floatsignTemp/Payload/xxx.app: replacing existing signature
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
请执行以下命令:
xcode-select --install
更新的话使用安装命令即可,安装和更新fastlane过程至此完毕!
sudo gem install fastlane --verbose //安装fastlane
fastlane --version //安装成功后查看版本