xcodebuild 명령 컴파일 Cordova iOS 프로젝트 오류 해결

1963 단어 iosCordovaxcodebuild
jenkins에서 xcodebuild로 Cordova 프로젝트를 컴파일하는 데 다음 오류가 발생했습니다.
.jenkins/workspace/ssm-app-ios/XXX/Bridging-Header.h:28:9: error: 'Cordova/CDV.h' file not found
#import <Cordova/CDV.h>
        ^
<unknown>:0: error: failed to import bridging header '/Users/XXX/.jenkins/workspace/XXX-app-ios/XXX/Bridging-Header.h'

** BUILD FAILED **

오랫동안 원인을 찾지 못했는데, 나중에 참고하였다.https://github.com/meteor/meteor/issues/3836, CONFIGURATION_BUILD_DIR에 절대 경로가 필요한 이유
The issue seems to be with xcodebuild! It expects the path for CONFIGURATION_BUILD_DIR to be an absolute path and not a relative path.
That is, because it uses that path relative to each project (CordovaLib and your app), hence the output will be dumped in different directories.
While this is not technically a meteor problem, would be nice to get it documented on docs.meteor.com e.g.
How to build your ios project from line command using xcodebuild
CODE_SIGN_IDENTITY=”iPhone Developer”
올바른 명령
xcodebuild -target  MYProject  CONFIGURATION_BUILD_DIR=$(pwd)/build/device  -configuration Debug build

좋은 웹페이지 즐겨찾기