프로젝트
[Ionic] Ionic 개발환경 구성하기 iOS
학학이
2016. 3. 30. 01:44
http://ionicframework.com/getting-started/
내용 그대로 따라하면 sample 앱을 만들 수 있다.
주의사항
- node 4 버전 이상이 필요하다(나중에 바뀔 수 있음. 현재 상태 stable 버전 추천)
- 위의 튜토리얼에는 나오지 않았지만 $ npm install -g ios-sim 미리 해주는게 좋다.
$ npm install -g cordova ionic
$ ionic start myApp tabs
$ cd myApp
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios
요기서 $ionic emulate ios 부분에서 아마 이런 에러가 날 것이다. $ npm install -g ios-sim
ios-sim was not found. Please download, build and install version 3.0.0 or greater from https://github.com/phonegap/ios-sim into your path. Or 'npm install -g ios-sim' using node.js: http://nodejs.org
Error: /Users/ryan/Ionic/myApp/platforms/ios/cordova/run: Command failed with exit code 2
다시 $ionic emulate ios
오호라 Objective-C 나 Swift 몰라도 아이폰 앱이 만들어졌다.