Abdul Hannan
Abdul Hannan

Reputation: 82

IBM Worklight app fails to run in Xcode

I have built a simple app using jQuery Mobile on IBM Worklight. This app works fine on IBM Mobile Browser Simulator, Android Emulator and Android smartphones.

When I copy the iPhone generated zipped project to Mac to run it in Xcode, the following errors show up when building.

Image

Software Details:

I have also set up Worklight 5.06 on Mac OS X 10.7.3 seperately which has Xcode 4.3.2. I followed IBM docs to set up Worklight on Mac. My sample app works fine on IBM Mobile browser Simulator. But application fails to run on Android Emulator,Real Android Devices and Iphone native simulator. Here are the logs and screen shots

Upvotes: 0

Views: 1050

Answers (2)

Abdul Hannan
Abdul Hannan

Reputation: 82

I copied my project in a Mac which has Xcode 4.6 and it works fine. Worklight iOS guides should mention clearly that the required minimum version of Xcode is 4.5, It will save a lot of time.

Upvotes: 1

Idan Adar
Idan Adar

Reputation: 44516

Note: I strongly suggest upgrade to Xcode 4.6 and try with the iOS 5 or iOS 6 simulators. IBM Worklight does not support iOS 4.

Some things to try:

  1. Delete the iphone\native folder
  2. Build All and Deploy
  3. Again take the zip file from the iphone\package folder; Extract this zip file in your Mac machine; Open the Xcode project in Xcode and run it.

    • Make sure that you build the Worklight project, and not the CordovaLib project (as can be seen in your screenshot) - click on it and choose the correct project to build.

Upvotes: 0

Related Questions