Skip to content

Commit

Permalink
Merge pull request #80 from gilesvangruisen/gvg-support-manual
Browse files Browse the repository at this point in the history
Support manual installation
  • Loading branch information
corymsmith authored Nov 19, 2016
2 parents db6d28a + 746a40a commit 4fb6023
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ If the rnpm installation goes off without a hitch, you can now skip to the **[Cr

#### Manually iOS Without CocoaPods support

Download the [Crashlytics
SDK](https://fabric.io/kits/ios/crashlytics/manual-install) and place the two
frameworks in a directory called `Crashlytics` in the `ios` directory. You may
want to add this directory to your `.gitignore` as they take up a decent amount
of space and will slow down Git.

You will also need to modify the Run Script Phase that you likely added to Build
Phases so that it points to the correct location for the Fabric framework. If
you placed the framework directly under `ios/Crashlytics` as specified above,t
the contents of the script will then be:

```
"$(SRCROOT)/Crashlytics/Fabric.framework/run" API_KEY API_SECRET
```

Then do the following:

- Open your project in Xcode
- Run ```open node_modules/react-native-fabric/ios```
- Drag `SMXCrashlytics.xcodeproj` into your `Libraries` group
Expand Down
4 changes: 4 additions & 0 deletions ios/SMXCrashlytics.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,13 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
"$(SRCROOT)/../../../ios/Crashlytics",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../../ios/Pods/Headers/Public/Crashlytics",
"$(SRCROOT)/../../../ios/Crashlytics/**",
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -255,11 +257,13 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
"$(SRCROOT)/../../../ios/Crashlytics",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../../ios/Pods/Headers/Public/Crashlytics",
"$(SRCROOT)/../../../ios/Crashlytics/**",
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down

0 comments on commit 4fb6023

Please sign in to comment.