简体   繁体   English

有没有办法在Windows上构建IOS Unity构建

[英]Is there a way to build an IOS Unity build on windows

Is there a way to build an IOS Unity build on windows with firebase? 有没有办法在带有Firebase的Windows上构建IOS Unity构建? Im getting this error: 我收到此错误:

Firebase iOS builds are not supported on Windows. Please build on a OSX machine instead.
UnityEngine.Debug:LogError(Object)
Firebase.Editor.XcodeProjectPatcher:CheckBuildEnvironment()
Firebase.Editor.XcodeProjectPatcher:.cctor()
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

You technically can, but will require more work. 从技术上讲您可以,但是需要更多工作。

The plugin that comes with firebase depends on cocoapods to handle transient dependencies. firebase随附的插件依赖cocoapods处理瞬态依赖性。 If you look at the Assets -> PlayServicesResolver -> IOSResolver -> Settings 如果您查看资产-> PlayServicesResolver-> IOSResolver->设置

You can configure it to generate the podfile but not do the remaining steps. 您可以将其配置为生成Podfile,但不执行其余步骤。

The other steps would fail because cocoapods does not work on windows. 其他步骤将失败,因为cocoapods在Windows上不起作用。

Finally after you copy the build directory to your mac to build and deploy, you'll just have to run the cocoapods step manually: 最后,将构建目录复制到Mac以进行构建和部署后,只需手动运行cocoapods步骤:

pod install

It should work after that if you use the xcodeworkspace that's generated from the pod tool to build and run. 之后,如果您使用从pod工具生成的xcodeworkspace进行构建和运行,它应该可以工作。

Firebase in unity projects for ios requires Xcode, it is in the requirements listed on their page, also unity specifies the same, you cannot compile for iOS outside their platform. iOS的统一项目中的Firebase需要Xcode,这在其页面上列出的要求中,也统一指定,因此您无法在其平台之外为iOS进行编译。

Here is the official documentation: 这是官方文档:
https://unity3d.com/unity/system-requirements https://unity3d.com/unity/system-requirements
https://firebase.google.com/docs/unity/setup https://firebase.google.com/docs/unity/setup

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM