react-native-popover-menu icon indicating copy to clipboard operation
react-native-popover-menu copied to clipboard

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

Open enisinanaj opened this issue 5 years ago • 3 comments

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 avatar Sep 14 '19 13:09 enisinanaj

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.

enisinanaj avatar Sep 15 '19 16:09 enisinanaj

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 >

prscX avatar Dec 08 '19 10:12 prscX

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

hossamnasser938 avatar Feb 17 '20 09:02 hossamnasser938