Worklight本地资源未在xCode项目中加载 [英] Worklight Native Resources not loading in the xCode Project

查看:123
本文介绍了Worklight本地资源未在xCode项目中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Worklight iPhone NativeResources文件夹中有很少的原生.m /.h文件和.a文件。在构建环境时,这些文件将添加到iPhone Native文件夹的相应文件夹中。但是,如果我将iPhone环境作为xCode Project打开,那么这些.m / .h / .a文件不会加载到Xcode项目中。但它出现在文件夹中。

I have few native .m /.h files, and .a files in my Worklight iPhone NativeResources folder. While building the environment those files are added to the respective folders of the iPhone Native folder. But if i open the iPhone environment as xCode Project, those .m/.h/.a files are not loaded in the Xcode project. But it present in the folder.

在xCode中打开文件时自动加载这些文件所需的任何设置。

Any settings required to load those files in xcode project automatically while opening it in xCode.

谢谢。

推荐答案

这是预期的行为。

只有Xcode能够生成一个.pbxproj文件,其中包含对.m和.h文件的引用。

Only Xcode is able to generate a .pbxproj file that contains the references to the .m and .h files.

使其工作的方法是:


  1. 将.m和.h文件放在nativeResources \Class

  2. 运行方式>在Worklight Development Server上运行

  3. 在Xcode中打开

  4. 通过Xcode界面添加.m和.h文件

  5. 在Xcode中运行

  1. Place the .m and .h files in nativeResources\Classes
  2. Run As > Run on Worklight Development Server
  3. Open in Xcode
  4. Add the .m and .h files via the Xcode interface
  5. Run in Xcode

如果您希望稍后通过Eclipse运行它,则可以将.pbxproj文件从Xcode复制到nativeResources文件夹;但请记住,nativeResources文件夹将始终覆盖您放置在本机文件夹中的代码,所以要小心......

If you would like to later on run it via Eclipse, you can then copy the .pbxproj file from Xcode to the nativeResources folder; but remember that the nativeResources folder will always overwrite code you place in the native folder, so be careful...

这篇关于Worklight本地资源未在xCode项目中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆