Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 139 forks source link

Unity Building for iOS on Windows #242

Closed RibinMTC closed 3 years ago

RibinMTC commented 3 years ago

Dear devs,

Is it possible to build the sample for iOS with Unity on a Windows machine and afterwards export the Xcode project to a Mac? I tried to build for iOS with Unity on Windows, but I received the following error during the builid process: FileNotFoundException: Packages\com.microsoft.azure.spatial-anchors-sdk.ios\Plugins\iOS\AzureSpatialAnchors.framework\Headers\AzureSpatialAnchorsLibrary.h.meta does not exist

Best,

Ribin

msftradford commented 3 years ago

Hi @RibinMTC, thanks for reaching out! It is possible to create the sample XCode project for iOS with Unity on a Windows machine. Please make sure that you include all of the necessary Unity packages, including ASA SDK for iOS, this should resolve your issue. One gotcha that you might see when you attempt to build via XCode on a MacOS machine has to do with permissions of MapFileParser.sh. If you see an error in XCode related to this file, you may need to make it executable (chmod +x MapFileParser.sh). Let us know if you have additional questions. Thanks!

RibinMTC commented 3 years ago

Thanks for the suggestion. The package you mentioned was already in the sample project, but for some reason, I had to remove that package and manually add ASA SDK for iOS to Unity. Afterwards, the build worked.

msftradford commented 3 years ago

Glad to hear this is resolved. Closing the issue for now.