ci: Skip building for Intel simulator in Swift CocoaPods test

This commit is contained in:
andrew-signal
2025-10-20 19:59:55 -04:00
committed by GitHub
parent c634aa0113
commit 78b1699400
2 changed files with 15 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
'acknowledgments/acknowledgments-ios.plist',
]
s.pod_target_xcconfig = {
pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(PODS_TARGET_SRCROOT)/swift/Sources/SignalFfi',
# Duplicate this here to make sure the search path is passed on to Swift dependencies.
'SWIFT_INCLUDE_PATHS' => '$(HEADER_SEARCH_PATHS)',
@@ -59,6 +59,14 @@ Pod::Spec.new do |s|
'ARCHS[sdk=iphoneos*]' => 'arm64',
}
if ENV['LIBSIGNAL_TESTING_ONLY_ACTIVE_ARCH']
pod_target_xcconfig['ONLY_ACTIVE_ARCH'] = 'YES'
s.user_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' }
end
s.pod_target_xcconfig = pod_target_xcconfig
s.script_phases = [
{ name: 'Download libsignal-ffi if not in cache',
execution_position: :before_compile,
@@ -103,10 +111,11 @@ Pod::Spec.new do |s|
test_spec.preserve_paths = [
'swift/Tests/*/Resources',
]
test_spec.pod_target_xcconfig = {
test_pod_target_xcconfig = {
# Don't also link into the test target.
'LIBSIGNAL_FFI_LIB_TO_LINK' => '',
}
test_spec.pod_target_xcconfig = test_pod_target_xcconfig
# Ideally we'd do this at run time, not configuration time, but CocoaPods doesn't make that easy.
# This is good enough.