Ver código fonte

ios: automagically download a bitcode WebRTC build if needed

master
Saúl Ibarra Corretgé 6 anos atrás
pai
commit
e94edcd4ae
2 arquivos alterados com 34 adições e 0 exclusões
  1. 15
    0
      ios/scripts/bitcode.sh
  2. 19
    0
      ios/sdk/sdk.xcodeproj/project.pbxproj

+ 15
- 0
ios/scripts/bitcode.sh Ver arquivo

@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+# This script will download a bitcode build of the WebRTC framework, if needed.
4
+
5
+if [[ ! "$CONFIGURATION" = "Debug" ]]; then
6
+    RN_WEBRTC="$SRCROOT/../../node_modules/react-native-webrtc"
7
+
8
+    if otool -arch arm64 -l $RN_WEBRTC/ios/WebRTC.framework/WebRTC | grep -q LLVM; then
9
+        echo "WebRTC framework has bitcode"
10
+    else
11
+        echo "WebRTC framework has NO bitcode"
12
+        $RN_WEBRTC/tools/downloadBitcode.sh
13
+    fi
14
+fi
15
+

+ 19
- 0
ios/sdk/sdk.xcodeproj/project.pbxproj Ver arquivo

@@ -270,6 +270,7 @@
270 270
 			buildConfigurationList = 0BD906ED1EC0C00300C8C18E /* Build configuration list for PBXNativeTarget "JitsiMeet" */;
271 271
 			buildPhases = (
272 272
 				26796D8589142D80C8AFDA51 /* [CP] Check Pods Manifest.lock */,
273
+				DE3D81D6228B50FB00A6C149 /* Bitcode */,
273 274
 				0BD906E01EC0C00300C8C18E /* Sources */,
274 275
 				0BD906E11EC0C00300C8C18E /* Frameworks */,
275 276
 				0BD906E21EC0C00300C8C18E /* Headers */,
@@ -450,6 +451,24 @@
450 451
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-JitsiMeet/Pods-JitsiMeet-resources.sh\"\n";
451 452
 			showEnvVarsInLog = 0;
452 453
 		};
454
+		DE3D81D6228B50FB00A6C149 /* Bitcode */ = {
455
+			isa = PBXShellScriptBuildPhase;
456
+			buildActionMask = 2147483647;
457
+			files = (
458
+			);
459
+			inputFileListPaths = (
460
+			);
461
+			inputPaths = (
462
+			);
463
+			name = Bitcode;
464
+			outputFileListPaths = (
465
+			);
466
+			outputPaths = (
467
+			);
468
+			runOnlyForDeploymentPostprocessing = 0;
469
+			shellPath = /bin/sh;
470
+			shellScript = "../scripts/bitcode.sh\n";
471
+		};
453 472
 /* End PBXShellScriptBuildPhase section */
454 473
 
455 474
 /* Begin PBXSourcesBuildPhase section */

Carregando…
Cancelar
Salvar