Skip to content

Commit

Permalink
Link XCTest weakly to enable static linking (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkj-is authored Mar 27, 2024
1 parent 5516392 commit 92c4754
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RxTest.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ func testMap() {
s.source_files = 'RxTest/**/*.swift', 'Platform/**/*.swift'
s.exclude_files = 'RxTest/Platform/**/*.swift'

s.framework = 'XCTest'
s.weak_framework = 'XCTest'

s.dependency 'RxSwift', '6.6.0'
s.swift_version = '5.1'

s.pod_target_xcconfig = {
'ENABLE_BITCODE' => 'NO',
'APPLICATION_EXTENSION_API_ONLY' => 'YES',
'ENABLE_TESTING_SEARCH_PATHS' => 'YES',
'OTHER_LDFLAGS' => '$(inherited) -weak-lXCTestSwiftSupport -Xlinker -no_application_extension',
}
end

0 comments on commit 92c4754

Please sign in to comment.