【发布时间】: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