mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Only switch to manual Xcode signing if not using the default Code-Signing Identity
This commit is contained in:
parent
0a69edd216
commit
45d12f7a18
1 changed files with 10 additions and 5 deletions
|
|
@ -1616,8 +1616,10 @@ public:
|
|||
|
||||
if (codeSigningIdentity.isNotEmpty())
|
||||
{
|
||||
s.set ("CODE_SIGN_STYLE", "Manual");
|
||||
s.set ("PROVISIONING_PROFILE_SPECIFIER", "\"\"");
|
||||
|
||||
if (! owner.isUsingDefaultSigningIdentity (config))
|
||||
s.set ("CODE_SIGN_STYLE", "Manual");
|
||||
}
|
||||
|
||||
if (owner.getDevelopmentTeamIDString().isNotEmpty())
|
||||
|
|
@ -2433,14 +2435,17 @@ private:
|
|||
return expandPath (searchPath);
|
||||
}
|
||||
|
||||
bool isUsingDefaultSigningIdentity (const XcodeBuildConfiguration& config) const
|
||||
{
|
||||
return config.getCodeSignIdentityString().isEmpty() && getDevelopmentTeamIDString().isNotEmpty();
|
||||
}
|
||||
|
||||
String getCodeSigningIdentity (const XcodeBuildConfiguration& config) const
|
||||
{
|
||||
auto identity = config.getCodeSignIdentityString();
|
||||
|
||||
if (identity.isEmpty() && getDevelopmentTeamIDString().isNotEmpty())
|
||||
if (isUsingDefaultSigningIdentity (config))
|
||||
return iOS ? "iPhone Developer" : "Mac Developer";
|
||||
|
||||
return identity;
|
||||
return config.getCodeSignIdentityString();
|
||||
}
|
||||
|
||||
StringPairArray getProjectSettings (const XcodeBuildConfiguration& config) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue