运用shenzhen进行快速打包内测

执行:gem install shenzhen,时遇到如下问题

  1. ERROR: While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

解决如下:

  • 更新ruby
  • brew install rbenv ruby-build
  • rbenv install 2.1.2 (or whatever version you prefer)
  • rbenv global 2.1.2
  • gem update --system,重新打开shell,执行命令
  1. 安装时,遇到手机无法完成安装问题

检查项目的Deployment Target 是否过高,导致不支持低版本手机

  • 安装好之后,进入项目,如项目为testShenzhen,开始打包,分发以蒲公英为例
  • 进入到项目目录
    cd testShenzhen/
  • 项目工程为*.xcodeproj
    • 打包
      ipa build
    • 分发
    ipa distribute:pgyer -u d2cf85ef110f59da08ce44062b2120f1 -a 446d34f8817222c02521d6426b084ebf
 - 项目功臣各位*.xcworkspace
     - 打包

ipa build -w "testShenzhen/testShenzhen.xcworkspace" -s "testShenzhen" -c "Ad Hoc" --clean

              
     - 分发
        ```
    ipa distribute:pgyer -u d2cf85ef110f59da08ce44062b2120f1 -a 446d34f8817222c02521d6426b084ebf
  • 附录
    shenzhen
    iOS持续部署平台(一):SHENZHEN
    Xcode自动打包与shell脚本

你可能感兴趣的:(运用shenzhen进行快速打包内测)