I want to replace some placeholders in my .pbxproj
file with real data before the compilation occurs. In a plain text of .pbxproj I have entries like REPLACE_ME_BUNDLE_ID or REPLACE_ME_TEAM_ID in place of app's bundle identifier and Development team respectively.
May I use a Run-script phase for that?
Or is Xcode known for saving the .pbxproj
in some safe place before the build and use it from there?
UPD: I do not use any xcconfig
files, nor these placeholder values are declared anywhere. The question specifically is whether Xcode copies and hides the .pbxproj
before the build starts and uses that copy, or am I allowed to modify the .pbxproj
during the build?