2021-01-05 15:39:13 +00:00
|
|
|
|
#include? "DEVELOPMENT_TEAM.xcconfig"
|
2019-10-02 14:47:02 +00:00
|
|
|
|
|
|
|
|
|
// Create the file DEVELOPMENT_TEAM.xcconfig
|
|
|
|
|
// in the "Xcode-config" directory within the project directory
|
|
|
|
|
// with the following build setting:
|
|
|
|
|
// DEVELOPMENT_TEAM = [Your TeamID]
|
|
|
|
|
|
2021-01-05 15:39:13 +00:00
|
|
|
|
// One way to find your Team ID is to set the “Development Team”
|
|
|
|
|
// build setting (Xcode key: "DEVELOPMENT_TEAM") and have a look
|
|
|
|
|
// at the “Source Control” changes (menu item “Commit…”/⌥⌘C).
|
|
|
|
|
// Just make sure that this change doesn’t actually get commited.
|
2019-10-02 14:47:02 +00:00
|
|
|
|
|
2021-01-05 15:39:13 +00:00
|
|
|
|
// You can also find your Team ID by logging into your Apple Developer account
|
2019-10-02 14:47:02 +00:00
|
|
|
|
// and going to
|
|
|
|
|
// https://developer.apple.com/account/#/membership
|
|
|
|
|
// It should be listed under “Team ID”.
|
|
|
|
|
|
|
|
|
|
// To set this system up for your own project,
|
|
|
|
|
// copy the "Xcode-config" directory there,
|
|
|
|
|
// add it to your Xcode project,
|
|
|
|
|
// navigate to your project settings
|
|
|
|
|
// (root icon in the Xcode Project Navigator)
|
|
|
|
|
// click on the project icon there,
|
|
|
|
|
// click on the “Info” tab
|
|
|
|
|
// under “Configurations”
|
|
|
|
|
// open the “Debug”, “Release”,
|
|
|
|
|
// and any other build configurations you might have.
|
|
|
|
|
// There you can set the pull-down menus in the
|
|
|
|
|
// “Based on Configuration File” column to “Shared”.
|
2021-01-05 15:39:13 +00:00
|
|
|
|
// Your work in Xcode is done.
|
2019-10-02 14:47:02 +00:00
|
|
|
|
|
|
|
|
|
// Don’t forget to add the DEVELOPMENT_TEAM.xcconfig file to your .gitignore:
|
|
|
|
|
// # User-specific xcconfig files
|
|
|
|
|
// Xcode-config/DEVELOPMENT_TEAM.xcconfig
|
2021-01-05 15:39:13 +00:00
|
|
|
|
// The two lines above are an example.
|
|
|
|
|
// Please don’t copy the comment slashes over though.
|
2019-10-02 14:47:02 +00:00
|
|
|
|
|
2021-01-05 15:39:13 +00:00
|
|
|
|
// You can and should now replace the “DevelopmentTeam = AB1234C5DE;” entries in
|
|
|
|
|
// .xcodeproj/project.pbxproj
|
|
|
|
|
// with “DevelopmentTeam = "";”
|
|
|
|
|
// They would otherwise override the Team ID set via this config file and its include.
|
|
|
|
|
// Please note that .pbxproj files use straight quotes.
|
2019-10-02 14:47:02 +00:00
|
|
|
|
|
2021-01-05 15:39:13 +00:00
|
|
|
|
// When you commit changes to the Xcode project file
|
|
|
|
|
// after changing settings in “Signing & Capabilities”
|
|
|
|
|
// Entries like these may appear in your file changes/commit diff preview:
|
|
|
|
|
// CODE_SIGN_IDENTITY = …;
|
|
|
|
|
// CODE_SIGN_STYLE = Manual/Automatic;
|
|
|
|
|
// Please make sure not to commit them to source control.
|