Skip to content

YAANNZ/AutoPackage-ipa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

.sh脚本自动化打包Xcode项目并上传ipa到fir.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages