Ionic ios仿真器问题

时间:2015-12-29 18:47:35

标签: ios angularjs json ionic

我无法使用以下命令启动离子模拟器

user:platforms user$ cd ..
user:example1 user$ ionic emulate ios
user:example1 user$ ionic run ios

以下是package.json

{
  "name": "example-1",
  "version": "1.1.1",
  "description": "Example 1: An Ionic project",
  "dependencies": {
    "gulp": "^3.5.6",
    "gulp-sass": "^2.0.4",
    "gulp-concat": "^2.2.0",
    "gulp-minify-css": "^0.3.0",
    "gulp-rename": "^1.2.0"
  },
  "devDependencies": {
    "bower": "^1.3.3",
    "gulp-util": "^2.2.14",
    "shelljs": "^0.3.0"
  },
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
"package.json" 28L, 615C
{
  "name": "example-1",
  "version": "1.1.1",
  "description": "Example 1: An Ionic project",
  "dependencies": {
    "gulp": "^3.5.6",
    "gulp-sass": "^2.0.4",
    "gulp-concat": "^2.2.0",
    "gulp-minify-css": "^0.3.0",
    "gulp-rename": "^1.2.0"
  },
  "devDependencies": {
    "bower": "^1.3.3",
    "gulp-util": "^2.2.14",
    "shelljs": "^0.3.0"
  },
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  ],
  "cordovaPlatforms": [
    "ios"
  ]
}

如果您需要更多信息,请与我们联系。 如果您需要更多信息,请告诉我。 如果您需要更多信息,请告诉我。 如果您需要更多信息,请告诉我。如果您需要更多信息,请告诉我。

1 个答案:

答案 0 :(得分:0)

添加iOS平台后,您需要构建ios版本,如下所示: http://ionicframework.com/getting-started/

$ ionic platform add ios
$ ionic build ios

也许这是缺少的一步?