美文网首页
Use of undeclared identifier 'Un

Use of undeclared identifier 'Un

作者: miG92 | 来源:发表于2018-11-22 15:09 被阅读0次

近期接触到一个ios项目需要集成unity,出现了(Use of undeclared identifier 'UnityInitStartupTime' ) 这个编译报错问题一直解决不了。

无意中看到unity文件中有个pch文件 。

由于xcode工程中只能有一个pch,所以工程访问的pch一直都是自己之前配置的,因此需要将unity文件夹内的pch文件中引入的内容合并到同自己工程的pch文件中。

欧了,报错问题解决。当然,引起这个报错的原因可能不仅仅是上面这种情况,但是确实会导致这种报错。

相关文章

网友评论

      本文标题:Use of undeclared identifier 'Un

      本文链接:https://www.haomeiwen.com/subject/asklqqtx.html