From e3df5671be646722b565ae3af1c5ada1aeb000ca Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Tue, 21 Aug 2018 10:50:26 -0600 Subject: [PATCH] Update Readme for iOS manual install Add manual installation instructions for iOS as well as make sure that our `react-native link` command specifies the project we want to link. --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 47487aa..4c27752 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Install the package Link -`$ react-native link` +`$ react-native link react-native-version-number` #### Manual installation @@ -68,6 +68,20 @@ public class MainApplication extends Application implements ReactApplication { } ``` +**iOS** + +In XCode, in the project navigator: + + Right click Libraries + Add Files to [your project's name] + Go to `node_modules/react-native-version-number` + Add the .xcodeproj file + +In XCode, in the project navigator, select your project. + + Add the `libRNVersionNumber.a` from the deviceinfo project to your project's Build Phases ➜ Link Binary With Libraries + Click .xcodeproj file you added before in the project navigator and go the Build Settings tab. Make sure All is toggled on (instead of Basic). + Add header search path: `$(SRCROOT)/../node_modules/react-native-version-number/ios` ## Usage ```javascript