diff options
author | Tor Arne Vestbø <[email protected]> | 2021-09-09 13:29:06 +0200 |
---|---|---|
committer | Tarja Sundqvist <[email protected]> | 2022-10-19 12:56:36 +0000 |
commit | 7ff2473dc6926b884b2224389f08ddb21bd231f0 (patch) | |
tree | 06574380be1d55f46d5452dcfe316e96d48b4821 | |
parent | 6efece8c8fe18ec3cc01dbc9c02fed3f17208ef4 (diff) |
xcode: Allow automatic provisioning updates when calling xcodebuild
If automatic signing is enabled (which it is by default), then Xcode will
happily set up the required profile if you open and run the application
in Xcode. To get the same behavior for xcodebuild, and hence from Creator,
since it's calling our Makefile wrapper around xcodebuild, we need to
pass the -allowProvisioningUpdates flag to xcodebuild.
Fixes: QTBUG-95565
Change-Id: I9325bb228bdfb4d07658eff8f41798f7b5a6955c
Reviewed-by: Alexandru Croitor <[email protected]>
(cherry picked from commit 16b11bb81eb02f182e3570c9241f57c5689fb90e)
Reviewed-by: Tor Arne Vestbø <[email protected]>
-rw-r--r-- | mkspecs/features/uikit/xcodebuild.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/features/uikit/xcodebuild.mk b/mkspecs/features/uikit/xcodebuild.mk index ead12effc78..8b98cdfc606 100644 --- a/mkspecs/features/uikit/xcodebuild.mk +++ b/mkspecs/features/uikit/xcodebuild.mk @@ -87,6 +87,10 @@ ifeq ($(shell test $(XCODE_VERSION_MAJOR) -gt 7; echo $$?),0) XCODEBUILD_FLAGS += $(shell echo "$(MAKEFLAGS)" | sed -e 's/\([^ ]*\).*/\1/' | grep -qv 's' || echo -quiet) endif +ifeq ($(shell test $(XCODE_VERSION_MAJOR) -ge 9; echo $$?),0) + XCODEBUILD_FLAGS += -allowProvisioningUpdates +endif + # Xcodebuild DESTINATION_MESSAGE = "Running $(call tolower,$(CONFIGURATION)) $(ACTION) \ |