VSTS-CI의 Cordova-iOS 빌드에서 "Error : Please specify a build.json file"오류가 표시 될 때의 해결 방법
환경
오류 내용
VSTS-CI Cordova-iOS 빌드에서 "Error: Please specify a build.json file according to htps : // 타코.ゔぃすあ lsつぢお。 코 m / 엔 - s / 두 cs / vs - 타코 2017"오류가 발생했습니다.
오류 로그 내용2018-04-06T04:49:15.6748020Z ##[section]Starting: Cordova Build ios
2018-04-06T04:49:15.6804790Z ==============================================================================
2018-04-06T04:49:15.6817860Z Task : Cordova Build
2018-04-06T04:49:15.6830980Z Description : Build a hybrid app project based on the Cordova CLI, Ionic CLI, TACO CLI, or other Cordova-compliant CLI
2018-04-06T04:49:15.6844330Z Version : 1.3.11
2018-04-06T04:49:15.6858230Z Author : Microsoft Corporation
2018-04-06T04:49:15.6871830Z Help : [More Information](http://go.microsoft.com/fwlink/?LinkID=691186)
2018-04-06T04:49:15.6885470Z ==============================================================================
2018-04-06T04:49:16.3490900Z Input to determineIdentity: {"cwd":"/Users/vsts/agent/2.131.0/work/1/s","unlockDefaultKeychain":false,"defaultKeychainPassword":"","p12":"/Users/vsts/agent/2.131.0/work/1/s/keys/ios/ios_development.p12","p12pwd":"********"}
2018-04-06T04:49:16.5429040Z 1 identity imported.
2018-04-06T04:49:16.8609810Z 1) 874E********************************DA2A "iPhone Developer: *********@gmail.com (GJ******VH)"
2018-04-06T04:49:16.8624080Z 1 valid identities found
2018-04-06T04:49:16.9113980Z "/Users/vsts/agent/2.131.0/work/1/s/_tasktmp.keychain"
2018-04-06T04:49:16.9128350Z "/Users/vsts/Library/Keychains/login.keychain-db"
2018-04-06T04:49:16.9832060Z determineIdentity result {"identity":"iPhone Developer: *********@gmail.com (GJ******VH)","foundIdentity":"iPhone Developer: *********@gmail.com (GJ******VH)","keychain":"/Users/vsts/agent/2.131.0/work/1/s/_tasktmp.keychain"}
2018-04-06T04:49:16.9846950Z Input to determineProfile: {"cwd":"/Users/vsts/agent/2.131.0/work/1/s","provProfileUuid":"","provProfilePath":"/Users/vsts/agent/2.131.0/work/1/s/keys/ios/3. Provisioning Profiles/flow_dev_profile.mobileprovision","removeProfile":false}
2018-04-06T04:49:16.9861030Z Provisioning profile file found.
2018-04-06T04:49:17.0639930Z /Users/vsts/agent/2.131.0/work/1/s/keys/ios/3. Provisioning Profiles/flow_dev_profile.mobileprovision has UUID of 5568****-****-****-****-********6d55
2018-04-06T04:49:17.0758600Z determineProfile result {"uuid":"5568****-****-****-****-********6d55","foundUuid":"5568****-****-****-****-********6d55"}
2018-04-06T04:49:17.0772860Z Module cache at /Users/vsts/.taco_home/node_modules
2018-04-06T04:49:17.8386950Z [email protected] already installed.
2018-04-06T04:49:18.7689050Z Adding Xcconfig update hook
2018-04-06T04:49:21.0354050Z Module cache at /Users/vsts/.taco_home/node_modules
2018-04-06T04:49:21.7954790Z [email protected] already installed.
2018-04-06T04:49:28.4771480Z Processing res/native for ios
2018-04-06T04:49:28.7206820Z Removing Xcconfig update hook
2018-04-06T04:49:28.7482230Z Error: Please specify a build.json file according to https://taco.visualstudio.com/en-us/docs/vs-taco-2017-ios-guide/#xcode8
2018-04-06T04:49:28.7497610Z at /Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/taco-team-build/taco-team-build.js:163:23
2018-04-06T04:49:28.7520940Z at _fulfilled (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:854:54)
2018-04-06T04:49:28.7535540Z at self.promiseDispatch.done (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:883:30)
2018-04-06T04:49:28.7550750Z at Promise.promise.promiseDispatch (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:816:13)
2018-04-06T04:49:28.7566670Z at /Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:624:44
2018-04-06T04:49:28.7581760Z at runSingle (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:137:13)
2018-04-06T04:49:28.7597140Z at flush (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:125:13)
2018-04-06T04:49:28.7611510Z at _combinedTickCallback (internal/process/next_tick.js:73:7)
2018-04-06T04:49:28.7625770Z at process._tickCallback (internal/process/next_tick.js:104:9)
2018-04-06T04:49:28.7724730Z ##[error]Task failed
2018-04-06T04:49:28.8199300Z ##[section]Finishing: Cordova Build ios
원인
cordova-ios
빌드에 필요한 build.json
파일이 없었습니다.
대응
config.xml
와 같은 디렉토리에 build.json
를 추가한다.
build.json{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "**********",
"packageType": "development",
"provisioningProfile": "********-****-****-****-************",
"buildFlag": [
"CODE_SIGN_STYLE=Manual"
]
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "**********",
"packageType": "app-store",
"provisioningProfile": "********-****-****-****-************",
"buildFlag": [
"CODE_SIGN_STYLE=Manual"
]
}
}
}
2018-04-06T04:49:15.6748020Z ##[section]Starting: Cordova Build ios
2018-04-06T04:49:15.6804790Z ==============================================================================
2018-04-06T04:49:15.6817860Z Task : Cordova Build
2018-04-06T04:49:15.6830980Z Description : Build a hybrid app project based on the Cordova CLI, Ionic CLI, TACO CLI, or other Cordova-compliant CLI
2018-04-06T04:49:15.6844330Z Version : 1.3.11
2018-04-06T04:49:15.6858230Z Author : Microsoft Corporation
2018-04-06T04:49:15.6871830Z Help : [More Information](http://go.microsoft.com/fwlink/?LinkID=691186)
2018-04-06T04:49:15.6885470Z ==============================================================================
2018-04-06T04:49:16.3490900Z Input to determineIdentity: {"cwd":"/Users/vsts/agent/2.131.0/work/1/s","unlockDefaultKeychain":false,"defaultKeychainPassword":"","p12":"/Users/vsts/agent/2.131.0/work/1/s/keys/ios/ios_development.p12","p12pwd":"********"}
2018-04-06T04:49:16.5429040Z 1 identity imported.
2018-04-06T04:49:16.8609810Z 1) 874E********************************DA2A "iPhone Developer: *********@gmail.com (GJ******VH)"
2018-04-06T04:49:16.8624080Z 1 valid identities found
2018-04-06T04:49:16.9113980Z "/Users/vsts/agent/2.131.0/work/1/s/_tasktmp.keychain"
2018-04-06T04:49:16.9128350Z "/Users/vsts/Library/Keychains/login.keychain-db"
2018-04-06T04:49:16.9832060Z determineIdentity result {"identity":"iPhone Developer: *********@gmail.com (GJ******VH)","foundIdentity":"iPhone Developer: *********@gmail.com (GJ******VH)","keychain":"/Users/vsts/agent/2.131.0/work/1/s/_tasktmp.keychain"}
2018-04-06T04:49:16.9846950Z Input to determineProfile: {"cwd":"/Users/vsts/agent/2.131.0/work/1/s","provProfileUuid":"","provProfilePath":"/Users/vsts/agent/2.131.0/work/1/s/keys/ios/3. Provisioning Profiles/flow_dev_profile.mobileprovision","removeProfile":false}
2018-04-06T04:49:16.9861030Z Provisioning profile file found.
2018-04-06T04:49:17.0639930Z /Users/vsts/agent/2.131.0/work/1/s/keys/ios/3. Provisioning Profiles/flow_dev_profile.mobileprovision has UUID of 5568****-****-****-****-********6d55
2018-04-06T04:49:17.0758600Z determineProfile result {"uuid":"5568****-****-****-****-********6d55","foundUuid":"5568****-****-****-****-********6d55"}
2018-04-06T04:49:17.0772860Z Module cache at /Users/vsts/.taco_home/node_modules
2018-04-06T04:49:17.8386950Z [email protected] already installed.
2018-04-06T04:49:18.7689050Z Adding Xcconfig update hook
2018-04-06T04:49:21.0354050Z Module cache at /Users/vsts/.taco_home/node_modules
2018-04-06T04:49:21.7954790Z [email protected] already installed.
2018-04-06T04:49:28.4771480Z Processing res/native for ios
2018-04-06T04:49:28.7206820Z Removing Xcconfig update hook
2018-04-06T04:49:28.7482230Z Error: Please specify a build.json file according to https://taco.visualstudio.com/en-us/docs/vs-taco-2017-ios-guide/#xcode8
2018-04-06T04:49:28.7497610Z at /Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/taco-team-build/taco-team-build.js:163:23
2018-04-06T04:49:28.7520940Z at _fulfilled (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:854:54)
2018-04-06T04:49:28.7535540Z at self.promiseDispatch.done (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:883:30)
2018-04-06T04:49:28.7550750Z at Promise.promise.promiseDispatch (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:816:13)
2018-04-06T04:49:28.7566670Z at /Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:624:44
2018-04-06T04:49:28.7581760Z at runSingle (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:137:13)
2018-04-06T04:49:28.7597140Z at flush (/Users/vsts/agent/2.131.0/work/_tasks/CordovaBuild_70e94267-15dc-434d-8973-023d766825d7/1.3.11/node_modules/q/q.js:125:13)
2018-04-06T04:49:28.7611510Z at _combinedTickCallback (internal/process/next_tick.js:73:7)
2018-04-06T04:49:28.7625770Z at process._tickCallback (internal/process/next_tick.js:104:9)
2018-04-06T04:49:28.7724730Z ##[error]Task failed
2018-04-06T04:49:28.8199300Z ##[section]Finishing: Cordova Build ios
cordova-ios
빌드에 필요한 build.json
파일이 없었습니다.대응
config.xml
와 같은 디렉토리에 build.json
를 추가한다.
build.json{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "**********",
"packageType": "development",
"provisioningProfile": "********-****-****-****-************",
"buildFlag": [
"CODE_SIGN_STYLE=Manual"
]
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "**********",
"packageType": "app-store",
"provisioningProfile": "********-****-****-****-************",
"buildFlag": [
"CODE_SIGN_STYLE=Manual"
]
}
}
}
{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "**********",
"packageType": "development",
"provisioningProfile": "********-****-****-****-************",
"buildFlag": [
"CODE_SIGN_STYLE=Manual"
]
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "**********",
"packageType": "app-store",
"provisioningProfile": "********-****-****-****-************",
"buildFlag": [
"CODE_SIGN_STYLE=Manual"
]
}
}
}
developmentTeam
와 provisioningProfile
의 **********
는 각각 설정한다 codeSignIdentity
는 debug 와 release 둘 다 iPhone Developer
로 한다 참고 URL
Reference
이 문제에 관하여(VSTS-CI의 Cordova-iOS 빌드에서 "Error : Please specify a build.json file"오류가 표시 될 때의 해결 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/alclimb/items/67c2f2d54d45602e8577텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)