ionic2:运行IOS错误

时间:2017-08-09 08:41:53

标签: cordova ionic-framework ionic2

我正在使用Ionic2,我已经安装了Xcode。当我在我的离子项目目录中运行命令Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova prepare (exit code 1): You have been opted out of telemetry. To change this, run: cordova telemetry on. Using this version of Cordova with older version of cordova-android is deprecated. Upgrade to cordova-android@5.0.0 or newer. Error: Your android platform does not have Api.js macbooks-mbp:canon macbookpro$ (node:839) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed 时,我收到此错误:

p1 {
	
	display = none;
	
	}


button {
	position:absolute;
	background-color: #8C6D09;
	color: white;
	padding: 16px 32px;
	display:inline-block;
	margin:4px 2px;
	-webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;	
	}
	
button1{
	background-color:#8C6D09;
	color:#FFF;
	position:absolute;
	}
  
  p1 {
	
	display = none;
	
	}

我没有安装android studio也不是sdk,因为我想在ios模拟器中运行该项目。任何人都可以告诉我解决方案吗?

提前致谢。

0 个答案:

没有答案