참고: https://cordova.apache.org/docs/en/11.x/guide/platforms/ios/
- Xcode CLI Tools 설치
xcode-select --install
- Homebrew 설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 경로에 Homebrew 추가
eval "$(/opt/homebrew/bin/brew shellenv)"
- Deployment tool 설치
brew install ios-deploy
- CocoaPods 설치
sudo gem install cocoapods
- Cordova CLI 설치
- 여기서 node.js 설치
- Cordova module 설치
sudo npm install -g cordova
- Cordova 프로젝트 생성
cordova create hello com.example.hello HelloWorld
- 프로젝트 디렉토리로 이동
cd hello
- 플랫폼 설정
cordova platform add ios
현재 설정 된 플랫폼 확인
빌드를 위한 요구사항 설치 확인
- 시뮬레이터로 실행
cordova emulate ios