[英]How to integrate Unity inside native iOS App?
I'm having troubles integrating a simple Unity project inside a native iOS App. 我在将简单的Unity项目集成到本机iOS应用程序时遇到了麻烦。
I followed this this tutorial but I think that some things have changed since it was written. 我遵循了本教程,但是我认为自编写以来,有些事情已经发生了变化。 I'm stuck with this error:
我陷入了这个错误:
And thats not the only one, there are 1600 files that include include that file. 那不是唯一的,有1600个文件包括那个文件。 The problem is that all this 1600 files have a wrong reference to il2cpp-codegen.h
问题是所有这1600个文件对il2cpp-codegen.h的引用错误
This are my build settings for the Unity project: 这是我对Unity项目的构建设置:
So, after following all the tutorial, should I change all the files so that all the references would be correct? 因此,在完成所有教程之后,是否应该更改所有文件,以便所有引用正确? Or am I missing something else?
还是我想念其他东西?
Thanks! 谢谢!
Joel 乔尔
EDIT I'm currently using Unity 5.1.1f1 Personal version. 编辑我当前正在使用Unity 5.1.1f1个人版。
Do you have a warning saying folder not found or something like it? 您是否有警告说找不到文件夹或类似的东西? I think you didn't set the path for Libraries/libil2cpp/include in your header search paths.
我认为您没有在标题搜索路径中设置Libraries / libil2cpp / include的路径。
You probably didn't copy the Libraries/libil2cpp
folder. 您可能没有复制
Libraries/libil2cpp
文件夹。
That folder isn't visible inside the Xcode project but you can find it in Finder
. 该文件夹在Xcode项目中不可见,但是您可以在
Finder
找到它。 You should try and copy that folder also and maybe add it to the Build Phases
in Xcode. 您还应该尝试复制该文件夹,也可以将其添加到Xcode的
Build Phases
中。 Not sure about this last step. 不确定最后一步。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.