Skip to content

Commit 8c46a21

Browse files
authored
add MobileCoreServices framework (#338)
this fixes IOS Build error: Undefined symbol: _kUTTypeJPEG, Undefined symbol: _kUTTypePNG these symobls are defined in MobileCoreServices library, so the lib must be linked in the podspec the build error can be reproduced when using use_frameworks! in project Podfile that has react-native-image-resizer as a dependency
1 parent c82a274 commit 8c46a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-native-image-resizer.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
1818
s.source_files = "ios/**/*.{h,m,mm}"
1919

2020
s.dependency "React-Core"
21-
s.ios.framework = 'AssetsLibrary'
21+
s.ios.framework = 'AssetsLibrary', 'MobileCoreServices'
2222

2323
# Don't install the dependencies when we run `pod install` in the old architecture.
2424
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then

0 commit comments

Comments
 (0)