VSTS-CI의 Cordova-iOS 빌드에서 "Error : Please specify a build.json file"오류가 표시 될 때의 해결 방법

환경


  • VSTS (Visual Studio Team Services) CI 서비스 (무료 플랜)
  • Agent: Hosted macOS Preview
  • Node.js: v6.14.1
  • cordova: v7.1.0
  • cordova-ios: 4.5.4

  • 오류 내용



    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"
                ]
            }
        }
    }
    
  • developmentTeamprovisioningProfile********** 는 각각 설정한다
  • xcode-8 에서 codeSignIdentity 는 debug 와 release 둘 다 iPhone Developer 로 한다

  • 참고 URL


  • htps : // 코 r ゔ 아. 아파치. 오 rg / 도 cs / 엔 / ㅁ st / 구이 / p t t rms / 이오 s / #
  • htps : // / cs. 미 c 로소 ft. 코 m / 엔 - s / ぃ ぃ あ ls 츠 ぢ 오 / c 로 s ぁ t ぉ rm / 과 ㅇ 이봐, 어서?ゔ ぃ w = 와 ls fu r r r ゔ ぁ 2017 # x 8
  • 좋은 웹페이지 즐겨찾기