티스토리 뷰
- 아래는 맥 os 기준으로 기술됨.
1. 프로젝트 생성
터미널 or 터미널 지원하는 IDE 에서
cordova create hello com.example.hello HelloWorld -d
( 위 명령은 hello 디렉터리 아래에 앱 식별자로 com.example.hello를 가진 HelloWorld 라는 이름의 앱 프로젝트를 생성한다.
-d 옵션은 경과를 표시하라는 옵션 )
2. ios 와 android 파일 추가
터미널 or 터미널 지원하는 IDE 에서
cd hello
( 프로젝트 생성된 hello 폴더 이동 )
cordova platform add ios
cordova platform add android
(ios / android 프로젝트 파일 생성 )
- 만약 ios 플랫폼 제거시엔 --> cordova platform remove ios
3. 에뮬레이터 이용 및 확인
터미널 or 터미널 지원하는 IDE 에서
a. 안드로이드 에뮬레이터
cordova emulate android -d
b. ios 시뮬레이터
ios-sim이라는 도구로 커맨드라인에서 실행할 수 있게한다.
ios-sim은 홈브루를 이용하여 설치
( 아래 명령어를 터미널에 입력 - 아래 주소값은 업데이트 될 소지가 있으니 설치 안될시엔 홈피 참조 - http://brew.sh/ )
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
c. 홈브루 설치완료 되었다면 아래 명령어 입력
brew install ios-sim
d. ios-sim 설치 완료되었다면 ios 시뮬레이터를 실행.
cordova emulate ios -d
'Programming language > mobile' 카테고리의 다른 글
cordova시작하기1 - mac os 에서 cordova 안드로이드 플랫폼 설정. (0) | 2016.02.22 |
---|
- Total
- Today
- Yesterday
- git checkout -b
- for of 구문
- 코도바
- interceptors
- Aptana
- Vue3
- Intrinsic
- 앵귤러
- React.StrictMode
- git
- react
- 내장요소
- svg 폰트
- CSS
- 태그
- anime.js
- vue-router
- 리프래시토큰
- svg icon font
- 반복문
- RefreshToken
- icon font
- svg모션
- 아이콘 폰트 만들기
- IntrinsicElements
- JsDoc
- cordova
- 자바스크립트
- react-router-dom
- Angular
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |