You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I took a basic react-native template for a ride, which has the following podfile:
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'ReactNativeBazel'doconfig=use_native_modules!use_react_native!(:path=>config[:reactNativePath],# to enable hermes on iOS, change `false` to `true` and then install pods:hermes_enabled=>false)target'ReactNativeBazelTests'doinherit!:complete# Pods for testingend# Enables Flipper.## Note that if you have use_frameworks! enabled, Flipper will not work and# you should disable the next line.use_flipper!()post_installdo |installer|
react_native_post_install(installer)endendplugin'cocoapods-bazel',{rules: {'apple_framework'=>{load: '@build_bazel_rules_ios//rules:framework.bzl',rule: 'apple_framework'}.freeze,'ios_application'=>{load: '@build_bazel_rules_ios//rules:app.bzl',rule: 'ios_application'}.freeze,'ios_unit_test'=>{load: '@build_bazel_rules_ios//rules:test.bzl',rule: 'ios_unit_test'}.freeze}.freeze,}
The podfile resides at ./ios/Podfile from the project's WORKSPACE. When I run pod install it generates the BUILD files everywhere, including the top-level node_modules/, but the labels in those are broken, e.g.:
ERROR: /Users/farcaller/src/rn-bazel/ReactNativeBazel/node_modules/react-native/Libraries/ActionSheetIOS/BUILD.bazel:3:16: //node_modules/react-native/Libraries/ActionSheetIOS:React-RCTActionSheet_objc: invalid label '//../node_modules/react-native:React-Core' in element 0 of attribute 'deps' in 'objc_library' rule: invalid package name '../node_modules/react-native': package name component contains only '.' characters
I took a basic react-native template for a ride, which has the following podfile:
The podfile resides at
./ios/Podfile
from the project's WORKSPACE. When I runpod install
it generates the BUILD files everywhere, including the top-levelnode_modules/
, but the labels in those are broken, e.g.:via
The text was updated successfully, but these errors were encountered: