-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathios.yml
More file actions
70 lines (69 loc) · 2.3 KB
/
ios.yml
File metadata and controls
70 lines (69 loc) · 2.3 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
targets:
PeerDrop-iOS:
type: application
supportedDestinations: [iOS]
deploymentTarget:
iOS: 16.0
settings:
base:
INFOPLIST_FILE: app/iOS/Info.plist
dependencies:
- framework: frameworks/BareKit.xcframework
- package: BareKit
- package: BareRPC
- target: PeerDrop-iOS-Share # uncomment when App Group provisioning is ready
sources:
- app/iOS
- shared
resources:
- path: app/iOS/app.bundle
configFiles:
Debug: configs/PeerDrop-iOS-Debug.xcconfig
Release: configs/PeerDrop-iOS-Release.xcconfig
postBuildScripts:
- name: Fix Framework Symlinks in Bundle
shell: /bin/bash
runOnlyWhenInstalling: false
basedOnDependencyAnalysis: false
script: |
fix_fw() {
local FW="$1"
[ -d "$FW" ] || return
local NAME="$(basename "$FW" .framework)"
if [ -d "$FW/Versions/A" ] && [ ! -L "$FW/Versions/Current" ]; then
rm -rf "$FW/Versions/Current"
ln -sf A "$FW/Versions/Current"
fi
if [ -f "$FW/Versions/A/$NAME" ] && [ ! -L "$FW/$NAME" ]; then
rm -f "$FW/$NAME"
ln -sf "Versions/Current/$NAME" "$FW/$NAME"
fi
for DIR in Headers Resources Modules; do
if [ -d "$FW/Versions/A/$DIR" ] && [ ! -L "$FW/$DIR" ]; then
rm -rf "$FW/$DIR"
ln -sf "Versions/Current/$DIR" "$FW/$DIR"
fi
done
}
FRAMEWORKS="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
for FW in "$FRAMEWORKS"/*.framework; do
fix_fw "$FW"
done
scheme:
preActions:
- name: Link & Pack
script: |
PATH="${PATH}" "${PWD}/node_modules/.bin/bare-link" \
--host darwin-arm64 \
--host ios-arm64 \
--host ios-arm64-simulator \
--out "${PWD}/addons/" \
"${PWD}"
PATH="${PATH}" "${PWD}/node_modules/.bin/bare-pack" \
--host darwin-arm64 \
--host ios-arm64 \
--host ios-arm64-simulator \
--linked \
--base "${PWD}" \
--out "${PWD}/app/iOS/app.bundle" \
"${PWD}/js/app.js"