【问题标题】:Implementing LuaCocoa on iOS在 iOS 上实现 LuaCocoa
【发布时间】:2013-05-24 12:41:49
【问题描述】:

http://playcontrol.net/opensource/LuaCocoa/other-luaobjective-c-bridge.html 中声明 LuaCocoa 支持 Mac 实现。因此,可用的框架 luacocoa.framework 是为 Mac 平台编译的。

但是,我想尝试在 iOS 平台上编译它,看看它是否有效。于是,我下载了 LuaCocoa 源代码,尝试在 iOS 平台上编译。显然,有错误。我有这个:

 "target specifies product type 'com.apple.product-type.framework', but there's no such  
  product type for the 'iphonesimulator' platform" 

我认为这是由于 iOS 无法运行动态库。

所以我的问题是:任何人都能在 iOS 平台上成功编译 luacocoa,是否有机会在 iOS 平台上使用 luacocoa。

如果有更好的桥接 ObjC-Lua 的建议,也请告诉我。

【问题讨论】:

  • 我在 iOS 中没那么大,但错误消息只是表明你不能将它编译为框架,这不足为奇; iOS 中应用程序的沙盒化会使 OSX 框架之类的东西变得毫无用处。因此,您必须将项目更改为库产品类型。不知道这有多容易。

标签: ios objective-c lua


【解决方案1】:

你试过Wax

这是一个已经存在很长时间的 iOS 的 Lua - Obj-C 桥。

Here is a nice article about it

【讨论】:

  • 检查了我的答案。我已经解释过我没有使用蜡。
  • 我明白了。 API 差异。您需要添加另一个进行 API 转换的层才能使用 Wax。没那么优雅。
猜你喜欢
  • 2017-12-12
  • 2014-08-24
  • 1970-01-01
  • 2013-04-14
  • 2012-10-29
  • 1970-01-01
  • 1970-01-01
  • 2013-12-09
  • 1970-01-01
相关资源
最近更新 更多