I am receiving the following error while building the react-native app:
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:95:37: error: too many arguments to block call, expected 1, have 3
reject(@"font_load_failed", @"Font failed to load", error);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated
Note: I installed Vector-Icons using Cocoapods.
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
@oblador Seems like this is coming from here:
nalyzing dependencies
Fetching podspec for `RNVectorIcons` from `../node_modules/react-native-vector-icons`
Downloading dependencies
Using RNVectorIcons (4.2.0)
Using React (0.11.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 2 total pods installed.
[!] React has been deprecated
Hi did you figure out the problem. I have the same
Hey, you need to also install ReactNative with cocoapods if you integrate RNVI with it otherwise you'd be stuck with a duplicate and old version of RN :-)
Closing due to inactivity.
@oblador I have the same problem. I've created the RN project with "react-native init
@AdrianZghibarta and @Midnight-Coder, I have the same problem. Have you solved the problem?
@AdrianZghibarta @Midnight-Coder @oblador I have the same problem. How did you solve it?
@kostyaVyrodov @BerndWessels I've made the native iOS link without Pods, instead I've used the "drag and drop from node_modules to Library folder" method
The same with you guys!
use 'react-native init xx' to create project, and pod install .
I fixed by removing pod from Podfile and added font to xcode project as described in manually install option.
get the same problem.
i fixed it by this post: https://hk.saowen.com/a/6ae7c90b66feb20b5b61da3ca170a430f869d84ea7a3442c27cdcaf21c2724f2
Having the same problem here
Same with me. Facing problem to build React App due to Semantic Error. Installed the package using Cocoapods and manually, never able to build it
The same issue :(
@lorenc-tomasz , this maybe useful to you.
https://stackoverflow.com/questions/46883288/react-native-i-got-an-error-in-react-native-vector-icons-like-rejectfont-load/49713922#49713922?newreg=80f0adfc49da49d7bd0fa878d8bee6c3
I just made a hack-solution
change this
reject(@"font_load_failed", @"Font failed to load", error);
to
reject(error);
@Karbaz
I did do and resolved.
However, Is it correct way?
@shinriyo
No Its not the right way.
I used to get error like as mention below.
reject accept 1 argument but got 3
so this way i just pass 1 argument in reject function
This is just an hack for my solutions
But its not the actual solutions for this error
Most helpful comment
I fixed by removing pod from Podfile and added font to xcode project as described in manually install option.