mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fix build of default projects in Xcode 14.1
Mirrors the behaviour of CMake by only adding signing identity field to project when identity is not empty.
This commit is contained in:
parent
83cd6dfc80
commit
8d0afb6939
1 changed files with 10 additions and 6 deletions
|
|
@ -1681,11 +1681,9 @@ public:
|
|||
s.set ("GCC_VERSION", gccVersion);
|
||||
s.set ("CLANG_LINK_OBJC_RUNTIME", "NO");
|
||||
|
||||
auto codeSigningIdentity = owner.getCodeSigningIdentity (config);
|
||||
s.set (owner.iOS ? "\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\"" : "CODE_SIGN_IDENTITY",
|
||||
codeSigningIdentity.quoted());
|
||||
owner.addCodeSigningIdentity (config, s);
|
||||
|
||||
if (codeSigningIdentity.isNotEmpty())
|
||||
if (owner.getCodeSigningIdentity (config).isNotEmpty())
|
||||
{
|
||||
s.set ("PROVISIONING_PROFILE_SPECIFIER", "\"\"");
|
||||
|
||||
|
|
@ -2533,6 +2531,13 @@ private:
|
|||
return config.getCodeSignIdentityString();
|
||||
}
|
||||
|
||||
void addCodeSigningIdentity (const XcodeBuildConfiguration& config, StringPairArray& result) const
|
||||
{
|
||||
if (const auto codeSigningIdentity = getCodeSigningIdentity (config); codeSigningIdentity.isNotEmpty())
|
||||
result.set (iOS ? "\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\"" : "CODE_SIGN_IDENTITY",
|
||||
codeSigningIdentity.quoted());
|
||||
}
|
||||
|
||||
StringPairArray getProjectSettings (const XcodeBuildConfiguration& config) const
|
||||
{
|
||||
StringPairArray s;
|
||||
|
|
@ -2583,8 +2588,7 @@ private:
|
|||
s.set ("ONLY_ACTIVE_ARCH", "YES");
|
||||
}
|
||||
|
||||
s.set (iOS ? "\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\"" : "CODE_SIGN_IDENTITY",
|
||||
getCodeSigningIdentity (config).quoted());
|
||||
addCodeSigningIdentity (config, s);
|
||||
|
||||
if (iOS)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue