1

While trying to deploy an iOS app to the IBM Worklight Application Center management console, we encounter the following error:

File /var/folders/t0/jhv2njg9215........./T/temp19........./Rmot...App..AppIphone.zip is empty or invalid. Perhaps you did not build the project with XCode before instrumenting!

These are the steps we've taken:

  1. In eclipse Navigate to the iPhone Environment and Right-Click.
  2. Go to IBM Application Center
  3. Choose Publish test-ready application.

Our development environment: Eclipse Java EE Juno SR2

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
Shireesh
  • 263
  • 1
  • 2
  • 9
  • Hopefully when you say you are using the "Eclipse Java EE IDE for Web Developers" edition of eclipse, you mean you are using "Eclipse IDE for Java EE Developers" here: http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/junosr2 Worklight is a bit particular about which edition and version of eclipse is supported, as seen here: https://www.ibm.com/developerworks/mobile/worklight/download/ – Barbara Mar 10 '14 at 21:21

1 Answers1

3

In order to work with iOS applications inside of Mobile Test Workbench or create test ready applications you have to first build the iOS components inside of XCode. In the infocenter you can find the following information:

"Before you can test a mobile application, the application must first be instrumented. An instrumented application contains the application under test augmented with code that allows you to record or play back a test.

A native iOS application is a complete iOS project in Xcode. The build and compile process to instrument the application takes place entirely in Xcode on a Macintosh computer. One, single application is created for both recording and playback. "

In order to accomplish this right-click the iPhone environment inside of Worklight Studio and click Run-As->XCode project. Once the project is loaded inside of XCode please build/run the iOS components here. After these steps are completed you should be able to instrument the application correctly.

Here are some links to the infocenter for testing on iOS devices/simulators:

https://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.rational.test.lt.mob.wl.ditaval.doc%2Ftopics%2Ft_gsios_dev.html

https://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.rational.test.lt.mob.wl.ditaval.doc/topics/t_test_ios_native_device.html

https://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.rational.test.lt.mob.wl.ditaval.doc/topics/tinstall_iosapp_sim.html

For iOS you will also want to make sure you can successfully produce an ipa file with your certificates, app ids, and provisioning profiles. An easy way to test this is to attempt to archive your application inside of XCode using the Product->Archive menu option. If all of your build signing settings are correct this will complete successfully, but if it fails please investigate the errors that are displayed

Joshua Alger
  • 2,122
  • 1
  • 14
  • 25