corymsmith / react-native-icons

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

Installation instructions #5

Closed naartjie closed 9 years ago

naartjie commented 9 years ago

Hey @corymsmith

For installation, I had to do step 5. (Drag ReactNativeIconsResources.bundle into the Copy Bundle Resources build phase) for both my project and the ReactNativeIcons project. Could you verify that's correct? I can do a PR to update the Readme.

https://github.com/corymsmith/react-native-icons/blame/22dc49dd3cfa3e1fd4c0a6ec3f4c466a239fe5a5/README.md#L22

cuongvo commented 9 years ago

Had to do the same thing :+1:

Quanatee commented 9 years ago

Hi could you elaborate the installation process? My build keeps failing though I think followed the instructions (including dragging ReactNativeIconsResources.bundle into both projects) correctly.

corymsmith commented 9 years ago

@naartjie @cuongvo I think that may be the case, if you want to do a PR that would be great, just on the road driving most the day today. I'll have to sort out the best way to copy / include that bundle. Hoping once the react-extension-manager stuff is further along that the install can be just 1 step.

corymsmith commented 9 years ago

@rymdluo What errors are you getting?

crapthings commented 9 years ago

how to get step 6 work ?

Click ReactNativeIcons.xcodeproj in the project navigator and go the Build Settings tab. Look for User Search Paths and make sure it contains both $(SRCROOT)/../../react-native/React, make sure to set it as recursive.

cuongvo commented 9 years ago

@crapthings It's under "Search Paths" and the full name is "User Header Search Paths". Double clicking on that after entering it will display a popup to set the search path recursive.

dmnkgrc commented 9 years ago

Hi, I get this error when building my project, I copied the bundle to both projects, but I don't know in which step did I do something wrong. error: /Users/dominikgar/Library/Developer/Xcode/DerivedData/Stimung-bthydlpfzlhetnewznudfqwlalie/Build/Products/Debug-iphonesimulator/ReactNativeIconsResources.bundle: No such file or directory

corymsmith commented 9 years ago

@dominikgar Can you try to drag ReactNativeIconsResources.bundle into the Copy Bundle Resources build phase of the ReactNativeIcons project as well?

dmnkgrc commented 9 years ago

@corymsmith I already tried that :(

corymsmith commented 9 years ago

@dominikgar That should fix it, maybe retry the install process from the beginning?

crapthings commented 9 years ago

CpResource /Users/monsterstep/Library/Developer/Xcode/DerivedData/test-cxozodmgdemszseiellbhltfivxm/Build/Products/Debug-iphonesimulator/ReactNativeIconsResources.bundle /Users/monsterstep/Library/Developer/Xcode/DerivedData/test-cxozodmgdemszseiellbhltfivxm/Build/Products/Debug-iphonesimulator/test.app/ReactNativeIconsResources.bundle cd /Volumes/Data/dev/test export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/monsterstep/Library/Developer/Xcode/DerivedData/test-cxozodmgdemszseiellbhltfivxm/Build/Products/Debug-iphonesimulator/ReactNativeIconsResources.bundle /Users/monsterstep/Library/Developer/Xcode/DerivedData/test-cxozodmgdemszseiellbhltfivxm/Build/Products/Debug-iphonesimulator/test.app

error: /Users/monsterstep/Library/Developer/Xcode/DerivedData/test-cxozodmgdemszseiellbhltfivxm/Build/Products/Debug-iphonesimulator/ReactNativeIconsResources.bundle: No such file or directory

Get these error after compile.

corymsmith commented 9 years ago

@crapthings This is usually fixed by: Also dragging ReactNativeIconsResources.bundle into the Copy Bundle Resources build phase of the ReactNativeIcons project as well. I've updated the Readme to reflect that today

jbhatab commented 9 years ago

I'm not even getting the bundle to appear under projects? Where is the bundle?

naartjie commented 9 years ago

Hi @jbhatab, mine is here, under ReactNativeIconx.xcodeproj / Products screen shot 2015-04-14 at 14 47 54

jbhatab commented 9 years ago

Ok I see where it ended up getting added, but I'm not getting the right way to add things.

I right clicked on libraries and clicked add files to 'project' but it won't let me add the xcodeproject. It shows up as unselectable. So I just added it in another place and dragged it down. But then when I add the resources to the main project from the react native icons products section it doesnt work.

Is there a right and wrong way to import libraries?

corymsmith commented 9 years ago

I just updated this module to remove the .bundle requirement. Instead you include the font files you use. I've published 0.0.2 to NPM and also updated the install instructions.

jbhatab commented 9 years ago

Still so many questions and not working. I'm just going to keep going at this and I think it's really my lack of xCode knowledge preventing me from getting this working.

Thanks for the update!

corymsmith commented 9 years ago

I'm in the Slack group (Smixx) if you have specific questions :)