pod install shows no errors
Having this in the pod file
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
generates these warnings
...
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 27 dependencies from the Podfile and 38 total pods installed.
[!] [Xcodeproj] Generated duplicate UUIDs:
XCBuildConfiguration --
XCBuildConfiguration --
PBXBuildFile --
PBXBuildFile --
PBXBuildFile --
PBXBuildFile --
...
Also get a build error React/RCTDefines.h file not found
pod install this podfile on a new project
platform :ios, '9.3'
target 'MyApp' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'Fabric', '~> 1.7.2'
pod 'Crashlytics', '~> 3.9.3'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/DynamicLinks'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
pod 'Firebase/Performance'
pod 'ViroReact', :path => '../node_modules/react-viro/ios/'
pod 'ViroKit', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/'
# this is very important to have!
rn_path = '../node_modules/react-native'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
]
pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'
end
# very important to have, unless you removed React dependencies for Libraries
# and you rely on Cocoapods to manage it
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
this error is not related to this framework, this is Cocoapods issue;
add this to your podfile:
install! 'cocoapods',
:deterministic_uuids => false
@luna-moonfang that fixes the warning. What is the effect of doing that?
didn't work for me
I came across this issue a few times recently. Although unrelated to this lib, it could be resolved by upgrading cocoapods:
sudo gem install cocoapods
It's caused by duplicate files in different directories.
Sometimes Xcode might make mistake and duplicate files when you move files to another directory.
My solution to find these duplicate files,
grep -E '[a-zA-Z+]+\.(h|m|swift)' -o duplicateUUIDs.txt | sort | uniq -dAnother method to find duplicate files
find . -path ./.git -prune -o -type f -exec basename {} + | sort | uniq -d
where -path ./.git -prune -o means to exclude .git directory when finding
I had the same error and it was because when using an earlier version of image-crop-picker I added QBImagePickerController and RSKImageCropper to my pod file. Removing that solved it.
add this to your podfile:
install! 'cocoapods', :deterministic_uuids => false
Which section in the PodFile?
I placed it likes this and i worked:
platform :ios, '10.0'
install! 'cocoapods',
:deterministic_uuids => false
target 'Traver' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
target 'TraverTests' do
inherit! :complete
# Pods for testing
end
In my case, I used Firebase, but the error occurred when I installed the firebase internal package separately and then installed the firebase again.
(e.g, yarn add @react-native-firebase/app @react-native-firebase/auth react-native-firebase)
and now There is no error when I remove @react-native-firebase/app @react-native-firebase/auth
Check the duplicate package.
Most helpful comment
add this to your podfile: