Add QMake variables for development team and provisioning profile
Adding both development team and provisioning profile to Xcode switches off the automatic signing Task-number: QTBUG-38782 Change-Id: Ic869e16490c11e369b6674c815e860cac66c5afa Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
75f5e2bef2
commit
f06f1adb6c
@ -1477,13 +1477,20 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
|
||||
|
||||
QMap<QString, QString> settings;
|
||||
if (!project->isActiveConfig("no_xcode_development_team")) {
|
||||
const QList<QVariantMap> teams = provisioningTeams();
|
||||
if (!teams.isEmpty()) {
|
||||
// first suitable team we find is the one we'll use by default
|
||||
settings.insert("DEVELOPMENT_TEAM",
|
||||
teams.first().value(QLatin1String("teamID")).toString());
|
||||
QString teamId;
|
||||
if (!project->isEmpty("QMAKE_DEVELOPMENT_TEAM")) {
|
||||
teamId = project->first("QMAKE_DEVELOPMENT_TEAM").toQString();
|
||||
} else {
|
||||
const QList<QVariantMap> teams = provisioningTeams();
|
||||
if (!teams.isEmpty()) // first suitable team we find is the one we'll use by default
|
||||
teamId = teams.first().value(QLatin1String("teamID")).toString();
|
||||
}
|
||||
if (!teamId.isEmpty())
|
||||
settings.insert("DEVELOPMENT_TEAM", teamId);
|
||||
if (!project->isEmpty("QMAKE_PROVISIONING_PROFILE"))
|
||||
settings.insert("PROVISIONING_PROFILE_SPECIFIER", project->first("QMAKE_PROVISIONING_PROFILE").toQString());
|
||||
}
|
||||
|
||||
settings.insert("COPY_PHASE_STRIP", (as_release ? "YES" : "NO"));
|
||||
settings.insert("APPLICATION_EXTENSION_API_ONLY", project->isActiveConfig("app_extension_api_only") ? "YES" : "NO");
|
||||
// required for tvOS (and watchos), optional on iOS (deployment target >= iOS 6.0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user