question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Font failed to load, Too many arguments to block call, expected 1, have 3

See original GitHub issue

I am getting this error Font failed to load, Too many arguments to block call, expected 1, have 3 inside RNVectorIconsManager However, this error did not come right after I installed the font. I installed it using react-native link and make sure that Fonts exists in Info.plist. This is my pod file for iOS part.

platform :ios, '9.0'

target 'JobMe' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for JobMe
  pod 'Firebase/Core'
  pod 'Firebase/Database'
  pod 'Firebase/Storage'
  pod 'Firebase/Auth'
  pod 'FBSDKCoreKit'
  pod 'FBSDKShareKit'
  pod 'FBSDKLoginKit'

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

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

end

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
obladorcommented, Jul 27, 2018

Yep you’re right @panteparak, this is the fix and is mentioned in README. Closing 👍

1reaction
panteparakcommented, Jul 15, 2018

this fix works for me and my team

# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

target 'JobMe' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  pod 'React', :path => '../node_modules/react-native', :subspecs => [
      'Core',
      'CxxBridge', # Include this for RN >= 0.47
      'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
      'RCTText',
      'RCTNetwork',
      'RCTWebSocket', # Needed for debugging
      # Add any other subspecs you want to use in your project
    ]
  # Explicitly include Yoga if you are using RN >= 0.42.0
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  # Pods for JobMe
  
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
  'Core',
  'CxxBridge', # Include this for RN >= 0.47
  'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
  'RCTText',
  'RCTNetwork',
  'RCTWebSocket', # Needed for debugging
  'RCTAnimation', # Needed for FlatList and animations running on native UI thread
  # Add any other subspecs you want to use in your project
  ]
  # Explicitly include Yoga if you are using RN >= 0.42.0
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  
  # Third party deps podspec link
  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 'Firebase/Core'
  pod 'Firebase/Database'
  pod 'Firebase/Storage'
  pod 'Firebase/Auth'
  pod 'FBSDKCoreKit'
  pod 'FBSDKShareKit'
  pod 'FBSDKLoginKit'

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

  pod 'ReactNativeSearchBar', :path => '../node_modules/react-native-search-bar'

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

end

Part of the Podfile is from this link

Read more comments on GitHub >

github_iconTop Results From Across the Web

Too many arguments to method call, expected 1, have 2? ...
I have this error 'Too many arguments to method call, expected 1, have 2?' But on the previous arrays that I used this...
Read more >
Too many arguments to function call, expected 0, have 3
Any idea why such error when Apple Silicon enabled? Too many arguments to function call, expected 0, have 3. The error is on...
Read more >
[Solved]-too many arguments to method call expected 1 have 3
First make a proper string of your URL and then encode it and then finally make it a NSURL . Make sure your...
Read more >
Why do I get the error message, 'Too Many Input/Output ...
Solution: make sure the arguments listed in the function signature in your class file matches the arguments in the function you defined in...
Read more >
TSO/E terminal messages (IRX…)
Reason codes displayed in REXX messages are represented in decimal. ... Too many parameters were passed for message message_id.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found