From aa939a62b0b604ff924a8ea1d96a06004cc414bc Mon Sep 17 00:00:00 2001 From: Bart House Date: Tue, 20 Nov 2018 11:16:24 -0800 Subject: [PATCH] Adding README for building NetHack with XCode. --- sys/unix/README.xcode | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 sys/unix/README.xcode diff --git a/sys/unix/README.xcode b/sys/unix/README.xcode new file mode 100644 index 000000000..5ba6741e4 --- /dev/null +++ b/sys/unix/README.xcode @@ -0,0 +1,39 @@ +This README provides the instructions for building the unofficial Mac +binaries using the Apple provided developer IDE named XCode. + +Establish a developer team in XCode +=================================== + +Your first step should be to establish a developer team within XCode. +Launch XCode and open the preferences diaglog (XCode Menu->Preferences). +Select the "Accounts" tab. Add an account (usually this should just be +your apple ID accoung you used to setup the Mac). After adding the account, +select the account and then add a team (usually this will be just a +personal team for Mac Development). + +Obtain your developer team identifier +===================================== + +Your DEVELOPMENT_TEAM can be found by opening Keychain Access +(found by Finder->Applications->Utilities). Click on "My Certificates". +Look for your "Mac Developer" certificate. Right click on +the certificate to open a dialog that shows certificate details. +Look for "Organizational Unit" among the details. This ten digit value +is your development team identifier. + +Create XCodeLocal.xcconfig file +=============================== + +Now you need to create the XCodeLocal.xcconfig file that will be used by +XCode to get your development team identifier. Create the file in +sys/unix and add a single line such as: +DEVELOPMENT_TEAM = XXXXXXXXXX + +Where XXXXXXXXXX is replaced with your development team identifier. + +Open the project and build +========================== + +In XCode open the project file sys\unix\NetHack.xcodeproj, select +the product NetHack and build. The build results are placed in +~nethackdir.