Skip to content

add Xcode support #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ __pycache__
/sprites-gfx
/glsl-shaders
/token.txt

xcuserdata/
*.hmap
*.ipa
*.dSYM.zip
.build/
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ python3 -m pip install -r requirements.txt
* Arch Linux `sudo pacman -S sdl2`
* macOS: `brew install sdl2` (you can get homebrew [here](https://brew.sh/))

## Compiling on Linux/MacOS
## Compiling on Linux/macOS

1. Place your US ROM file named `zelda3.sfc` in `zelda3`
2. Compile
```sh
Expand All @@ -103,6 +104,17 @@ CC=clang make # specify compiler
```
</details>

## Compiling on macOS with Xcode

1. Place your US ROM file named `zelda3.sfc` in `zelda3`
2. Open `zelda3/macOS/zelda3-macOS.xcodeproj` with Xcode
3. Get the installation path for SDL2
- After install sdl2 using brew, execute `brew info sdl2`, it will print the installation path, e.g. `/opt/homebrew/Cellar/sdl2/2.28.2`
4. In `General -> Frameworks and Libraries`, add libSDL2.dylib to target `zelda3`
5. In `Build Settings -> Search Paths`, set the `Header Search Paths` & `Library Search Paths` of SDL2 for target `zelda3`
- The `Header Search Paths` is where the header files located inside the installation path, e.g. `/opt/homebrew/Cellar/sdl2/2.28.2/include/SDL2`
- The `Library Search Paths` is where the `libSDL2.dylib` located inside the installation path, e.g. `/opt/homebrew/Cellar/sdl2/2.28.2/lib`

## Nintendo Switch

You need [DevKitPro](https://devkitpro.org/wiki/Getting_Started) and [Atmosphere](https://github.com/Atmosphere-NX/Atmosphere) installed.
Expand Down
Loading