From 45a9d65ffcf5171028e5aecb0a776cd55aec955c Mon Sep 17 00:00:00 2001 From: Jacob Meacham Date: Sat, 10 Dec 2016 14:14:20 -0800 Subject: [PATCH] Fix issue with using ReactNativeFabric in a project that has use_frameworks! turned on. --- ReactNativeFabric.podspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ReactNativeFabric.podspec b/ReactNativeFabric.podspec index 1659aa2..1c9d38c 100644 --- a/ReactNativeFabric.podspec +++ b/ReactNativeFabric.podspec @@ -18,6 +18,10 @@ Pod::Spec.new do |s| s.dependency 'React' s.dependency 'Fabric' s.dependency 'Crashlytics' + s.ios.xcconfig = { + 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/Crashlytics/iOS" "${PODS_ROOT}/Fabric/iOS"', + 'OTHER_LDFLAGS' => '-framework Crashlytics -framework Fabric' + } s.preserve_paths = 'README.md', 'LICENSE', 'package.json' s.source_files = 'ios/**/*.{h,m}'