Skip to content

Commit c3eba65

Browse files
committed
ci/pods: fix Podfile DSL; add shared scheme; install CocoaPods and run pod install; build via workspace when Pods present
1 parent 90ca3b1 commit c3eba65

File tree

3 files changed

+90
-5
lines changed

3 files changed

+90
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
run: |
2727
gem install xcpretty --no-document
2828
29+
- name: Install CocoaPods
30+
run: |
31+
gem install cocoapods --no-document
32+
33+
- name: Pod install
34+
run: |
35+
pod install --repo-update --silent || pod install
36+
2937
- name: Detect project or workspace
3038
id: detect
3139
shell: bash
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1430"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "8D1107260486CEB800E47090"
18+
BuildableName = "Avro Keyboard.app"
19+
BlueprintName = "Avro Keyboard"
20+
ReferencedContainer = "container:AvroKeyboard.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "8D1107260486CEB800E47090"
48+
BuildableName = "Avro Keyboard.app"
49+
BlueprintName = "Avro Keyboard"
50+
ReferencedContainer = "container:AvroKeyboard.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
</LaunchAction>
54+
<ProfileAction
55+
buildConfiguration = "Release"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
savedToolIdentifier = ""
58+
useCustomWorkingDirectory = "NO">
59+
<BuildableProductRunnable
60+
runnableDebuggingMode = "0">
61+
<BuildableReference
62+
BuildableIdentifier = "primary"
63+
BlueprintIdentifier = "8D1107260486CEB800E47090"
64+
BuildableName = "Avro Keyboard.app"
65+
BlueprintName = "Avro Keyboard"
66+
ReferencedContainer = "container:AvroKeyboard.xcodeproj">
67+
</BuildableReference>
68+
</BuildableProductRunnable>
69+
</ProfileAction>
70+
<AnalyzeAction
71+
buildConfiguration = "Debug">
72+
</AnalyzeAction>
73+
<ArchiveAction
74+
buildConfiguration = "Release"
75+
revealArchiveInOrganizer = "YES">
76+
</ArchiveAction>
77+
</Scheme>

Podfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
source 'https://github.com/CocoaPods/Specs.git'
2-
platform :osx
1+
platform :osx, '10.11'
32

4-
target 'Avro Keyboard'
5-
pod 'RegexKitLite', '~> 4.0'
6-
pod 'FMDB', '~> 2.1'
3+
target 'Avro Keyboard' do
4+
pod 'RegexKitLite', '~> 4.0'
5+
pod 'FMDB', '~> 2.1'
6+
end

0 commit comments

Comments
 (0)