Closed jonolock91 closed 8 years ago
It should still build when you build
On Tue, Oct 27, 2015 at 6:57 AM, Jonathan Lockley notifications@github.com wrote:
Even if I download the react-native-icons package via npm or via the zip file option, whenever I add the xcodeproj file under my Xcode libraries folder the libReactNativeIcons.a file appears red, indicating that it is missing. I have tried re-installing, updating the node package but with no success, any ideas please?
Reply to this email directly or view it on GitHub: https://github.com/corymsmith/react-native-icons/issues/126
Just tried adding libReactNativeIcons.a to my Link binary with libraries, and it does build, I didn't think it did sorry. How would I add the icons to my Copy build resources now, my app crashes once it loads any page which has an icon on (which is expected). When I add the icon font files to Copy build resources, which option should I choose: 'Copy items if needed', 'Create groups', 'Create folder references'. I left it as default before and I think this was the stage where it just wouldn't build anymore.
@jonolock91 Don't choose any of those options when adding the font files and it should work.
It seems like I have to select one of those options
@jonolock91 What are you selecting? A folder or the individual files?
Under 'Copy bundle resources' I press the +, 'Add other...', Find the node module, under ReactNativeIcons libraries FontAwesomeKit, I choose: FontAwsome.otf and ionIcons.ttf
@jonolock91 Since you're not adding a folder that option doesn't apply so you just stuck with the default "Create Groups"
@jonolock91 Any luck?
That worked thanks :) I can't understand why it didn't work before now, what I did differently, but thank you for your time!
Great to hear!
Even if I download the react-native-icons package via npm or via the zip file option, whenever I add the xcodeproj file under my Xcode libraries folder the libReactNativeIcons.a file appears red, indicating that it is missing. I have tried re-installing, updating the node package but with no success, any ideas please?