-
Notifications
You must be signed in to change notification settings - Fork 84
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
objc: fix lib rule to include necessary header #230
Comments
Co-authored-by: Keith Smiley keithbsmiley@gmail.com Signed-off-by: Mike Schore mike.schore@gmail.com Description: We've decided to implement our public and platform-specific library layer primarily in Swift on iOS. Migrating to this has some repercussions for the build and for the time-being will require custom Bazel rules to compose the distributable static framework. This PR migrates the code to swift and introduces the build rules required. Note: this PR breaks objective-c. This is known and an issue has been filed #230. Risk Level: Medium - moves pieces of the library to swift, and introduces new build rules. Testing: CI Signed-off-by: Mike Schore <mike.schore@gmail.com>
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
I've opened a couple related issues, bazelbuild/rules_swift#291 and bazelbuild/rules_apple#557. Neither of these are blocking this issue, but they'd be helpful. cc @rebello95 |
Thanks so much for your help with this @kastiglione. |
This updates our static framework rule to properly copy the `-Swift.h` header file from the bazel output directory into our final `Envoy.framework/Headers/Envoy-Swift.h`. There are a few workarounds here for issues that @kastiglione has been nice enough to file upstream: **bazelbuild/rules_swift#291 The code required to find and copy the `-Swift.h` header file could be simplified with this issue. **bazelbuild/rules_apple#557 From the Objective-C demo app, we also depend on an empty Swift library to force dependencies like `swiftFoundation` to link. Resolves #230 Signed-off-by: Michael Rebello <me@michaelrebello.com>
This updates our static framework rule to properly copy the `-Swift.h` header file from the bazel output directory into our final `Envoy.framework/Headers/Envoy-Swift.h`. There are a few workarounds here for issues that @kastiglione has been nice enough to file upstream: **bazelbuild/rules_swift#291 The code required to find and copy the `-Swift.h` header file could be simplified with this issue. **bazelbuild/rules_apple#557 From the Objective-C demo app, we also depend on an empty Swift library to force dependencies like `swiftFoundation` to link. Resolves envoyproxy/envoy-mobile#230 Signed-off-by: Michael Rebello <me@michaelrebello.com> Signed-off-by: JP Simard <jp@jpsim.com>
This updates our static framework rule to properly copy the `-Swift.h` header file from the bazel output directory into our final `Envoy.framework/Headers/Envoy-Swift.h`. There are a few workarounds here for issues that @kastiglione has been nice enough to file upstream: **bazelbuild/rules_swift#291 The code required to find and copy the `-Swift.h` header file could be simplified with this issue. **bazelbuild/rules_apple#557 From the Objective-C demo app, we also depend on an empty Swift library to force dependencies like `swiftFoundation` to link. Resolves envoyproxy/envoy-mobile#230 Signed-off-by: Michael Rebello <me@michaelrebello.com> Signed-off-by: JP Simard <jp@jpsim.com>
#188 migrated the library layer to swift. It needed a lot of complex bazel work to support the design we had adopted. In the way we broke the objective-c demo, as a necessary header is not included in the static framework.
@goaway understands the problem and will fix as expediently as possible.
The text was updated successfully, but these errors were encountered: