[英]Worklight on OS X, iPhone and Android builds fail due to missing info.plist and other files
I am following the step by step "Hello World" guide from IBM located here: http://www.ibm.com/developerworks/library/mo-aim1206-working-with-worklight-1/ 我正在按照IBM的一步一步“Hello World”指南进行操作: http : //www.ibm.com/developerworks/library/mo-aim1206-working-with-worklight-1/
I am to the step where you build and deploy the environments, but when I attempt to do so, I get the following errors. 我是建立和部署环境的步骤,但是当我尝试这样做时,我会收到以下错误。
FWLST1040E: iphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/iphone/native/HelloWorldHelloWorldIphone-Info.plist (No such file or directory) Nested exception: /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/iphone/native/HelloWorldHelloWorldIphone-Info.plist (No such file or directory)
FWLST1040E: android build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/android/native/AndroidManifest.xml (No such file or directory) Nested exception: /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/android/native/AndroidManifest.xml (No such file or directory)
A core eclipse exception has occurred: Failed to read project description file from location '/Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/android/native/.project'.
I have tried the usual suspects in trying to clear this up. 我试图通常的嫌疑人试图澄清这一点。
1) Delete the environments native folders and rebuild. 1)删除环境本机文件夹并重建。 (Failed)
(失败)
2) Delete each entire environment and do the environment additions again (Failed) 2)删除整个环境并再次添加环境(失败)
3) Did a full project Clean and Build Project on the entire project. 3)在整个项目中完成了一个完整的项目清理和构建项目。 (Failed)
(失败)
4) Restarted eclipse with the -clean option (Failed) 4)使用-clean选项重启eclipse(失败)
Here is my current Environment: 这是我目前的环境:
IDE: Eclipse Indigo Release IDE:Eclipse Indigo Release
WorkLight: 5.0.5100 (Assuming 5.0.0.5?, the plugin versions are weird) WorkLight:5.0.5100(假设5.0.0.5 ?,插件版本很奇怪)
OS: Mac OSX 10.8.2 操作系统:Mac OSX 10.8.2
I find it pretty disheartening that you cannot even follow the Hello World guide without running across some kind of error. 我觉得非常令人沮丧的是,如果不遇到某种错误,你甚至无法遵循Hello World指南。 This is of course after being handed a mobile application IBM wrote for us in this framework, which we were unsuccessful in getting deployed to Android and IPhone Devices.
这当然是在交给IBM在此框架中为我们编写的移动应用程序之后,我们未能成功部署到Android和IPhone设备。 (We were able to get it running just fine in the WLC Simulators for Android and iPhone, but actually deploying it to the iPhone and Android just results in crashes)
(我们能够在适用于Android和iPhone的WLC模拟器中运行得很好,但实际上将其部署到iPhone和Android只会导致崩溃)
Any Ideas on how to resolve this issue? 有关如何解决此问题的任何想法? Is WorkLight an avenue even worth pursuing?
WorkLight是一条甚至值得追求的途径吗?
The way I fixed this issue was to completely wipe and redo the environment. 我解决这个问题的方法是彻底擦除和重做环境。 This included the following for me.
这包括以下内容。
1) Created a new user on the Mac (I had been using another devs user) 1)在Mac上创建了一个新用户(我一直在使用另一个开发者用户)
2) Reinstall Eclipse Juno. 2)重新安装Eclipse Juno。
3) Create a new workspace 3)创建一个新工作区
4) Install the Worklight from the Eclipse Market 4)从Eclipse Market安装Worklight
5) Install the Android ADT and SDK. 5)安装Android ADT和SDK。
This then allowed me to create the environments properly without missing file warnings. 这使我能够正确创建环境而不会丢失文件警告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.