Error building open source Chess-410.4.1 application

Currently,

Am running Big Sur with the latest updates and downloaded the Chess source code to learn some Objective-C and Game Development from an example.

Source
OpenSource Apple - Chess 410.4.1

Retrieving the error messages.

Error 1
Code Block language
/Users/__user__/Desktop/Chess-410.4.1/Chess.xcconfig Chess.xcconfig line 7: Unable to find included file "<DEVELOPER_DIR>/AppleInternal/XcodeConfig/PlatformSupport.xcconfig"


Error 2
Code Block language
/Users/__user__/Desktop/Chess-410.4.1/Chess.xcconfig:7: included file '<DEVELOPER_DIR>/AppleInternal/XcodeConfig/PlatformSupport.xcconfig' does not exist


Error 3
Code Block language
No profiles for 'com.apple.Chess' were found
Xcode couldn't find any Mac App Development provisioning profiles matching 'com.apple.Chess'.



I have gone to the targets and signing section and added automatic signing and I was greeted by the statement I am not able to use game center capabilities. Signing for "MBChess" requires a development team.

Thank you for any readers, this is my first post!




It’s common for Darwin source to not be directly buildable (alas). In this case the Xcode project for Chess in referencing an .xcconfig file that’s not part of the Darwin source (hence the AppleInternal in the path). You can remove that reference by selecting Chess.xcconfig in the Project navigator and then, in the editor, removing the #include.

However, you then will then run into further problems, the most annoying of which is that requirement for a provisioning profile. To get that working you’ll need to:
  1. Remove the com.apple.private.tcc.allow entitlement from the Chess.entitlements file. This, as the name suggests, is not available to third-party developers.

  2. Change the app’s bundle ID. You can’t use a bundle ID that starts with com.apple.

  3. Enable automatic code signing in in the Signing & Capabilities editor.

  4. Select your team in that same UI.

Having said that I’m not sure that starting out with Chess is the right answer. It’s a big app with a lot of history to it. You might be better off looking at something smaller and more modern.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Error building open source Chess-410.4.1 application
 
 
Q