创建与 Unity 数据及其库捆绑在一起的 iOS 框架
这是关于在 iOS 中创建框架的问题,因为我有一个 Unity 包,我想创建一个框架,其中包含来自 Unity 的数据保留和链接库 libiPhone-lib.a。因此,无需在捆绑目标中添加任何库,编译就可以正常工作,如果我包含 libiPhone-lib.a 文件,它会生成一个警告:
警告:函数“UnitySendMessage”的隐式声明
UnitySendMessage 是一个正在调用的函数专用的 libiPhone-lib.a 框架。
任何有关此问题的建议将不胜感激。
谢谢。
This is regarding creating the framework in iOS, as I have a bundle of unity which I want to create a framework, with data with-holding and linking library from Unity as libiPhone-lib.a. So without adding any library in the bundle target, the compilation works fine, if I include libiPhone-lib.a file, it generates a warning as:
warning: implicit declaration of function 'UnitySendMessage'
The UnitySendMessage is a function which is being called from the dedicated libiPhone-lib.a framework.
Any suggestions regarding this concern will be really appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此错误意味着,在发生该错误的文件中,在编译器未看到该函数的声明的情况下调用了 UnitySendMessage。您需要编辑该文件并 #import 包含 UnitySendMessage 的标头(如果是 .c 文件,则 #include)
。
This error means that, in the file where it occurred, UnitySendMessage was called without the compiler having seen a declaration for the function. You need to edit the file and #import the header that contains UnitySendMessage (or #include if it is a .c file)
.
Unity 人员似乎忽略了包含声明此函数的标头。您可以自己声明,也可以忽略警告。
The Unity folks seem to have neglected to include a header declaring this function. You can either declare it yourself, or just ignore the warning.