datetimepicker: iOS linker warning about duplicate method implementations

I’m seeing this warning from the native linker:

ld: warning: meta method 'UIDatePickerMode:' in category from /Users/nicholashodapp/Library/Developer/Xcode/DerivedData/Remitly-aouvfdqqojlkkyatnrqzidccuurd/Build/Products/Debug-iphonesimulator/RNDateTimePicker/libRNDateTimePicker.a(RNDateTimePickerManager.o) conflicts with same method from another category

I believe this code in react-native-community/datetimepicker is conflicting with this code in react-native.

It’s not clear to me how I can omit including the React Native “Core” DatePicker; if that’s possible then this likely isn’t a real issue.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 21
  • Comments: 40 (2 by maintainers)

Most upvoted comments

this stops Expo EAS builds from working

@vonovak Please was anything done to resolve this

I’ve silenced the warning in my application by patching React Native to remove (by commenting out) the RCTConvert (UIDatePicker category. The ideal fix would be for React Native to remove this deprecated component altogether.

Hi, any chance you could share your patch? I’m having the same issue and tried patching the file via patch-package but no luck. Thanks in advance 💪

I’m also getting the same warning.

Meta method ‘UIDatePickerMode:’ in category from /Users/edyloubaselonia/Library/Developer/Xcode/DerivedData/BlevinsincApp-fvfyqgaltdwyqdaolswvcvzpkyan/Build/Products/Debug-iphoneos/RNDateTimePicker/libRNDateTimePicker.a(RNDateTimePickerManager.o) conflicts with same method from another category

Same here

Same error ld: warning: meta method ‘UIDatePickerMode:’ in category from /Users/admin/Library/Developer/Xcode/DerivedData/Project-dazbhadjvjgpppbrkjzsrawgavcm/Build/Intermediates.noindex/ArchiveIntermediates/Project/BuildProductsPath/Release-iphoneos/RNDateTimePicker/libRNDateTimePicker.a(RNDateTimePickerManager.o) conflicts with same method from another category

Still an issue for me, removing node_modules didn’t help, on xcode 13.2…its not a warning, hard breaks yarn ios.

⚠️ ld: method ‘+UIDatePickerMode:’ in category from /Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug-iphonesimulator/React-Core/libReact-Core.a(RCTDatePickerManager.o) conflicts with same method from another category › Executing mobileui » Bundle React Native code and images › Preparing mobileui » Info.plist › Generating debug mobileui » mobileui.app.dSYM › Executing mobileui » [CP] Copy Pods Resources › Executing mobileui » Upload Debug Symbols to Sentry ❌ error: API request failed › 1 error(s), and 1 warning(s) Failed to build iOS project. “xcodebuild” exited with error code 65.

still looking for solutions

It’s been two years and the issue is still there…

@jimmihagenTrifecta Any ideas on how to fix this in EAS? I’m seeing this for EXPO’s modules ie › Linking MyApp » MyApp ⚠️ ld: method ‘-hasEnqueuedUICommands’ in category from /Users/expo/Library/Developer/Xcode/DerivedData/MyApp-dtwttoustbxxbybkskymiaziukhb/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/BuildProductsPath/Debug-iphoneos/expo-dev-menu/libexpo-dev-menu.a(DevMenuREANodesManager.o) conflicts with same method from another category ⚠️ ld: method ‘-runSyncUIUpdatesWithObserver:’ in category from /Users/expo/Library/Developer/Xcode/DerivedData/MyApp-dtwttoustbxxbybkskymiaziukhb/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/BuildProductsPath/Debug-iphoneos/expo-dev-menu/libexpo-dev-menu.a(DevMenuREANodesManager.o) conflicts with same method from another category