Skip to content

Commit

Permalink
chore(*): use a global pbxproj
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jul 24, 2024
1 parent 6002f87 commit c2c4493
Show file tree
Hide file tree
Showing 82 changed files with 1,498 additions and 952 deletions.
84 changes: 53 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,67 @@
name: Build

on: [push]

on:
- push
jobs:
build:
name: Build
runs-on: macos-latest
find_schemes:
name: Find xcode schemes
runs-on: macos-14
outputs:
schemes: ${{ steps.getSchemes.outputs.schemes}}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Get schemes
id: getSchemes
run: |
TARGETS=$(xcodebuild -list -json | tr -d "\n")
echo TARGETS: $TARGETS
SCHEMES=$(echo $TARGETS | ruby -e "require 'json'; puts JSON.generate(:scheme => JSON.parse(STDIN.gets)['project']['schemes'])")
echo Found schemes: $SCHEMES
echo "schemes=$SCHEMES" >> $GITHUB_OUTPUT
swift_build:
name: Build with swift
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Package with swift
run: swift build
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['workspace']['schemes'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build Package with xcodebuild
env:
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
xcodebuild -scheme $scheme -destination 'platform=iOS Simulator,name=iPhone 13'
xcode_build:
name: Build with xcode
needs: find_schemes
runs-on: macos-14
strategy:
matrix: ${{ fromJson(needs.find_schemes.outputs.schemes) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build ${{matrix.scheme}}
run: xcodebuild clean build -project ApiVideoPlayer.xcodeproj -scheme "${{matrix.scheme}}" -sdk iphoneos CODE_SIGNING_ALLOWED=NO
verify:
name: Verify package sanity
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Verify cocoapods
run: pod lib lint --allow-warnings
- name: Install swiftlint
run: brew install swiftlint
- name: Execute swiftlint
run: swiftlint
- name: Build Example UIKit
env:
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
xcodebuild clean build -project Examples/PlayerUIKit/PlayerUIKit.xcodeproj -scheme $scheme -sdk iphoneos
- name: Build Example SwiftUI
env:
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
xcodebuild clean build -project Examples/PlayerSwiftUI/PlayerSwiftUI.xcodeproj -scheme $scheme -sdk iphoneos
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ iOSInjectionProject/
.DS_Store
/.build
/Packages
/*.xcodeproj
# /*.xcodeproj
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
Expand Down
1,283 changes: 1,283 additions & 0 deletions ApiVideoPlayer.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1540"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21F149552C50DF0E00B61588"
BuildableName = "ApiVideoPlayer.framework"
BlueprintName = "ApiVideoPlayer"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21F1495F2C50DF0F00B61588"
BuildableName = "PlayerTests.xctest"
BlueprintName = "PlayerTests"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21F149552C50DF0E00B61588"
BuildableName = "ApiVideoPlayer.framework"
BlueprintName = "ApiVideoPlayer"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1400"
version = "1.3">
LastUpgradeVersion = "1540"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand All @@ -14,10 +15,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C75C78EB27E1E1FA001CA24D"
BuildableName = "PlayerUIKit.app"
BlueprintName = "PlayerUIKit"
ReferencedContainer = "container:PlayerUIKit.xcodeproj">
BlueprintIdentifier = "21F14A5B2C50E20E00B61588"
BuildableName = "Example iOS.app"
BlueprintName = "Example iOS"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -26,9 +27,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -39,18 +39,24 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C75C78EB27E1E1FA001CA24D"
BuildableName = "PlayerUIKit.app"
BlueprintName = "PlayerUIKit"
ReferencedContainer = "container:PlayerUIKit.xcodeproj">
BlueprintIdentifier = "21F14A5B2C50E20E00B61588"
BuildableName = "Example iOS.app"
BlueprintName = "Example iOS"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "IDEPreferLogStreaming"
value = "YES"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -62,10 +68,10 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C75C78EB27E1E1FA001CA24D"
BuildableName = "PlayerUIKit.app"
BlueprintName = "PlayerUIKit"
ReferencedContainer = "container:PlayerUIKit.xcodeproj">
BlueprintIdentifier = "21F14A5B2C50E20E00B61588"
BuildableName = "Example iOS.app"
BlueprintName = "Example iOS"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
version = "1.3">
LastUpgradeVersion = "1540"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand All @@ -14,10 +15,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C734305E28F453F900A82721"
BuildableName = "PlayerSwiftUI.app"
BlueprintName = "PlayerSwiftUI"
ReferencedContainer = "container:PlayerSwiftUI.xcodeproj">
BlueprintIdentifier = "21F14A732C50E22200B61588"
BuildableName = "Example iOSSwiftUI.app"
BlueprintName = "Example iOSSwiftUI"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -26,9 +27,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -44,12 +44,19 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C734305E28F453F900A82721"
BuildableName = "PlayerSwiftUI.app"
BlueprintName = "PlayerSwiftUI"
ReferencedContainer = "container:PlayerSwiftUI.xcodeproj">
BlueprintIdentifier = "21F14A732C50E22200B61588"
BuildableName = "Example iOSSwiftUI.app"
BlueprintName = "Example iOSSwiftUI"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "IDEPreferLogStreaming"
value = "YES"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -61,10 +68,10 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C734305E28F453F900A82721"
BuildableName = "PlayerSwiftUI.app"
BlueprintName = "PlayerSwiftUI"
ReferencedContainer = "container:PlayerSwiftUI.xcodeproj">
BlueprintIdentifier = "21F14A732C50E22200B61588"
BuildableName = "Example iOSSwiftUI.app"
BlueprintName = "Example iOSSwiftUI"
ReferencedContainer = "container:ApiVideoPlayer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Loading

0 comments on commit c2c4493

Please sign in to comment.