美文网首页
ios编译机配置

ios编译机配置

作者: evan_yc | 来源:发表于2018-09-12 18:42 被阅读0次

安装xcode,添加开发者账号

安装p12证书

安装JDK,配置环境变量

安装ruby环境

添加PackageApplication到这个目录,

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/

然后执行下面两个命令

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/

chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication

使用 gem 安装 fastlane

 sudo gem install fastlane

确保 Xcode 命令行工具已安装:

xcode-select --install

安装sign

sudo gem install sigh123

注:

1.编译之前,先在编译机打开工程,选择好开发者账号和证书,

否则报:Code signing is required for product type 'Application' in SDK 'iOS 10.3

2.首次编译,编译机上会弹codesigh 签名权限提示,选择始终允许

相关文章

网友评论

      本文标题:ios编译机配置

      本文链接:https://www.haomeiwen.com/subject/fwjbgftx.html