Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 6ea93dd

Browse files
author
Will Anderson
committed
Add screenshots to docs
1 parent e4b1e83 commit 6ea93dd

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,33 @@ npm install --save react-native-code-push
1212

1313
After installing the React Native CodePush plugin, open your project in Xcode. Open the `react-native-code-push` in Finder, and drag the `CodePush.xcodeproj` into the Libraries folder of Xcode.
1414

15+
![Add CodePush to project](https://cloud.githubusercontent.com/assets/516559/10322414/7688748e-6c32-11e5-83c1-00d3e6758df4.png)
16+
17+
1518
In Xcode, click on your project, and select the "Build Phases" tab of your project configuration. Drag libCodePush.a from `Libraries/CodePush.xcodeproj/Products` into the "Link Binary With Libraries" secton of your project's "Build Phases" configuration.
1619

17-
Finally, edit your project's `AppDelegate.m`. Find the following code:
20+
![Link CodePush during build](https://cloud.githubusercontent.com/assets/516559/10322221/a75ea066-6c31-11e5-9d88-ff6f6a4d6968.png)
21+
22+
Under the "Build Settings" tab of your project configuration, find the "Header Search Paths" section and edit the value.
23+
Add a new value, `$(SRCROOT)/../node_modules/react-native-code-push` and select "recursive" in the dropdown.
24+
25+
![Add CodePush library reference](https://cloud.githubusercontent.com/assets/516559/10322038/b8157962-6c30-11e5-9264-494d65fd2626.png)
26+
27+
Finally, edit your project's `AppDelegate.m`.
28+
29+
At the top of the file, add the following line to import the CodePush headers.
30+
31+
```
32+
#import "CodePush.h"
33+
```
34+
35+
Then, find the following code:
1836

1937
```
2038
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
2139
```
2240

23-
Replace it with the following:
41+
Replace it with this:
2442

2543
```
2644
jsCodeLocation = [CodePush getBundleUrl];

0 commit comments

Comments
 (0)