Integrating Reveal Server into Visual Studio for Mac requires you to add a Native Reference to the RevealServer.xcframework to your project.
- Right click your iOS project in Visual Studio for Mac and select "Edit Project File"
Scroll to the bottom of the file, and paste in the following code just before the closing
<ItemGroup Condition=" '$(Configuration)' == 'Debug' "> <NativeReference Include="$(HOME)\Library\Application Support\Reveal\RevealServer\RevealServer.xcframework"> <Kind>Framework</Kind> <SmartLink>True</SmartLink> </NativeReference> </ItemGroup>
Note: Reveal Server will be linked into all Debug builds of your app. If you have differing requirements you can update the ItemGroup's Condition to meet your project's needs.
- Save your changes. You may need to close and reopen your project to see the changes.
- Check that you have a "Native References" group in your project, and that "RevealServer" is listed within it.
- Build and run your app — once the app is running, Reveal should now be able to see it!