Skip to content

Commit

Permalink
Fix some missing spacing in the iOS/tvOS documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored May 31, 2024
1 parent 31b2580 commit 48209c0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/appendix/Appendix-A:-FNA-on-iOS-and-tvOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ This is the basic guide to getting your game running in iOS/tvOS. Once these ste
### Prerequisites

In order to build and deploy FNA apps for iOS/tvOS, you must have the following:

1. Mac hardware (required by Apple)
2. The latest [.NET SDK](https://dotnet.microsoft.com/en-us/download/dotnet) for macOS
3. The latest version of Xcode, downloaded from the macOS App Store or from the Apple Developer site
4. The iOS/tvOS workloads for the .NET SDK. Once you have installed .NET on your Mac, run the following commands: `sudo dotnet workload install ios` and `sudo dotnet workload install tvos`
4. The iOS/tvOS workloads for the .NET SDK. Once you have installed .NET on your Mac, run the following commands:

```
sudo dotnet workload install ios` and `sudo dotnet workload install tvos
```

### Building fnalibs

Expand All @@ -23,6 +28,7 @@ The process of building all the fnalibs is normally very tedious, and everybody
Creating a .NET iOS project is almost identical to the process of [creating a desktop .NET project](https://github.com/FNA-XNA/FNA/wiki/1%3A-Setting-Up-FNA#chapter-5-creating-new-projects).
The only difference is that instead of `dotnet new console`, you must run `dotnet new ios`.
This will generate an "iOS Application" template project we can then modify like so:

1. Delete the `SceneDelegate.cs` and `AppDelegate.cs` files
2. Update the `Info.plist` file as follows:
- Set your application metadata (display name, bundle identifier, etc.)
Expand Down Expand Up @@ -59,6 +65,7 @@ See [this Apple documentation](https://developer.apple.com/documentation/bundler
Creating a .NET tvOS project is almost identical to the process of [creating a desktop .NET project](https://github.com/FNA-XNA/FNA/wiki/1%3A-Setting-Up-FNA#chapter-5-creating-new-projects).
The only difference is that instead of `dotnet new console`, you must run `dotnet new tvos`.
This will generate a "tvOS Application" template project we can then modify like so:

1. Delete the `ViewController.cs`, `ViewController.designer.cs`, and `AppDelegate.cs` files
2. Rename `Main.storyboard` to `LaunchScreen.storyboard` and delete the following from line 10 of the file:
`customClass="ViewController"`
Expand Down Expand Up @@ -211,4 +218,4 @@ See [this wiki page](https://github.com/xamarin/xamarin-macios/wiki/Profiling) f

* If a tvOS build fails because the linker complains about an "undefined symbol", that could mean one of two things...
1. You forgot to add a native library to the `MtouchExtraArgs` property, as described earlier.
2. There is an `extern` method somewhere in your code (or in the fnalibs) that refers to a function not defined for the tvOS platform. If it's a problem with one of the fnalibs, file an issue and we can take a look. If it's in your code, consider removing the extern declaration or wrapping it inside `#if !__TVOS__`.
2. There is an `extern` method somewhere in your code (or in the fnalibs) that refers to a function not defined for the tvOS platform. If it's a problem with one of the fnalibs, file an issue and we can take a look. If it's in your code, consider removing the extern declaration or wrapping it inside `#if !__TVOS__`.

0 comments on commit 48209c0

Please sign in to comment.