Integrating Reveal using Visual Studio for Mac

Integrating Reveal Server into Visual Studio for Mac requires you to add a Native Reference to the RevealServer.xcframework to your project.

  1. Right click your iOS project in Visual Studio for Mac and select "Edit Project File"
  2. Scroll to the bottom of the file, and paste in the following code just before the closing </Project> tag:

    <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.
  3. Save your changes. You may need to close and reopen your project to see the changes.
  4. Check that you have a "Native References" group in your project, and that "RevealServer" is listed within it.
  5. Build and run your app — once the app is running, Reveal should now be able to see it!