Skip to content

Commit 2bddb03

Browse files
authored
Build sample apps for v9 (#5627)
1 parent aa98fe8 commit 2bddb03

28 files changed

+109
-2
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,37 @@ jobs:
4949
run: bundle exec fastlane build_ios_swift
5050

5151
build-sample:
52-
name: Sample ${{ matrix.scheme }}
52+
name: Sample ${{ matrix.scheme }} ${{ matrix.config }}
5353
runs-on: macos-15
5454
strategy:
5555
fail-fast: false
5656
matrix:
5757
# other sample projects are built in ui-tests
5858
include:
5959
- scheme: macOS-Swift
60+
config: Debug
6061
- scheme: iOS13-Swift
62+
config: Debug
6163
- scheme: watchOS-Swift WatchKit App
64+
config: Debug
6265
- scheme: macOS-SwiftUI
66+
config: Debug
6367
- scheme: SessionReplay-CameraTest
68+
config: Debug
6469
- scheme: visionOS-Swift
70+
config: Debug
71+
- scheme: iOS-Swift
72+
config: DebugV9
73+
- scheme: macOS-Swift
74+
config: DebugV9
75+
- scheme: tvOS-Swift
76+
config: DebugV9
77+
- scheme: visionOS-Swift
78+
config: DebugV9
79+
- scheme: iOS-SwiftUI
80+
config: DebugV9
81+
- scheme: iOS-ObjectiveC
82+
config: DebugV9
6583

6684
steps:
6785
- uses: actions/checkout@v4
@@ -76,7 +94,7 @@ jobs:
7694
xcodebuild
7795
-workspace Sentry.xcworkspace
7896
-scheme '${{matrix.scheme}}'
79-
-configuration Debug
97+
-configuration ${{matrix.config}}
8098
CODE_SIGNING_ALLOWED="NO"
8199
build
82100

Samples/SentrySampleShared/SentrySampleShared.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ createIntermediateGroups: true
33
generateEmptyDirectories: true
44
configs:
55
Debug: debug
6+
DebugV9: debug
67
Test: debug
78
TestCI: debug
89
Release: release
@@ -24,6 +25,7 @@ targets:
2425
- target: Sentry/Sentry
2526
configFiles:
2627
Debug: SentrySampleShared.xcconfig
28+
DebugV9: SentrySampleShared.xcconfig
2729
Release: SentrySampleShared.xcconfig
2830
Test: SentrySampleShared.xcconfig
2931
TestCI: SentrySampleShared.xcconfig

Samples/Shared/Config/Architectures.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ONLY_ACTIVE_ARCH_Debug = YES
2+
ONLY_ACTIVE_ARCH_DebugV9 = YES
23
ONLY_ACTIVE_ARCH_Test = YES
34
ONLY_ACTIVE_ARCH_TestCI = YES
45
ONLY_ACTIVE_ARCH_Release = NO

Samples/Shared/Config/BuildOptions.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
DEBUG_INFORMATION_FORMAT_Debug = dwarf
2+
DEBUG_INFORMATION_FORMAT_DebugV9 = dwarf
23
DEBUG_INFORMATION_FORMAT_Test = dwarf-with-dsym
34
DEBUG_INFORMATION_FORMAT_TestCI = dwarf-with-dsym
45
DEBUG_INFORMATION_FORMAT_Release = dwarf-with-dsym
56
DEBUG_INFORMATION_FORMAT = $(DEBUG_INFORMATION_FORMAT_$(CONFIGURATION))
67

78
ENABLE_TESTABILITY_Debug = YES
9+
ENABLE_TESTABILITY_DebugV9 = YES
810
ENABLE_TESTABILITY_Test = YES
911
ENABLE_TESTABILITY_TestCI = YES
1012
ENABLE_TESTABILITY_Release = NO
1113
ENABLE_TESTABILITY = $(ENABLE_TESTABILITY_$(CONFIGURATION))
1214

1315
VALIDATE_PRODUCT_Debug = NO
16+
VALIDATE_PRODUCT_DebugV9 = NO
1417
VALIDATE_PRODUCT_Test = YES
1518
VALIDATE_PRODUCT_TestCI = YES
1619
VALIDATE_PRODUCT_Release = YES

Samples/Shared/Config/ClangPreprocessing.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
ENABLE_STRICT_OBJC_MSGSEND = YES
22

33
ENABLE_NS_ASSERTIONS_Debug = YES
4+
ENABLE_NS_ASSERTIONS_DebugV9 = YES
45
ENABLE_NS_ASSERTIONS_Test = NO
56
ENABLE_NS_ASSERTIONS_TestCI = NO
67
ENABLE_NS_ASSERTIONS_Release = NO
78
ENABLE_NS_ASSERTIONS = $(ENABLE_NS_ASSERTIONS_$(CONFIGURATION))
89

910
GCC_PREPROCESSOR_DEFINITIONS_Debug = DEBUG=1 $(inherited)
11+
GCC_PREPROCESSOR_DEFINITIONS_DebugV9 = DEBUG=1 $(inherited)
1012
GCC_PREPROCESSOR_DEFINITIONS_Test = SENTRY_TEST=1 $(inherited)
1113
GCC_PREPROCESSOR_DEFINITIONS_TestCI = SENTRY_TESTCI=1 $(inherited)
1214
GCC_PREPROCESSOR_DEFINITIONS_Release = RELEASE=1 $(inherited)

Samples/Shared/Config/CodeGeneration.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ GCC_DYNAMIC_NO_PIC = NO
22
GCC_NO_COMMON_BLOCKS = YES
33

44
GCC_OPTIMIZATION_LEVEL_Debug = 0
5+
GCC_OPTIMIZATION_LEVEL_DebugV9 = 0
56
GCC_OPTIMIZATION_LEVEL_Test = 0
67
GCC_OPTIMIZATION_LEVEL_TestCI = 0
78
GCC_OPTIMIZATION_LEVEL_Release = s

Samples/Shared/Config/Metal.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
MTL_ENABLE_DEBUG_INFO_Debug = INCLUDE_SOURCE
2+
MTL_ENABLE_DEBUG_INFO_DebugV9 = INCLUDE_SOURCE
23
MTL_ENABLE_DEBUG_INFO_Release = NO
34
MTL_ENABLE_DEBUG_INFO_Test = NO
45
MTL_ENABLE_DEBUG_INFO_TestCI = NO

Samples/Shared/Config/Signing.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ CODE_SIGN_STYLE = Automatic
22
DEVELOPMENT_TEAM = 97JCY7859U
33

44
CODE_SIGN_IDENTITY_Debug = iPhone Developer
5+
CODE_SIGN_IDENTITY_DebugV9 = iPhone Developer
56
CODE_SIGN_IDENTITY_Test = iPhone Developer
67
CODE_SIGN_IDENTITY_TestCI = iPhone Developer
78
CODE_SIGN_IDENTITY_Release = iPhone Distribution
89
CODE_SIGN_IDENTITY_Debug[sdk=macosx*] = Apple Development
10+
CODE_SIGN_IDENTITY_DebugV9[sdk=macosx*] = Apple Development
911
CODE_SIGN_IDENTITY_Test[sdk=macosx*] = Apple Development
1012
CODE_SIGN_IDENTITY_TestCI[sdk=macosx*] = Apple Development
1113
CODE_SIGN_IDENTITY_Release[sdk=macosx*] = Apple Distribution

Samples/Shared/Config/Swift.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
SWIFT_VERSION = 5.0
22

33
SWIFT_ACTIVE_COMPILATION_CONDITIONS_Debug = DEBUG $(inherited)
4+
SWIFT_ACTIVE_COMPILATION_CONDITIONS_DebugV9 = DEBUG $(inherited)
45
SWIFT_ACTIVE_COMPILATION_CONDITIONS_Test = SENTRY_TEST $(inherited)
56
SWIFT_ACTIVE_COMPILATION_CONDITIONS_TestCI = SENTRY_TESTCI $(inherited)
67
SWIFT_ACTIVE_COMPILATION_CONDITIONS_Release = $(inherited)
78
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS_$(CONFIGURATION))
89

910
SWIFT_COMPILATION_MODE_Debug = singlefile
11+
SWIFT_COMPILATION_MODE_DebugV9 = singlefile
1012
SWIFT_COMPILATION_MODE_Test = wholemodule
1113
SWIFT_COMPILATION_MODE_TestCI = wholemodule
1214
SWIFT_COMPILATION_MODE_Release = wholemodule
1315
SWIFT_COMPILATION_MODE = $(SWIFT_COMPILATION_MODE_$(CONFIGURATION))
1416

1517
SWIFT_OPTIMIZATION_LEVEL_Debug = -Onone
18+
SWIFT_OPTIMIZATION_LEVEL_DebugV9 = -Onone
1619
SWIFT_OPTIMIZATION_LEVEL_Test = -Onone
1720
SWIFT_OPTIMIZATION_LEVEL_TestCI = -Onone
1821
SWIFT_OPTIMIZATION_LEVEL_Release = -O

Samples/iOS-ObjectiveC/iOS-ObjectiveC.xcconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ INFOPLIST_FILE = iOS-ObjectiveC/Info.plist
2626
CODE_SIGN_ENTITLEMENTS = iOS-ObjectiveC/iOS-ObjectiveC.entitlements
2727

2828
SUPPORTED_PLATFORMS = iphoneos iphonesimulator
29+
30+
GCC_PREPROCESSOR_DEFINITIONS_V9 = $(GCC_PREPROCESSOR_DEFINITIONS) SDK_V9
31+
GCC_PREPROCESSOR_DEFINITIONS_V = $(GCC_PREPROCESSOR_DEFINITIONS)
32+
GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_V$(MAJOR_VERSION))

0 commit comments

Comments
 (0)