Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Worklight build error Failed initializing ClientProjectBuilder

I have suddenly started getting worklight build errors like below. I have no clue why it started happening suddenly. The code was working fine until the remote machine I use for Xcode builds was rebooted. Any clue what could be causing it ?

ipad build failed: Failed initializing ClientProjectBuilder android build failed: Failed initializing ClientProjectBuilder iphone build failed: Failed initializing ClientProjectBuilder

Regards Avi

like image 512
Avi Avatar asked Feb 18 '15 11:02

Avi


1 Answers

The solution to this error, typically, is to delete the wlBuildResources folder, located in the TMPDIR of the OS.

See here: Worklight - FWLST1040E: android build failed: java.io.FileNotFoundException

  1. Close Eclipse
  2. Locate your temp folder (Windows, OS X)
  3. Delete the wlBuildResources folder
  4. Open Eclipse
  5. Re-build

It may be helpful to also delete the native folder before closing Eclipse, however do note that if you have written custom native code you should first back it up so it won't be lost(!).

like image 117
Idan Adar Avatar answered Sep 28 '22 14:09

Idan Adar