Skip to content

Commit 7183040

Browse files
authored
Add watchOS platform to Crashlytics (#1245)
1 parent 1ba479e commit 7183040

File tree

29 files changed

+1416
-18
lines changed

29 files changed

+1416
-18
lines changed

.github/workflows/crashlytics.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
xcodebuild \
5959
-project CrashlyticsExample.xcodeproj \
6060
-scheme 'CrashlyticsSwiftUIExample (iOS)' \
61-
-sdk iphonesimulator \
6261
-destination 'platform=iOS Simulator,name=iPhone 11' \
6362
build
6463
env:
@@ -85,3 +84,18 @@ jobs:
8584
build
8685
env:
8786
SAMPLE: Crashlytics
87+
# Works from the xcode UI but not from the xcodebuild command
88+
# - name: Build SwiftUI (watchOS)
89+
# run: |
90+
# cd crashlytics
91+
# ../scripts/install_prereqs/crashlytics.sh
92+
# xcodebuild \
93+
# -project CrashlyticsExample.xcodeproj \
94+
# -scheme 'CrashlyticsSwiftUIExample (watchOS)' \
95+
# -sdk watchos \
96+
# build \
97+
# CODE_SIGN_IDENTITY="" \
98+
# CODE_SIGNING_REQUIRED=NO \
99+
# CODE_SIGNING_ALLOWED=NO
100+
# env:
101+
# SAMPLE: Crashlytics

crashlytics/CrashlyticsExample.xcodeproj/project.pbxproj

Lines changed: 377 additions & 10 deletions
Large diffs are not rendered by default.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1250"
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 = "C73C899D26845908003E5C2C"
18+
BuildableName = "CrashlyticsSwiftUIExample.app"
19+
BlueprintName = "CrashlyticsSwiftUIExample (iOS)"
20+
ReferencedContainer = "container:CrashlyticsExample.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 = "C73C899D26845908003E5C2C"
48+
BuildableName = "CrashlyticsSwiftUIExample.app"
49+
BlueprintName = "CrashlyticsSwiftUIExample (iOS)"
50+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
</LaunchAction>
54+
<ProfileAction
55+
buildConfiguration = "Release"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
savedToolIdentifier = ""
58+
useCustomWorkingDirectory = "NO"
59+
debugDocumentVersioning = "YES">
60+
<BuildableProductRunnable
61+
runnableDebuggingMode = "0">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "C73C899D26845908003E5C2C"
65+
BuildableName = "CrashlyticsSwiftUIExample.app"
66+
BlueprintName = "CrashlyticsSwiftUIExample (iOS)"
67+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
68+
</BuildableReference>
69+
</BuildableProductRunnable>
70+
</ProfileAction>
71+
<AnalyzeAction
72+
buildConfiguration = "Debug">
73+
</AnalyzeAction>
74+
<ArchiveAction
75+
buildConfiguration = "Release"
76+
revealArchiveInOrganizer = "YES">
77+
</ArchiveAction>
78+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1250"
4+
version = "2.0">
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 = "C74593FA26BDDD5F00153AE3"
18+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
19+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
20+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "C73C899D26845908003E5C2C"
32+
BuildableName = "CrashlyticsSwiftUIExample.app"
33+
BlueprintName = "CrashlyticsSwiftUIExample (iOS)"
34+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
</Testables>
46+
</TestAction>
47+
<LaunchAction
48+
buildConfiguration = "Debug"
49+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
50+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
51+
launchStyle = "0"
52+
useCustomWorkingDirectory = "NO"
53+
ignoresPersistentStateOnLaunch = "NO"
54+
debugDocumentVersioning = "YES"
55+
debugServiceExtension = "internal"
56+
allowLocationSimulation = "YES"
57+
launchAutomaticallySubstyle = "32">
58+
<BuildableProductRunnable
59+
runnableDebuggingMode = "0">
60+
<BuildableReference
61+
BuildableIdentifier = "primary"
62+
BlueprintIdentifier = "C74593FA26BDDD5F00153AE3"
63+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
64+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
65+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
66+
</BuildableReference>
67+
</BuildableProductRunnable>
68+
</LaunchAction>
69+
<ProfileAction
70+
buildConfiguration = "Release"
71+
shouldUseLaunchSchemeArgsEnv = "YES"
72+
savedToolIdentifier = ""
73+
useCustomWorkingDirectory = "NO"
74+
debugDocumentVersioning = "YES"
75+
launchAutomaticallySubstyle = "32">
76+
<BuildableProductRunnable
77+
runnableDebuggingMode = "0">
78+
<BuildableReference
79+
BuildableIdentifier = "primary"
80+
BlueprintIdentifier = "C74593FA26BDDD5F00153AE3"
81+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
82+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
83+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
84+
</BuildableReference>
85+
</BuildableProductRunnable>
86+
</ProfileAction>
87+
<AnalyzeAction
88+
buildConfiguration = "Debug">
89+
</AnalyzeAction>
90+
<ArchiveAction
91+
buildConfiguration = "Release"
92+
revealArchiveInOrganizer = "YES">
93+
</ArchiveAction>
94+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1250"
4+
version = "2.0">
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 = "C74593FA26BDDD5F00153AE3"
18+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
19+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
20+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "C73C899D26845908003E5C2C"
32+
BuildableName = "CrashlyticsSwiftUIExample.app"
33+
BlueprintName = "CrashlyticsSwiftUIExample (iOS)"
34+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
</Testables>
46+
</TestAction>
47+
<LaunchAction
48+
buildConfiguration = "Debug"
49+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
50+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
51+
launchStyle = "0"
52+
useCustomWorkingDirectory = "NO"
53+
ignoresPersistentStateOnLaunch = "NO"
54+
debugDocumentVersioning = "YES"
55+
debugServiceExtension = "internal"
56+
allowLocationSimulation = "YES"
57+
launchAutomaticallySubstyle = "8"
58+
notificationPayloadFile = "CrashlyticsSwiftUIExample_(watchOS)_Extension/PushNotificationPayload.apns">
59+
<BuildableProductRunnable
60+
runnableDebuggingMode = "0">
61+
<BuildableReference
62+
BuildableIdentifier = "primary"
63+
BlueprintIdentifier = "C74593FA26BDDD5F00153AE3"
64+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
65+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
66+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
67+
</BuildableReference>
68+
</BuildableProductRunnable>
69+
</LaunchAction>
70+
<ProfileAction
71+
buildConfiguration = "Release"
72+
shouldUseLaunchSchemeArgsEnv = "YES"
73+
savedToolIdentifier = ""
74+
useCustomWorkingDirectory = "NO"
75+
debugDocumentVersioning = "YES"
76+
launchAutomaticallySubstyle = "8"
77+
notificationPayloadFile = "CrashlyticsSwiftUIExample_(watchOS)_Extension/PushNotificationPayload.apns">
78+
<BuildableProductRunnable
79+
runnableDebuggingMode = "0">
80+
<BuildableReference
81+
BuildableIdentifier = "primary"
82+
BlueprintIdentifier = "C74593FA26BDDD5F00153AE3"
83+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
84+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
85+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
86+
</BuildableReference>
87+
</BuildableProductRunnable>
88+
</ProfileAction>
89+
<AnalyzeAction
90+
buildConfiguration = "Debug">
91+
</AnalyzeAction>
92+
<ArchiveAction
93+
buildConfiguration = "Release"
94+
revealArchiveInOrganizer = "YES">
95+
</ArchiveAction>
96+
</Scheme>
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1250"
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 = "C74593FA26BDDD5F00153AE3"
18+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
19+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
20+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "C73C899D26845908003E5C2C"
32+
BuildableName = "CrashlyticsSwiftUIExample.app"
33+
BlueprintName = "CrashlyticsSwiftUIExample (iOS)"
34+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
</Testables>
46+
</TestAction>
47+
<LaunchAction
48+
buildConfiguration = "Debug"
49+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
50+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
51+
launchStyle = "0"
52+
useCustomWorkingDirectory = "NO"
53+
ignoresPersistentStateOnLaunch = "NO"
54+
debugDocumentVersioning = "YES"
55+
debugServiceExtension = "internal"
56+
allowLocationSimulation = "YES"
57+
notificationPayloadFile = "CrashlyticsSwiftUIExample_(watchOS)_Extension/PushNotificationPayload.apns">
58+
<BuildableProductRunnable
59+
runnableDebuggingMode = "0">
60+
<BuildableReference
61+
BuildableIdentifier = "primary"
62+
BlueprintIdentifier = "C74593FA26BDDD5F00153AE3"
63+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
64+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
65+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
66+
</BuildableReference>
67+
</BuildableProductRunnable>
68+
</LaunchAction>
69+
<ProfileAction
70+
buildConfiguration = "Release"
71+
shouldUseLaunchSchemeArgsEnv = "YES"
72+
savedToolIdentifier = ""
73+
useCustomWorkingDirectory = "NO"
74+
debugDocumentVersioning = "YES">
75+
<BuildableProductRunnable
76+
runnableDebuggingMode = "0">
77+
<BuildableReference
78+
BuildableIdentifier = "primary"
79+
BlueprintIdentifier = "C74593FA26BDDD5F00153AE3"
80+
BuildableName = "CrashlyticsSwiftUIExample_(watchOS).app"
81+
BlueprintName = "CrashlyticsSwiftUIExample_(watchOS)"
82+
ReferencedContainer = "container:CrashlyticsExample.xcodeproj">
83+
</BuildableReference>
84+
</BuildableProductRunnable>
85+
</ProfileAction>
86+
<AnalyzeAction
87+
buildConfiguration = "Debug">
88+
</AnalyzeAction>
89+
<ArchiveAction
90+
buildConfiguration = "Release"
91+
revealArchiveInOrganizer = "YES">
92+
</ArchiveAction>
93+
</Scheme>

0 commit comments

Comments
 (0)