Unity ios 打包xcode的PostProcessBuild设置

Posted wolf96

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unity ios 打包xcode的PostProcessBuild设置相关的知识,希望对你有一定的参考价值。

Unity4.x可以用XUPorter来实现: https://github.com/onevcat/XUPorter
或者把Unity的xcodeapi放到工程里 https://bitbucket.org/Unity-Technologies/xcodeapi复制源码放到Editor/xcode下(AssemblyInfo.cs除外) Unity5.x自带这套api,可以修改xcode项目工程配置以及修改plist文件内容(当unity build结束后, 会自动回调OnPostProcessBuild) [PostProcessBuild],被该标签标注的函数将自动在build player后被调用 http://docs.unity3d.com/Documentation/Manual/BuildPlayerPipeline.html 所以写一个PostProcessBuild的类就可以了,放在Editor文件夹下,具体实现搜一下有很多,放一个github连接上来 https://gist.github.com/suakig/ffb64f48c800e9dea545


打完包之后切记要到Xcode中的Build Phases → Link Binary With Libraries中看下是否引用了你打的库文件,再在文件夹中确认下,否则打包会报错
参考: https://www.cnblogs.com/pandawuwyj/p/6904770.html http://www.xuanyusong.com/archives/4026
--by wolf96 2018/1/19

以上是关于Unity ios 打包xcode的PostProcessBuild设置的主要内容,如果未能解决你的问题,请参考以下文章

Unity与IOS⭐Xcode打包,上架TestFlight的完整教程

Unity IOS平台打包流程

Unity3D发布打包系列之——IOS打包发布

Unity3D发布打包系列之——IOS打包发布

Unity3D发布打包系列之——IOS真机调试打包ipa(补充)

Unity3D发布打包系列之——IOS真机调试打包ipa(补充)