microsoft / vsts-cordova-tasks

Streamline CI setup for your Apache Cordova, PhoneGap, Ionic, or Cordova CLI compatible app using a set of useful pre-defined build steps for VS Team Services or TFS
http://go.microsoft.com/fwlink/?LinkID=691188
Other
25 stars 27 forks source link

Cordova iOS build exits with error #56

Closed sboele closed 7 years ago

sboele commented 8 years ago

Hello,

We are trying to add our iOS cordova build to the CI environment and have setup a mac running the vsts-agent. However when building the iOS app it exits with "undefined is not a function".

Any hints how to get it to build? Or some debug mode we can turn it to see what it's failing on?

The log is: 2016-10-26T14:05:45.1145200Z ##[debug]loading inputs and endpoints 2016-10-26T14:05:45.1245310Z ##[debug]loading INPUT_PLATFORM 2016-10-26T14:05:45.1346030Z ##[debug]loading INPUT_CONFIGURATION 2016-10-26T14:05:45.1448290Z ##[debug]loading INPUT_CORDOVAVERSION 2016-10-26T14:05:45.1463720Z ##[debug]loading INPUT_ANTBUILD 2016-10-26T14:05:45.1477750Z ##[debug]loading INPUT_KEYSTOREFILE 2016-10-26T14:05:45.1490590Z ##[debug]loading INPUT_IOSSIGNMETHOD 2016-10-26T14:05:45.1503300Z ##[debug]loading INPUT_P12 2016-10-26T14:05:45.1515780Z ##[debug]loading INPUT_P12PWD 2016-10-26T14:05:45.1529030Z ##[debug]loading INPUT_UNLOCKDEFAULTKEYCHAIN 2016-10-26T14:05:45.1541810Z ##[debug]loading INPUT_PROVPROFILE 2016-10-26T14:05:45.1554680Z ##[debug]loading INPUT_REMOVEPROFILE 2016-10-26T14:05:45.1568420Z ##[debug]loading INPUT_XCODEDEVELOPERDIR 2016-10-26T14:05:45.1700770Z ##[debug]loading INPUT_WINDOWSPHONEONLY 2016-10-26T14:05:45.1801780Z ##[debug]loading INPUT_WINDOWSONLY 2016-10-26T14:05:45.1814800Z ##[debug]loading INPUT_CWD 2016-10-26T14:05:45.1827560Z ##[debug]loading INPUT_OUTPUTPATTERN 2016-10-26T14:05:45.1839820Z ##[debug]loading INPUT_TARGETEMULATOR 2016-10-26T14:05:45.1852190Z ##[debug]loading ENDPOINTAUTH$/ 2016-10-26T14:05:45.1864460Z ##[debug]loading ENDPOINT_AUTHSCHEME$/ 2016-10-26T14:05:45.1876870Z ##[debug]loading ENDPOINT_AUTHPARAMETER$/_ACCESSTOKEN 2016-10-26T14:05:45.1889540Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2016-10-26T14:05:45.1902660Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2016-10-26T14:05:45.1915560Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2016-10-26T14:05:45.1929500Z ##[debug]loaded 23 2016-10-26T14:05:45.1942290Z ##[debug]BUILD_SOURCEDIRECTORY=tim 2016-10-26T14:05:45.1955780Z ##[debug]BUILD_SOURCESDIRECTORY=/Users/Communited/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s 2016-10-26T14:05:45.1969850Z ##[debug]CWD=/Users/Communited/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s/Cordova 2016-10-26T14:05:45.2083630Z ##[debug]XCODEDEVELOPERDIR=/Applications/Xcode.app/Contents/Developer 2016-10-26T14:05:45.2182280Z ##[debug]CONFIGURATION=Release 2016-10-26T14:05:45.2196440Z ##[debug]ARCHS=null 2016-10-26T14:05:45.2209340Z ##[debug]PLATFORM=ios 2016-10-26T14:05:45.2222280Z ##[debug]TARGETEMULATOR=false 2016-10-26T14:05:45.2234590Z ##[debug]WINDOWSAPPX=null 2016-10-26T14:05:45.2247670Z ##[debug]WINDOWSONLY=false 2016-10-26T14:05:45.2349840Z ##[debug]WINDOWSPHONEONLY=false 2016-10-26T14:05:45.2456420Z ##[debug]UNLOCKDEFAULTKEYCHAIN=false 2016-10-26T14:05:45.2523940Z ##[debug]DEFAULTKEYCHAINPASSWORD=null 2016-10-26T14:05:45.2631010Z ##[debug]P12=/Users/Communited/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s/Cordova/res/certificates/ios/Distribution.p12 2016-10-26T14:05:45.2645870Z ##[debug]P12PWD=Password 2016-10-26T14:05:45.2748810Z ##[debug]IOSSIGNINGIDENTITY=null 2016-10-26T14:05:45.2809010Z ##[debug]PROVPROFILEUUID=null 2016-10-26T14:05:45.2840890Z ##[debug]PROVPROFILE=/Users/Communited/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s/Cordova/res/certificates/ios/App.mobileprovision 2016-10-26T14:05:45.2854840Z ##[debug]REMOVEPROFILE=true 2016-10-26T14:05:45.2867520Z ##[debug]ANTBUILD=false 2016-10-26T14:05:45.2880480Z ##[debug]KEYSTOREFILE=/Users/Communited/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s 2016-10-26T14:05:45.2893250Z ##[debug]KEYSTOREPASS=null 2016-10-26T14:05:45.2905740Z ##[debug]KEYSTOREALIAS=null 2016-10-26T14:05:45.2918020Z ##[debug]KEYPASS=null 2016-10-26T14:05:45.2930350Z ##[debug]OUTPUTPATTERN=bin 2016-10-26T14:05:45.3032460Z ##[debug]CORDOVAARGS=null 2016-10-26T14:05:45.3133280Z ##[debug]CORDOVAVERSION=6.3.1 2016-10-26T14:05:45.7922920Z undefined is not a function 2016-10-26T14:05:45.7970360Z ##[debug]task result: Failed 2016-10-26T14:05:45.8150830Z ##[error]Task failed 2016-10-26T14:05:45.8162740Z ##[debug]Processed: ##vso[task.issue type=error;]Task failed 2016-10-26T14:05:45.8235190Z ##[debug]Processed: ##vso[task.complete result=Failed;]Task failed 2016-10-26T14:05:45.8511770Z ##[section]Finishing: Cordova Build ios

jmatthiesen commented 8 years ago

Which version of iOS and Xcode are you using? I know some time has passed since you asked this question; is it still an issue for you?

sboele commented 8 years ago

Hello!

Thank you for your reply. This is still an issue for us. We are using Xcode version 7.3.1 on OSX 10.11.6. What do you mean by iOS version? We are running a TFS Cordova Build task.

dmitrii-snytkin commented 7 years ago

Hello, @sboele . Thanks for reporting and sorry for delay. We were not able to reproduce it locally using latest published version so we assume it has been already fixed. Could you please let us know if you still experiencing this issue? Thanks