From d99635c85e5d4110ca01f34f9f080aab27bdd628 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Thu, 13 Feb 2020 08:47:37 -0800 Subject: [PATCH] Update getting started docs Summary: This diff updates the getting started docs for the pure Objective-C project Reviewed By: passy Differential Revision: D19878236 fbshipit-source-id: 3898f28214072e89c46f1bcd9443b61b8a639cab --- docs/getting-started.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index 3c029ad15..acd404047 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -261,6 +261,21 @@ On the first run of `pod install`, `FB_SONARKIT_ENABLED=1` may not be added in t +### For pure Objective-C projects + +For pure Objective-C projects, add the following things in your settings: + +1. `/usr/lib/swift` as the first entry of the `LD_RUNPATH_SEARCH_PATHS` +2. Add the following in `LIBRARY_SEARCH_PATHS` + +``` + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", +``` + +This is done to overcome a bug with Xcode 11 which fails to compile swift code when bitcode is enabled. Flipper transitively depends on YogaKit which is written in Swift. More about this issue can be found [here](https://twitter.com/krzyzanowskim/status/1151549874653081601?s=21) and [here](https://github.com/Carthage/Carthage/issues/2825). + + Install the dependencies by running `pod install`. You can now import and initialize Flipper in your AppDelegate.