Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.07 KB

File metadata and controls

31 lines (25 loc) · 1.07 KB

AutoPackage-ipa

.sh脚本自动化打包并上传到fir

要实现的功能
  • update代码
  • 编译打包app
  • 上传到fir.im
命令
  • 更新代码

cd /Users/xxx/xxx.xcworkspace git pull

  • xcodebuild打包Archive文件

xcodebuild -workspace ${path to *.xcworkspace} -scheme ${scheme} -destination generic/platform=iOS archive -configuration Release ONLY_ACTIVE_ARCH=NO -archivePath ${export path *.xcarichive}

  • -workspace 对应xxx.xcworkspace
  • -scheme 对应 project的scheme
  • -configuration 对应Debug、Release
  • -archivePath 对应生成xxx.xcarichive的路径
  • 导出ipa

xcodebuild -exportArchive -archivePath ${path to *.xcarchive} -exportPath ${export path to dir} -exportOptionsPlist ${path to export options *.plist}

  • -archivePath 对应xxx.xcarchive的路径
  • -exportPath 对应生成的ipa的路径
  • -exportOptionsPlist 对应导出plist格式的配置文件
  • 上传到fir

fir login -T ${API token} fir publish ${path to xxx.ipa}