Skip to content

Commit 0ac6270

Browse files
quote target param
1 parent 6ec2454 commit 0ac6270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conan/tools/apple/xcodebuild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def build(self, xcodeproj, target=None):
3838
will build all the targets passing the ``-alltargets`` argument instead.
3939
:return: the return code for the launched ``xcodebuild`` command.
4040
"""
41-
target = "-target {}".format(target) if target else "-alltargets"
41+
target = "-target '{}'".format(target) if target else "-alltargets"
4242
cmd = "xcodebuild -project '{}' -configuration {} -arch {} " \
4343
"{} {} {}".format(xcodeproj, self._build_type, self._arch, self._sdkroot,
4444
self._verbosity, target)

0 commit comments

Comments
 (0)