Skip to content

Commit 6b82e25

Browse files
INTENG-21518 - SPM + Hybrid app compilation issue. (#1479)
* Workaround - Fixed podspec and framework structure for SPM umbrella header issue for hybrid apps. Removing exclusion of some header files from podspec and framework structure because these headers are part of umbrella header of BranchSDK. * Updated GHA - it was using deprecated version of `actions/upload-artifact: v3' --------- Co-authored-by: nsingh-branch <[email protected]>
1 parent de7673b commit 6b82e25

File tree

5 files changed

+3
-16
lines changed

5 files changed

+3
-16
lines changed

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Run unit tests
3737
run: bundle exec fastlane unit_tests
3838
- name: Upload test results
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
if: always() # even if tests fail
4141
with:
4242
name: test-results

BranchSDK.podspec

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ Use the Branch SDK (branch.io) to create and power the links that point back to
2525
s.tvos.exclude_files = "Sources/BranchSDK/**/BNCContentDiscoveryManager.{h,m}",
2626
"Sources/BranchSDK/**/BNCUserAgentCollector.{h,m}",
2727
"Sources/BranchSDK/**/BNCSpotlightService.{h,m}",
28-
"Sources/BranchSDK/**/BranchActivityItemProvider.{h,m}",
29-
"Sources/BranchSDK/**/BranchCSSearchableItemAttributeSet.{h,m}",
30-
"Sources/BranchSDK/**/BranchShareLink.{h,m}",
31-
"Sources/BranchSDK/**/BranchPasteControl.{h,m}"
32-
3328
s.frameworks = 'CoreServices', 'SystemConfiguration'
3429
s.weak_framework = 'LinkPresentation'
3530
s.ios.frameworks = 'WebKit'

BranchSDK.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
5FCDD4B82B7AC6A200EAF29F /* BNCServerRequestQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AA2B7AC6A100EAF29F /* BNCServerRequestQueue.h */; settings = {ATTRIBUTES = (Public, ); }; };
251251
5FCDD4B92B7AC6A200EAF29F /* BranchPasteControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AB2B7AC6A100EAF29F /* BranchPasteControl.h */; settings = {ATTRIBUTES = (Public, ); }; };
252252
5FCDD4BA2B7AC6A200EAF29F /* BranchPasteControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AB2B7AC6A100EAF29F /* BranchPasteControl.h */; settings = {ATTRIBUTES = (Public, ); }; };
253-
5FCDD4BB2B7AC6A200EAF29F /* BranchPasteControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AB2B7AC6A100EAF29F /* BranchPasteControl.h */; };
253+
5FCDD4BB2B7AC6A200EAF29F /* BranchPasteControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AB2B7AC6A100EAF29F /* BranchPasteControl.h */; settings = {ATTRIBUTES = (Public, ); }; };
254254
5FCDD4BC2B7AC6A200EAF29F /* BranchUniversalObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AC2B7AC6A100EAF29F /* BranchUniversalObject.h */; settings = {ATTRIBUTES = (Public, ); }; };
255255
5FCDD4BD2B7AC6A200EAF29F /* BranchUniversalObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AC2B7AC6A100EAF29F /* BranchUniversalObject.h */; settings = {ATTRIBUTES = (Public, ); }; };
256256
5FCDD4BE2B7AC6A200EAF29F /* BranchUniversalObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FCDD3AC2B7AC6A100EAF29F /* BranchUniversalObject.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -1173,6 +1173,7 @@
11731173
isa = PBXHeadersBuildPhase;
11741174
buildActionMask = 2147483647;
11751175
files = (
1176+
5FCDD4BB2B7AC6A200EAF29F /* BranchPasteControl.h in Headers */,
11761177
5FCDD5302B7AC6A300EAF29F /* Branch+Validator.h in Headers */,
11771178
5FCDD4A62B7AC6A200EAF29F /* BNCCallbacks.h in Headers */,
11781179
5FCDD4942B7AC6A100EAF29F /* BranchLinkProperties.h in Headers */,
@@ -1239,7 +1240,6 @@
12391240
5FCDD51B2B7AC6A300EAF29F /* NSError+Branch.h in Headers */,
12401241
5FCDD5032B7AC6A300EAF29F /* BranchOpenRequest.h in Headers */,
12411242
5FCDD4F72B7AC6A200EAF29F /* BNCEventUtils.h in Headers */,
1242-
5FCDD4BB2B7AC6A200EAF29F /* BranchPasteControl.h in Headers */,
12431243
5FCDD5632B7AC6A300EAF29F /* BNCReachability.h in Headers */,
12441244
5FCDD50F2B7AC6A300EAF29F /* NSMutableDictionary+Branch.h in Headers */,
12451245
5FCDD4D92B7AC6A200EAF29F /* BNCAppleReceipt.h in Headers */,

Framework/BranchSDK.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,10 @@ FOUNDATION_EXPORT const unsigned char BranchSDKVersionString[];
3030

3131
#import <BranchSDK/BranchDeepLinkingController.h>
3232

33-
#if !TARGET_OS_TV
34-
// tvOS does not support these features
3533
#import <BranchSDK/BranchShareLink.h>
3634
#import <BranchSDK/BranchCSSearchableItemAttributeSet.h>
3735
#import <BranchSDK/BranchActivityItemProvider.h>
38-
3936
#import <BranchSDK/BranchPasteControl.h>
40-
#endif
4137

4238
// Used by Branch.h for debug and testing APIs. Need to move these.
4339
#import <BranchSDK/BNCInitSessionResponse.h>

Sources/BranchSDK/Public/BranchSDK.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,10 @@ FOUNDATION_EXPORT const unsigned char BranchSDKVersionString[];
3030
#import "BranchDeepLinkingController.h"
3131
#import "BranchLogger.h"
3232

33-
#if !TARGET_OS_TV
34-
// tvOS does not support these features
3533
#import "BranchShareLink.h"
3634
#import "BranchCSSearchableItemAttributeSet.h"
3735
#import "BranchActivityItemProvider.h"
38-
3936
#import "BranchPasteControl.h"
40-
#endif
4137

4238
// Used by Branch.h for debug and testing APIs. Need to move these.
4339
#import "BNCInitSessionResponse.h"

0 commit comments

Comments
 (0)