Worklight Native Resources not loading in the xCode Project

て烟熏妆下的殇ゞ 提交于 2020-01-03 05:04:09

问题


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.

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

Thanks.


回答1:


This is the expected behavior.

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

The way to make it work is to:

  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

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...



来源:https://stackoverflow.com/questions/22481932/worklight-native-resources-not-loading-in-the-xcode-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!