-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathproject-local.yml
More file actions
128 lines (121 loc) · 4.24 KB
/
project-local.yml
File metadata and controls
128 lines (121 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: VideoLive
options:
bundleIdPrefix: com.sendbird.live
deploymentTarget:
iOS: "14.0"
xcodeVersion: "15.0"
developmentLanguage: en
defaultConfig: Release
createIntermediateGroups: true
configs:
Debug: debug
Release: release
settings:
base:
DEVELOPMENT_TEAM: RM4A5PXTUX
CLANG_CXX_LANGUAGE_STANDARD: gnu++20
GCC_C_LANGUAGE_STANDARD: gnu11
configs:
Debug:
DEBUG_INFORMATION_FORMAT: dwarf
ENABLE_TESTABILITY: YES
GCC_OPTIMIZATION_LEVEL: 0
SWIFT_OPTIMIZATION_LEVEL: "-Onone"
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG
GCC_PREPROCESSOR_DEFINITIONS:
- DEBUG=1
- $(inherited)
MTL_ENABLE_DEBUG_INFO: INCLUDE_SOURCE
ONLY_ACTIVE_ARCH: YES
Release:
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
ENABLE_NS_ASSERTIONS: NO
SWIFT_COMPILATION_MODE: wholemodule
SWIFT_OPTIMIZATION_LEVEL: "-O"
VALIDATE_PRODUCT: YES
MTL_ENABLE_DEBUG_INFO: NO
packages:
SendbirdUIKit:
url: https://github.com/sendbird/sendbird-uikit-ios
from: "3.32.0"
projectReferences:
SendbirdLiveSDK:
path: ../live-ios/SendbirdLiveSDK.xcodeproj
targets:
VideoLive:
type: application
platform: iOS
deploymentTarget: "14.0"
sources:
- path: VideoLive
excludes:
- "**/*.entitlements"
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.sendbird.live.MultiHost
INFOPLIST_FILE: VideoLive/Info.plist
CODE_SIGN_ENTITLEMENTS: VideoLive/VideoLive.entitlements
CODE_SIGN_IDENTITY: Apple Development
SWIFT_VERSION: 5.0
TARGETED_DEVICE_FAMILY: 1
CURRENT_PROJECT_VERSION: 14
MARKETING_VERSION: "1.0"
SUPPORTS_MACCATALYST: NO
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: NO
SWIFT_EMIT_LOC_STRINGS: YES
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_KEY_NSCameraUsageDescription: "Please allow camera usage"
INFOPLIST_KEY_NSMicrophoneUsageDescription: "Please allow microphone usage"
INFOPLIST_KEY_NSPhotoLibraryUsageDescription: "Please allow photo library usage"
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents: YES
INFOPLIST_KEY_UILaunchStoryboardName: LaunchScreen
INFOPLIST_KEY_UIMainStoryboardFile: Main
INFOPLIST_KEY_UISupportedInterfaceOrientations: UIInterfaceOrientationPortrait
LD_RUNPATH_SEARCH_PATHS:
- $(inherited)
- "@executable_path/Frameworks"
dependencies:
- target: SendbirdLiveSDK/SendbirdLiveSDK
embed: true
- package: SendbirdUIKit
postCompileScripts:
- script: |
# Copy WebRTC.xcframework to app bundle and re-sign
WEBRTC_FRAMEWORK="${BUILD_DIR}/../../SourcePackages/artifacts/sendbird-webrtc-ios/WebRTC/WebRTC.xcframework"
if [ -d "$WEBRTC_FRAMEWORK" ]; then
if [ "$PLATFORM_NAME" == "iphoneos" ]; then
WEBRTC_SLICE="$WEBRTC_FRAMEWORK/ios-arm64/WebRTC.framework"
else
WEBRTC_SLICE="$WEBRTC_FRAMEWORK/ios-arm64_x86_64-simulator/WebRTC.framework"
fi
if [ -d "$WEBRTC_SLICE" ]; then
DEST_FRAMEWORK="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/WebRTC.framework"
mkdir -p "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
cp -R "$WEBRTC_SLICE" "$DEST_FRAMEWORK"
echo "Copied WebRTC.framework to ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/"
# Re-sign the framework with the same identity as the app
if [ "$PLATFORM_NAME" == "iphoneos" ]; then
/usr/bin/codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" --timestamp=none --preserve-metadata=identifier,entitlements "$DEST_FRAMEWORK"
echo "Re-signed WebRTC.framework with ${EXPANDED_CODE_SIGN_IDENTITY}"
fi
fi
fi
name: Copy and Sign WebRTC Framework
basedOnDependencyAnalysis: false
schemes:
VideoLive:
build:
targets:
VideoLive: all
run:
config: Debug
test:
config: Debug
profile:
config: Release
analyze:
config: Debug
archive:
config: Release