gtreshchev / RuntimeAudioImporter

Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime.
MIT License
308 stars 67 forks source link

Cross-Platform Build Process for Plugin: Building for macOS and iOS on Windows #67

Closed westside closed 3 months ago

westside commented 3 months ago

Hello,

I apologize if this is slightly off-topic from the main discussions here, but I'm currently facing a challenge with packaging a plugin for multiple platforms and could use some advice. I am specifying a list of platforms for which I want to provide support in my project configuration as follows:

"PlatformAllowList": [
    "Win64",
    "Mac",
    "Linux",
    "LinuxArm64",
    "IOS",
    "Android",
    "TVOS"
]

However, when I attempt to build the plugin on my Windows machine, I encounter errors related to the inclusion of macOS (Mac) and iOS (IOS) in the platform list. It seems the build process is not accommodating these platforms when executed from a Windows environment.

ERROR: Remote compiling requires a server name. Use the editor (Project Settings > IOS) to set up your remote compilation settings.

I am wondering if there's a way to configure the build process to allow for the creation of cross-platform builds, specifically including macOS and iOS, from a Windows machine. Are there tools, environments, or specific configurations that would enable this?

Any guidance, references, or insights into how others have navigated this issue would be greatly appreciated. Thank you in advance for your help!

gtreshchev commented 3 months ago

Hi, generally, in order to build your project for iOS and Mac, you should have a separate device for that. You can use a Hackintosh to build UE projects on Mac in Windows, such as by using VirtualBox, but it's not well-tested, and I'm not sure about the legal status. Please follow this official documentation on how to build projects for Apple platforms: https://dev.epicgames.com/documentation/en-us/unreal-engine/ios-ipados-and-tvos-support-for-unreal-engine