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
This commit is contained in:
committed by
Facebook Github Bot
parent
db6edb9eee
commit
d99635c85e
@@ -261,6 +261,21 @@ On the first run of `pod install`, `FB_SONARKIT_ENABLED=1` may not be added in t
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
### 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
|
Install the dependencies by running `pod install`. You can now import and initialize Flipper in your
|
||||||
AppDelegate.
|
AppDelegate.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user