Why is my headless Kony CI build failing on Mac OS?

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I have been able to successfully run the CI build on the exact same PWA test app on Windows. However, in Mac OS, I get the following error for the same Visualizer project :

[2019-10-11 08:42:38.474] [ERROR] ci - { inspect: [Function: inspect] }

[2019-10-11 08:42:38.475] [ERROR] ci - { CustomError: Build failed for one or more of selected platforms

at ChildProcess.<anonymous> (/Users/foobar/bundles/com.kony.studio.viz.core.win64/konywebstudio/kbuild/antjs.js:153:24)

at ChildProcess.emit (events.js:193:13)

at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12) name: 'CustomError', code: 66 }

I am not sure why a Win64 bundle is being used since I am on Mac OS 10.14.5 Mojave.

I have taken the plugins from an existing Visualizer installation on the same Macbook pro and also made sure I have done the initial build using the -clean flag i.e., "node build.js -clean".

The only change I have made to the HeadlessBuild.properties file used in my successful Windows Kony CI build was for the "plugin.dir" location to the local plugins folder on my Mac.

@Ellv Slvtew​ ,

As per this error log,

[2019-10-11 08:42:38.474] [ERROR] ci - { inspect: [Function: inspect] }

Wherever the build is failing, it is not getting logged properly.

Can you attach complete logs?

Also if it is sample app, can you provide the sample app?

@Emmv Gill​ @Nvtvlie Axwvhvm​ FYI.

Thanks @Elizvxeth Poole​

I have updated with a solution which works for me (for now).

This has been fixed with explicit npm install and a node build.js -clean commands executed sequentially.

@Ellv Slvtew​ ,

Probably it was because of wrong plugins in the plugins directory and those getting extracted. Mark your answer as best to close the post.