ionic3 deploying ios - huang-qing/ionic3-platform GitHub Wiki

ionic3 deploying ios

platform setup

deploying to a device

Cordova iOS Platform Guide

Terminal指令权限

Terminal(命令终端):通过以下指令获取权限

sudo -s

安装全局ionic和cordova

last version:

$ npm install -g ionic cordova

安装项目依赖

尽量使用npm,不要使用cnpm。会造成ionic webpack 打包错误。

$ npm install 

Creating a Provisioning Profile

Using an Apple ID

  1. Open Xcode preferences (Xcode > Preferences…)
  2. Click the Accounts tab
  3. Login with your Apple ID (+ > Add Apple ID…)

profiles

Using an Apple Developer Account

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.

Running Your App

  1. Run a production build of your app with

    ionic cordova build ios --prod
    
  2. Open the .xcodeproj file in platforms/ios/ in Xcode

  3. Connect your phone via USB and select it as the run target

  4. Click the play button in Xcode to try to run your app

unlock

locked

signing

Mac-> 项目文件夹 ios ->右键 显示简介 -> 共享与权限 -> 添加登录用户(或使用everyone) 设置读与写 权限 -> 设置 应用的包含的项目

Signing

signing

Team 选项下拉框-> 选择注册的开发者

IOS 不受信任的开发者:

不受信任的开发者

设置-> 通用 -> 设备管理 -> 开发应用商 -> 信任
⚠️ **GitHub.com Fallback** ⚠️