Skip to content

Commit c2c4493

Browse files
committed
chore(*): use a global pbxproj
1 parent 6002f87 commit c2c4493

File tree

82 files changed

+1498
-952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1498
-952
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,67 @@
11
name: Build
2-
3-
on: [push]
4-
2+
on:
3+
- push
54
jobs:
6-
build:
7-
name: Build
8-
runs-on: macos-latest
5+
find_schemes:
6+
name: Find xcode schemes
7+
runs-on: macos-14
8+
outputs:
9+
schemes: ${{ steps.getSchemes.outputs.schemes}}
910
steps:
1011
- name: Checkout
11-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
13+
- name: xcode version
14+
uses: maxim-lobanov/setup-xcode@v1
15+
with:
16+
xcode-version: latest-stable
17+
- name: Get schemes
18+
id: getSchemes
19+
run: |
20+
TARGETS=$(xcodebuild -list -json | tr -d "\n")
21+
echo TARGETS: $TARGETS
22+
SCHEMES=$(echo $TARGETS | ruby -e "require 'json'; puts JSON.generate(:scheme => JSON.parse(STDIN.gets)['project']['schemes'])")
23+
echo Found schemes: $SCHEMES
24+
echo "schemes=$SCHEMES" >> $GITHUB_OUTPUT
25+
swift_build:
26+
name: Build with swift
27+
runs-on: macos-14
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
1231
- name: xcode version
1332
uses: maxim-lobanov/setup-xcode@v1
1433
with:
1534
xcode-version: latest-stable
1635
- name: Build Package with swift
1736
run: swift build
18-
- name: Set Default Scheme
19-
run: |
20-
scheme_list=$(xcodebuild -list -json | tr -d "\n")
21-
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['workspace']['schemes'][0]")
22-
echo $default | cat >default
23-
echo Using default scheme: $default
24-
- name: Build Package with xcodebuild
25-
env:
26-
scheme: ${{ 'default' }}
27-
run: |
28-
if [ $scheme = default ]; then scheme=$(cat default); fi
29-
xcodebuild -scheme $scheme -destination 'platform=iOS Simulator,name=iPhone 13'
37+
xcode_build:
38+
name: Build with xcode
39+
needs: find_schemes
40+
runs-on: macos-14
41+
strategy:
42+
matrix: ${{ fromJson(needs.find_schemes.outputs.schemes) }}
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
- name: xcode version
47+
uses: maxim-lobanov/setup-xcode@v1
48+
with:
49+
xcode-version: latest-stable
50+
- name: Build ${{matrix.scheme}}
51+
run: xcodebuild clean build -project ApiVideoPlayer.xcodeproj -scheme "${{matrix.scheme}}" -sdk iphoneos CODE_SIGNING_ALLOWED=NO
52+
verify:
53+
name: Verify package sanity
54+
runs-on: macos-14
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v4
58+
- name: xcode version
59+
uses: maxim-lobanov/setup-xcode@v1
60+
with:
61+
xcode-version: latest-stable
3062
- name: Verify cocoapods
3163
run: pod lib lint --allow-warnings
64+
- name: Install swiftlint
65+
run: brew install swiftlint
3266
- name: Execute swiftlint
3367
run: swiftlint
34-
- name: Build Example UIKit
35-
env:
36-
scheme: ${{ 'default' }}
37-
run: |
38-
if [ $scheme = default ]; then scheme=$(cat default); fi
39-
xcodebuild clean build -project Examples/PlayerUIKit/PlayerUIKit.xcodeproj -scheme $scheme -sdk iphoneos
40-
- name: Build Example SwiftUI
41-
env:
42-
scheme: ${{ 'default' }}
43-
run: |
44-
if [ $scheme = default ]; then scheme=$(cat default); fi
45-
xcodebuild clean build -project Examples/PlayerSwiftUI/PlayerSwiftUI.xcodeproj -scheme $scheme -sdk iphoneos

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ iOSInjectionProject/
103103
.DS_Store
104104
/.build
105105
/Packages
106-
/*.xcodeproj
106+
# /*.xcodeproj
107107
.swiftpm/config/registries.json
108108
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
109109
.netrc

ApiVideoPlayer.xcodeproj/project.pbxproj

Lines changed: 1283 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1540"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "21F149552C50DF0E00B61588"
19+
BuildableName = "ApiVideoPlayer.framework"
20+
BlueprintName = "ApiVideoPlayer"
21+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
32+
<Testables>
33+
<TestableReference
34+
skipped = "NO"
35+
parallelizable = "YES">
36+
<BuildableReference
37+
BuildableIdentifier = "primary"
38+
BlueprintIdentifier = "21F1495F2C50DF0F00B61588"
39+
BuildableName = "PlayerTests.xctest"
40+
BlueprintName = "PlayerTests"
41+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
42+
</BuildableReference>
43+
</TestableReference>
44+
</Testables>
45+
</TestAction>
46+
<LaunchAction
47+
buildConfiguration = "Debug"
48+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
49+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
50+
launchStyle = "0"
51+
useCustomWorkingDirectory = "NO"
52+
ignoresPersistentStateOnLaunch = "NO"
53+
debugDocumentVersioning = "YES"
54+
debugServiceExtension = "internal"
55+
allowLocationSimulation = "YES">
56+
</LaunchAction>
57+
<ProfileAction
58+
buildConfiguration = "Release"
59+
shouldUseLaunchSchemeArgsEnv = "YES"
60+
savedToolIdentifier = ""
61+
useCustomWorkingDirectory = "NO"
62+
debugDocumentVersioning = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "21F149552C50DF0E00B61588"
67+
BuildableName = "ApiVideoPlayer.framework"
68+
BlueprintName = "ApiVideoPlayer"
69+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
72+
</ProfileAction>
73+
<AnalyzeAction
74+
buildConfiguration = "Debug">
75+
</AnalyzeAction>
76+
<ArchiveAction
77+
buildConfiguration = "Release"
78+
revealArchiveInOrganizer = "YES">
79+
</ArchiveAction>
80+
</Scheme>
Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1400"
4-
version = "1.3">
3+
LastUpgradeVersion = "1540"
4+
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
7-
buildImplicitDependencies = "YES">
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
89
<BuildActionEntries>
910
<BuildActionEntry
1011
buildForTesting = "YES"
@@ -14,10 +15,10 @@
1415
buildForAnalyzing = "YES">
1516
<BuildableReference
1617
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "C75C78EB27E1E1FA001CA24D"
18-
BuildableName = "PlayerUIKit.app"
19-
BlueprintName = "PlayerUIKit"
20-
ReferencedContainer = "container:PlayerUIKit.xcodeproj">
18+
BlueprintIdentifier = "21F14A5B2C50E20E00B61588"
19+
BuildableName = "Example iOS.app"
20+
BlueprintName = "Example iOS"
21+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
2122
</BuildableReference>
2223
</BuildActionEntry>
2324
</BuildActionEntries>
@@ -26,9 +27,8 @@
2627
buildConfiguration = "Debug"
2728
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2829
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
3232
</TestAction>
3333
<LaunchAction
3434
buildConfiguration = "Debug"
@@ -39,18 +39,24 @@
3939
ignoresPersistentStateOnLaunch = "NO"
4040
debugDocumentVersioning = "YES"
4141
debugServiceExtension = "internal"
42-
enableGPUValidationMode = "1"
4342
allowLocationSimulation = "YES">
4443
<BuildableProductRunnable
4544
runnableDebuggingMode = "0">
4645
<BuildableReference
4746
BuildableIdentifier = "primary"
48-
BlueprintIdentifier = "C75C78EB27E1E1FA001CA24D"
49-
BuildableName = "PlayerUIKit.app"
50-
BlueprintName = "PlayerUIKit"
51-
ReferencedContainer = "container:PlayerUIKit.xcodeproj">
47+
BlueprintIdentifier = "21F14A5B2C50E20E00B61588"
48+
BuildableName = "Example iOS.app"
49+
BlueprintName = "Example iOS"
50+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
5251
</BuildableReference>
5352
</BuildableProductRunnable>
53+
<EnvironmentVariables>
54+
<EnvironmentVariable
55+
key = "IDEPreferLogStreaming"
56+
value = "YES"
57+
isEnabled = "YES">
58+
</EnvironmentVariable>
59+
</EnvironmentVariables>
5460
</LaunchAction>
5561
<ProfileAction
5662
buildConfiguration = "Release"
@@ -62,10 +68,10 @@
6268
runnableDebuggingMode = "0">
6369
<BuildableReference
6470
BuildableIdentifier = "primary"
65-
BlueprintIdentifier = "C75C78EB27E1E1FA001CA24D"
66-
BuildableName = "PlayerUIKit.app"
67-
BlueprintName = "PlayerUIKit"
68-
ReferencedContainer = "container:PlayerUIKit.xcodeproj">
71+
BlueprintIdentifier = "21F14A5B2C50E20E00B61588"
72+
BuildableName = "Example iOS.app"
73+
BlueprintName = "Example iOS"
74+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
6975
</BuildableReference>
7076
</BuildableProductRunnable>
7177
</ProfileAction>
Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1420"
4-
version = "1.3">
3+
LastUpgradeVersion = "1540"
4+
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
7-
buildImplicitDependencies = "YES">
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
89
<BuildActionEntries>
910
<BuildActionEntry
1011
buildForTesting = "YES"
@@ -14,10 +15,10 @@
1415
buildForAnalyzing = "YES">
1516
<BuildableReference
1617
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "C734305E28F453F900A82721"
18-
BuildableName = "PlayerSwiftUI.app"
19-
BlueprintName = "PlayerSwiftUI"
20-
ReferencedContainer = "container:PlayerSwiftUI.xcodeproj">
18+
BlueprintIdentifier = "21F14A732C50E22200B61588"
19+
BuildableName = "Example iOSSwiftUI.app"
20+
BlueprintName = "Example iOSSwiftUI"
21+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
2122
</BuildableReference>
2223
</BuildActionEntry>
2324
</BuildActionEntries>
@@ -26,9 +27,8 @@
2627
buildConfiguration = "Debug"
2728
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2829
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
3232
</TestAction>
3333
<LaunchAction
3434
buildConfiguration = "Debug"
@@ -44,12 +44,19 @@
4444
runnableDebuggingMode = "0">
4545
<BuildableReference
4646
BuildableIdentifier = "primary"
47-
BlueprintIdentifier = "C734305E28F453F900A82721"
48-
BuildableName = "PlayerSwiftUI.app"
49-
BlueprintName = "PlayerSwiftUI"
50-
ReferencedContainer = "container:PlayerSwiftUI.xcodeproj">
47+
BlueprintIdentifier = "21F14A732C50E22200B61588"
48+
BuildableName = "Example iOSSwiftUI.app"
49+
BlueprintName = "Example iOSSwiftUI"
50+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
5151
</BuildableReference>
5252
</BuildableProductRunnable>
53+
<EnvironmentVariables>
54+
<EnvironmentVariable
55+
key = "IDEPreferLogStreaming"
56+
value = "YES"
57+
isEnabled = "YES">
58+
</EnvironmentVariable>
59+
</EnvironmentVariables>
5360
</LaunchAction>
5461
<ProfileAction
5562
buildConfiguration = "Release"
@@ -61,10 +68,10 @@
6168
runnableDebuggingMode = "0">
6269
<BuildableReference
6370
BuildableIdentifier = "primary"
64-
BlueprintIdentifier = "C734305E28F453F900A82721"
65-
BuildableName = "PlayerSwiftUI.app"
66-
BlueprintName = "PlayerSwiftUI"
67-
ReferencedContainer = "container:PlayerSwiftUI.xcodeproj">
71+
BlueprintIdentifier = "21F14A732C50E22200B61588"
72+
BuildableName = "Example iOSSwiftUI.app"
73+
BlueprintName = "Example iOSSwiftUI"
74+
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
6875
</BuildableReference>
6976
</BuildableProductRunnable>
7077
</ProfileAction>

0 commit comments

Comments
 (0)