简体   繁体   English

IBM Worklight 6.0 - “Instrumentation Failed”错误

[英]IBM Worklight 6.0 - “Instrumentation Failed” error

While trying to deploy an iOS app to the IBM Worklight Application Center management console, we encounter the following error: 在尝试将iOS应用程序部署到IBM Worklight Application Center管理控制台时,我们遇到以下错误:

File /var/folders/t0/jhv2njg9215........./T/temp19........./Rmot...App..AppIphone.zip is empty or invalid. 文件/var/folders/t0/jhv2njg9215........./T/temp1968./Rmot...App..AppIphone.zip为空或无效。 Perhaps you did not build the project with XCode before instrumenting! 也许你没有在使用XCode之前构建项目!

These are the steps we've taken: 这些是我们采取的步骤:

  1. In eclipse Navigate to the iPhone Environment and Right-Click. 在eclipse中导航到iPhone环境并右键单击。
  2. Go to IBM Application Center 转到IBM Application Center
  3. Choose Publish test-ready application. 选择发布测试就绪应用程序。

Our development environment: Eclipse Java EE Juno SR2 我们的开发环境:Eclipse Java EE Juno SR2

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. 要在Mobile Test Workbench中使用iOS应用程序或创建测试就绪应用程序,您必须首先在XCode内部构建iOS组件。 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. 本机iOS应用程序是Xcode中的完整iOS项目。 The build and compile process to instrument the application takes place entirely in Xcode on a Macintosh computer. 用于检测应用程序的构建和编译过程完全在Macintosh计算机上的Xcode中进行。 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. 要完成此操作,请右键单击Worklight Studio中的iPhone环境,然后单击Run-As-> XCode项目。 Once the project is loaded inside of XCode please build/run the iOS components here. 在XCode内部加载项目后,请在此处构建/运行iOS组件。 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: 以下是一些指向信息中心的链接,用于在iOS设备/模拟器上进行测试:

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/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/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 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. 对于iOS,您还需要确保可以使用证书,应用程序ID和配置文件成功生成ipa文件。 An easy way to test this is to attempt to archive your application inside of XCode using the Product->Archive menu option. 一种简单的方法是尝试使用Product-> Archive菜单选项将应用程序存档在XCode中。 If all of your build signing settings are correct this will complete successfully, but if it fails please investigate the errors that are displayed 如果所有构建签名设置都正确,则此操作将成功完成,但如果失败,请调查显示的错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM