5

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

Avi
  • 91
  • 7

1 Answers1

16

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(!).

Community
  • 1
  • 1
Idan Adar
  • 44,156
  • 13
  • 50
  • 89
  • 1
    Idan, I tried deleting the native folder and rebuild but that did not help. However the exact steps you mentioned above fixed it ! Thank you ! – Avi Feb 19 '15 at 14:03
  • @Idan, Do you have any suggestions for what to do if this occurs while using the WL CLI? I have tried deleting the wlBuildResources and wlPreview folders as well as deleting the server files and rerunning wl create-server but none of this has helped. – hshepherd Jun 29 '15 at 15:31
  • mmmm, try removing the .ibm folder; backup your stuff. – Idan Adar Jun 29 '15 at 15:33