Skip to content

Commit 213f085

Browse files
fix: sets static builds in core podspec to prevent dependency conflicts (#171)
* fix: sets static builds in core podspec to prevent dependency conflicts * Add changeset --------- Co-authored-by: Trevor Coleman <trevor@trevorcoleman.design>
1 parent 2ca97d9 commit 213f085

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/wet-cups-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@infinitered/react-native-mlkit-core": minor
3+
---
4+
5+
fix: sets static builds in core podspec to prevent dependency conflicts

modules/react-native-mlkit-core/ios/RNMLKitCore.podspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
1313
s.platform = :ios, '13.0'
1414
s.swift_version = '5.4'
1515
s.source = { git: 'http://github.com/infinitered/react-native-mlkit' }
16-
16+
s.static_framework = true
1717
s.dependency 'MLKitVision'
1818
s.dependency 'ExpoModulesCore'
1919

@@ -23,5 +23,9 @@ Pod::Spec.new do |s|
2323
'SWIFT_COMPILATION_MODE' => 'wholemodule'
2424
}
2525

26+
def s.build_type
27+
Pod::BuildType.static_library
28+
end
29+
2630
s.source_files = "**/*.{h,m,swift}"
2731
end

0 commit comments

Comments
 (0)