Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo not structured properly for Swift Package #1153

Closed
PatrickDanino opened this issue Oct 19, 2021 · 16 comments
Closed

Repo not structured properly for Swift Package #1153

PatrickDanino opened this issue Oct 19, 2021 · 16 comments

Comments

@PatrickDanino
Copy link

PatrickDanino commented Oct 19, 2021

Xcode is generating dozens of warnings about the Branch SDK when included via the SPM. These warnings cannot be turned off by default and are generating noise that hides other legitimate warnings.

Example of a warning when archiving:
Warning: Umbrella header for module 'Branch' does not include header 'BNCTuneUtility.h'`

SPM requires that the headers be split between two folders, one for public headers and the other for private headers. You can then specify the private folder as a headerSearchPath and add it to the exclude list in Package.swift. By default, public headers put in an include folder will be automatically picked up.

@wvdk
Copy link

wvdk commented Oct 19, 2021

@PatrickDanino I see they have a separate repo for SPM. Perhaps that one has fewer warnings (haven't tried it yet). https://github.com/BranchMetrics/ios-branch-sdk-spm

@PatrickDanino
Copy link
Author

Per the description, that repo is a mirror of this one (with some history removed). As such, both have the same issues described above.

@ismetanin
Copy link

We experienced the same issue and now we can't use Branch SDK with SPM
image

@sbaropeak
Copy link

We have the same problem. Those warnings become errors when GCC_TREAT_WARNINGS_AS_ERRORS is enabled. We had to disable it, at least now.
We are using the SPM specific repo (https://github.com/BranchMetrics/ios-branch-sdk-spm) with version 1.40.2

@echo-branch
Copy link
Contributor

We have this earmarked for end of quarter.

@jhk115
Copy link

jhk115 commented Jun 2, 2022

Hi @echo-branch is there an update on this issue?

@echo-branch
Copy link
Contributor

So it was in progress, but got shelved for other work. I'm picking it back up this next sprint.

@TaimoorSaeed
Copy link

+1

@shannoga
Copy link

@echo-branch Hi, any updates?

@echo-branch
Copy link
Contributor

It slipped yet again. This time due to dev illness and vacations. It is still the top item though.

@shannoga
Copy link

@echo-branch Hi, any chance for updates?
Thanks

@echo-branch
Copy link
Contributor

In progress. The layout refactor has cascading impact on our build, testing and documentation. So it's taking some time to get everything lined up.

@shannoga
Copy link

In progress. The layout refactor has cascading impact on our build, testing and documentation. So it's taking some time to get everything lined up.

Thanks for the update

@jhurray
Copy link

jhurray commented Sep 21, 2022

@echo-branch any update here? This was fine for Xcode 13.4 but we';re getting tons of warnings in Xcode 14

@echo-branch
Copy link
Contributor

echo-branch commented Sep 21, 2022

@jhurray
I suspect you had the type of warning ignored before, cause it's been an issue for almost a year now.

We're still chipping away at the problem internally, the fix will required renaming our SDK which means updating a lot of docs, build and testing. We also have dependencies such as RN, Unity etc to manage along with this. Our initial 1 or 2 sprint estimate was way off. I don't have a firm date, but it'll be a major release.

@echo-branch
Copy link
Contributor

This was shipped with 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants