我有Swift应用程序,我需要在其中集成Unity 3D代码(编译Unity代码时,它编译像Xcode项目)。这似乎很容易,因为Unity应用程序被转换为Xcode应用程序,所以我可以从Xcode(转换的Unity项目)启动新的Unity项目。但是,随着Xcode设置的变化,集成非常困难,所以我无法找到该做什么。
我按照指示做了一切 https://the-nerd.be/2015/08/20/a-better-way-to-integrate-unity3d-within-a-native-ios-application/和 https://github.com/blitzagency/ios-unity5
但我总是得到错误
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
“il2cpp :: icalls :: mscorlib :: System :: Char :: GetDataTablePointers(unsigned char const **,unsigned char const **,double const **,unsigned short const **,unsigned short const **, unsigned short const **,unsigned short const **)“,引自:
“il2cpp :: os :: WindowsRuntime :: CreateHString(il2cpp :: utils :: StringView const&,Il2CppHString __ **)”,引自:
“il2cpp :: vm :: PlatformInvoke :: MarshalFreeBString(unsigned short *)”,引自:
“il2cpp :: vm :: PlatformInvoke :: MarshalCppBStringToCSharpStringResult(unsigned short const *)”,引自:
知道为什么会这样吗?