summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qmake/generators/mac/pbuilder_pbx.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/qmake/generators/mac/pbuilder_pbx.cpp b/qmake/generators/mac/pbuilder_pbx.cpp
index 728e654be8..7507b26c09 100644
--- a/qmake/generators/mac/pbuilder_pbx.cpp
+++ b/qmake/generators/mac/pbuilder_pbx.cpp
@@ -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)