Commit 724d74e
Add BITCODE_GENERATION_MODE = bitcode for iOS builds (#1698)
Summary:
## Pull Request Details
Even though `-fembed-bitcode` is specified and the binaries have `__LLVM` segments for bitcode, Xcode fails when building an app with bitcode enabled.
Adding this option to iOS builds alongside the `-fembed-bitcode` flags eliminates this error and Xcode does not fail upon not finding bitcode in FBSDKLoginKit.framework.
See #1679.
Pull Request resolved: #1698
Test Plan:
Ran `scripts/run.sh release github static`, unzipped the built FBSDKLoginKit framework, manually copied the FBSDKLoginKit binary into the Pods folder of an app that depends on the FacebookSDK pod, built an app archive. Previously got an error saying,
> ld: bitcode bundle could not be generated because '/Pods/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(LoginManager.o)' was built without full bitcode.
After copying the newly built library binary in, this error went away (ran into other build errors but I believe they are not caused by this commit).
Reviewed By: dreamolight
Differential Revision: D27543490
Pulled By: joesus
fbshipit-source-id: cfc9363ee505d6ba8cb70f887d9caae886e693421 parent e231272 commit 724d74e
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
0 commit comments