Commit 46e385c
Fix Build Warnings for SPM with Xcode 12.5 Beta 2 (#1661)
Summary:
Pull Request resolved: #1661
Swift Package Manager (SPM) by convention will treat any files in the `include` directory of a target as public. Therefore they need to be present in the umbrella header. Typically this is the header with the target name, ex: `FBSDKCoreKit.h`.
For the target `FBSDKCoreKit_Basics` this means removing the internal header `FBSDKUserDataStore+Internal.h` since internal headers should not go in the `include` directory. Some internal methods are used by the meta indexer class but these were already declared in a private extension. Long term we will want to make these methods public but for now it makes sense to avoid adding them to the public interface.
For the target `FBSDKCoreKit` we have two types that are only compiled for tvOS. Since we already have them compilation-gated inline, it is not necessary to exclude them from compilation in the umbrella header. It would be better to do this but it is not strictly necessary and this fixes the warning. The part I really don't like about this fix is that it forces us to make those headers public in the Xcode project for targets that they really shouldn't be public for.
Reviewed By: jingping2015
Differential Revision: D26609865
fbshipit-source-id: 060a383b4f2d9c10564817a6cf944e69afc63d0e1 parent e7dcb3d commit 46e385c
4 files changed
Lines changed: 12 additions & 42 deletions
File tree
- FBSDKCoreKit
- FBSDKCoreKit.xcodeproj
- FBSDKCoreKit
- Sources/FBSDKCoreKit_Basics
- include
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1031 | 1035 | | |
1032 | 1036 | | |
1033 | 1037 | | |
| |||
2947 | 2951 | | |
2948 | 2952 | | |
2949 | 2953 | | |
| 2954 | + | |
2950 | 2955 | | |
2951 | 2956 | | |
2952 | 2957 | | |
| |||
3005 | 3010 | | |
3006 | 3011 | | |
3007 | 3012 | | |
| 3013 | + | |
3008 | 3014 | | |
3009 | 3015 | | |
3010 | 3016 | | |
| |||
3166 | 3172 | | |
3167 | 3173 | | |
3168 | 3174 | | |
| 3175 | + | |
3169 | 3176 | | |
3170 | 3177 | | |
| 3178 | + | |
3171 | 3179 | | |
3172 | 3180 | | |
3173 | 3181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
Lines changed: 0 additions & 35 deletions
This file was deleted.
0 commit comments