Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Error when running pod install: Invalid attribute name

$
0
0

I am working with React Native (0.60.4) and cocoapods (1.7.5). When I cd into my ios folder and run pod install, I get the following error:

[!] Invalid `Podfile` file: [!] /Users/stephensmac_air/Documents/WeeklyTasks/node_modules/.bin/react-native config

Error: Invalid attribute name
Line: 36
Column: 18
Char: .
    at error (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/xmldoc/node_modules/sax/lib/sax.js:666:10)
    at strictFail (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/xmldoc/node_modules/sax/lib/sax.js:692:7)
    at SAXParser.write (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/xmldoc/node_modules/sax/lib/sax.js:1324:13)
    at new XmlDocument (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/xmldoc/lib/xmldoc.js:199:15)
    at readManifest (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/@react-native-community/cli-platform-android/build/config/readManifest.js:44:10)
    at Object.projectConfig (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/@react-native-community/cli-platform-android/build/config/index.js:60:46)
    at Object.get project [as project] (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/@react-native-community/cli/build/tools/config/index.js:134:65)
    at /Users/stephensmac_air/Documents/WeeklyTasks/node_modules/@react-native-community/cli/build/commands/config/config.js:8:452
    at Array.forEach (<anonymous>)
    at _objectSpread (/Users/stephensmac_air/Documents/WeeklyTasks/node_modules/@react-native-community/cli/build/commands/config/config.js:8:392)


My Podfile in my ios folder is the following:

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'WeeklyTasks' do
  # Pods for WeeklyTasks
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

  pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'

  target 'WeeklyTasksTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'WeeklyTasks-tvOS' do
  # Pods for WeeklyTasks-tvOS

  target 'WeeklyTasks-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Anyone know what this error is trying to say? Before this I was trying to implement push notifications and I needed to run pod install and this ended up happening. Seems like maybe there is a syntax problem in the Podfile that I'm not noticing? If someone can point me in the general direction of what this could potentially be, I'd greatly appreciate it. Thank you!


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>