작성
·
256
0
안녕하세요.
벌써 몇시간째 헤메이고 있는데요...
강의에서 하라는대로 다 하고 있습니다. 그런데 강의 20 분 정도에 Add Another 에서 Pods 폴더가 보이질 않습니다..도대체 뭐가 잘못된걸까요.
답변 3
0
0
늦은시간에 답변 감사합니다~
지금 다시 해보고 있는데요
그런데 build 했을때 다음 같은 에러가 나옵니다.
ionic cordova build ios
Running app-scripts build: --platform ios --target cordova
[11:25:52] build dev started ...
[11:25:52] clean started ...
[11:25:52] clean finished in 2 ms
[11:25:52] copy started ...
[11:25:52] deeplinks started ...
[11:25:52] deeplinks finished in 11 ms
[11:25:52] transpile started ...
[11:25:55] transpile finished in 2.52 s
[11:25:55] preprocess started ...
[11:25:55] preprocess finished in less than 1 ms
[11:25:55] webpack started ...
[11:25:55] copy finished in 2.63 s
[11:25:59] webpack finished in 4.05 s
[11:25:59] sass started ...
Without from
option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined
to prevent this warning.
[11:25:59] sass finished in 757 ms
[11:25:59] postprocess started ...
[11:26:00] postprocess finished in 5 ms
[11:26:00] lint started ...
[11:26:00] build dev finished in 7.43 s
cordova build ios
(node:46579) UnhandledPromiseRejectionWarning: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
(node:46579) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an asyncfunction without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:46579) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
============================
검색해보니 금방 나오긴 하네요..
build 하기전에 아래 처럼 하면 안 나오네요..
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
0
ios 용 ionic app을 만들기 위해서는 개발 기기(맥 pc,맥북등)에 Cocoapods를 설치해주어야 합니다.
sudo gem install cocoapods
pod repo update
터미널에서 위와 같은 명령어를 사용하여 CocoaPod를 설치 후 진행해보세요.