prscX / react-native-popover-menu

React Native: Native Popover Menu
Apache License 2.0
483 stars 54 forks source link

Cannot synthesize weak property because the current deployment target does not support weak references #39

Open enisinanaj opened 5 years ago

enisinanaj commented 5 years ago

Cannot build the app. I get the error : Cannot synthesize weak property because the current deployment target does not support weak references

Anyone had and/or fixed this issue?

Screenshot 2019-09-14 at 15 41 32

enisinanaj commented 5 years ago

I added the following in Podfile as a workaround for this issue. Still not sure why it happens.

at the end of node_modules/react-native-popover-menu/ios/Podfile add:

post_install do |installer_representation|
  installer_representation.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CLANG_ENABLE_OBJC_WEAK'] ||= 'YES'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
    end
  end
end

I'm using XCode 10.

prscX commented 4 years ago

Thanks @enisinanaj for raising the issue.

Could you please upgrade the library to latest version and RN61+ since it has default support for cocoapods.

Please follow installation steps for the same.

Thanks </ Pranav >

hossamnasser938 commented 4 years ago

@prscX I'm getting the same error with RN 0.61.5 and popover-menu 1.0.3