corymsmith / react-native-icons

Quick and easy icons in React Native
MIT License
1.14k stars 141 forks source link

libReactNativeIcons.a file appears red in Xcode, file not being downloaded #126

Closed jonolock91 closed 8 years ago

jonolock91 commented 8 years ago

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?

corymsmith commented 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

jonolock91 commented 8 years ago

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.

corymsmith commented 8 years ago

@jonolock91 Don't choose any of those options when adding the font files and it should work.

jonolock91 commented 8 years ago

It seems like I have to select one of those options screen shot 2015-10-27 at 17 38 18 copy

corymsmith commented 8 years ago

@jonolock91 What are you selecting? A folder or the individual files?

jonolock91 commented 8 years ago

Under 'Copy bundle resources' I press the +, 'Add other...', Find the node module, under ReactNativeIcons libraries FontAwesomeKit, I choose: FontAwsome.otf and ionIcons.ttf

corymsmith commented 8 years ago

@jonolock91 Since you're not adding a folder that option doesn't apply so you just stuck with the default "Create Groups"

corymsmith commented 8 years ago

@jonolock91 Any luck?

jonolock91 commented 8 years ago

That worked thanks :) I can't understand why it didn't work before now, what I did differently, but thank you for your time!

corymsmith commented 8 years ago

Great to hear!