require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '10.0' target 'IosContextMenuExample' do config = use_native_modules! use_react_native!(:path => config["reactNativePath"]) pod 'react-native-ios-context-menu', :path => '../..' post_install do |installer| # https://github.com/CocoaPods/CocoaPods/issues/8891 installer.pods_project.targets.each do |target| # Fix bundle targets' 'Signing Certificate' to 'Sign to Run Locally' if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" target.build_configurations.each do |config| config.build_settings['CODE_SIGN_IDENTITY[sdk=macosx*]'] = '-' end end end end end