기준 버전
XCode 8.2.1
Phonegap 4.3.1
Mac OS Sierra
필수 설치
1. XCode 설치
ㄴ AppStore XCode 검색 후 설치 (무조건 최신버전으로 설치)
ㄴ https://developer.apple.com/downloads (버전 선택 가능)
2. Homebrew 설치
ㄴ http://brew.sh/index_ko.html
3. Node.js 설치
ㄴ 터미널에서 $ brew install node
4. Phonegap 설치
ㄴ 터미널에서 $ sudo npm install -g phonegap
본격적인 Phonegap 시작
1. 프로젝트를 생성하고싶은 폴더로 이동
2. 프로젝트 생성
ㄴ 터미널에서 $ phonegap create aaa (aaa = 프로젝트폴더이름) com.aaa.aaa(com.aaa.aaa = 번들 ID) aaa (aaa = 프로젝트이름)
$ phonegap create aaa com.aaa.aaa aaa
3. IOS 용으로 프로젝트 빌드
ㄴ 생성된 프로젝트폴더안에 platform 폴더로이동
ㄴ 터미널에서 $ phonegap build ios
4. Phonegap Plugin 설치 (필수설치아님 , 사용하고싶은 Plugin 설치)
ㄴ 루트폴더에서 터미널 $ phonegap plugin add 플러그인이름
ㄴ 삭제하고싶을땐 $ phonegap plugin remove 플러그인이름
5. 마무리
ㄴ 3번이 성공적으로 완료되었다면 platform 폴더안에 ios 폴더가 생성되어있음.
ㄴ aaa.xcodeproj 실행 후 시작!
etc.
ㄴ 코딩후 시뮬레이터나 실기기 테스트전에
ㄴ $ phonegap prepare 로 프로젝트에 반영시켜준뒤 테스트해야함
'IOS & PhoneGap(Cordova)' 카테고리의 다른 글
IOS Phonegap APNS 구현 (PushPlugin) (1) | 2017.01.24 |
---|---|
IOS APNS(Apple Push Notification Service) 서버인증서 발급 (0) | 2017.01.24 |
IOS APNS(Apple Push Notification Service) 애플인증서 발급 (0) | 2017.01.23 |
IOS APNS(Apple Push Notification Service) 개인인증서 발급 (0) | 2017.01.23 |