From fccffeeeed23919ac37b27c0e11a9a88102d92c3 Mon Sep 17 00:00:00 2001 From: Dario Segura Date: Wed, 21 Oct 2015 15:36:08 -0400 Subject: [PATCH 1/2] [TVOS] Adds the -fembed-bitcode flag to build script so the framework can be used while archiving tvOS builds. --- xcodebuildtvos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xcodebuildtvos.py b/xcodebuildtvos.py index 1e608c41..52533816 100755 --- a/xcodebuildtvos.py +++ b/xcodebuildtvos.py @@ -67,6 +67,7 @@ def _get_params(self): # Auto-select SDK if archs is set: sdk = self._get_sdk_string() params.extend(("-sdk", sdk)) + params.append("OTHER_CFLAGS=-fembed-bitcode") return params def _xcodebuild(self, *actions): From 81c198ce218a442083effd3cc2ba65e1dc26dda5 Mon Sep 17 00:00:00 2001 From: Dario Segura Date: Wed, 21 Oct 2015 18:44:48 -0400 Subject: [PATCH 2/2] [TVOS] Suppressed unused argument warning (promoted to error by default) to avoid issues while building from command line for tvOS. --- xcodebuildtvos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcodebuildtvos.py b/xcodebuildtvos.py index 52533816..b214ee72 100755 --- a/xcodebuildtvos.py +++ b/xcodebuildtvos.py @@ -67,7 +67,8 @@ def _get_params(self): # Auto-select SDK if archs is set: sdk = self._get_sdk_string() params.extend(("-sdk", sdk)) - params.append("OTHER_CFLAGS=-fembed-bitcode") + + params.append("OTHER_CFLAGS=-Qunused-arguments -fembed-bitcode") return params def _xcodebuild(self, *actions):