ionic3 deploying ios - huang-qing/ionic3-platform GitHub Wiki
Terminal(命令终端):通过以下指令获取权限
sudo -s
$ npm install -g [email protected] [email protected]
last version:
$ npm install -g ionic cordova
尽量使用npm
,不要使用cnpm
。会造成ionic webpack 打包错误。
$ npm install
- Open Xcode preferences (Xcode > Preferences…)
- Click the
Accounts
tab - Login with your Apple ID (+ > Add Apple ID…)
Creating a provisioning profile with a paid Apple Developer account is a little bit more involved. For full instructions, check out Launching Your App on Devices in the Apple Developer docs.
-
Run a production build of your app with
ionic cordova build ios --prod
-
Open the
.xcodeproj
file inplatforms/ios/
in Xcode -
Connect your phone via USB and select it as the run target
-
Click the play button in Xcode to try to run your app
Mac-> 项目文件夹 ios ->右键 显示简介 -> 共享与权限 -> 添加登录用户(或使用everyone) 设置读与写 权限 -> 设置 应用的包含的项目
Team 选项下拉框-> 选择注册的开发者
设置-> 通用 -> 设备管理 -> 开发应用商 -> 信任