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

fix dynamic framework loss in implementation_deps #2407

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xiemotongye
Copy link

Fix #2406

@brentleyjones
Copy link
Collaborator

Can you add a test for this? Should be able to write an archive_contents test.

@xiemotongye
Copy link
Author

Can you add a test for this? Should be able to write an archive_contents test.

OK.

I've added archive_contents_test for xcframework with private_deps(swift_library) & implementation_deps(objc_library).

Copy link
Member

@keith keith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks!

@keith
Copy link
Member

keith commented Feb 22, 2024

oop looks like the CI failures are valid

@xiemotongye xiemotongye force-pushed the fix/dy-fmk-loss-in-impl-deps branch 2 times, most recently from 39425ab to 287fcf8 Compare February 23, 2024 06:27
@xiemotongye
Copy link
Author

xiemotongye commented Feb 23, 2024

oop looks like the CI failures are valid

I've fix the format check failure.

It seems all test can be passed in bazel 7.x.

But I have no idea why it failed in last-green-bazel. I built the lastest bazel locally(commit: f76a27ce42537f8c76a0ea5646326a00f092b951). And run /path/to/bazel/bazel-bin/src/bazel test //test:ios_test_runner_ui_test. The test can be passed locally. And The CI failures seem to be unrelated to the changes:

ERROR: /private/var/tmp/_bazel_buildkite/5cf5fc3833ed92b42b3b811e115e98cc/sandbox/darwin-sandbox/8388/execroot/_main/_tmp/095e406d7a731ad16c0d7db1b90cfd56/workspace/ios/BUILD:54:12: TreeArtifact ios/PassingUiSwiftTest/test.outputs was not created
ERROR: /private/var/tmp/_bazel_buildkite/5cf5fc3833ed92b42b3b811e115e98cc/sandbox/darwin-sandbox/8388/execroot/_main/_tmp/095e406d7a731ad16c0d7db1b90cfd56/workspace/ios/BUILD:54:12: Testing //ios:PassingUiSwiftTest failed: not all outputs were created or valid

There are also some failures in bazel 6.x. Two of the new tests I added failed in bazel 6.x. These failures can be confirmed locally. It seems that the load command of the xcframework could not be found in the binary. There are thousands of commits between bazel 6.5 and bazel 7. I found several changes about linkopt, ObjcProvider. But I'm not sure which commit is the key. Do you have any idea about this?

@xiemotongye
Copy link
Author

It seems the tests can be passed in last-green-bazel.

I'm looking for why the tests failed in bazel 6.x. I think it may be a little difficult. It will be very pleasure if you have any ideas about this.

@keith
Copy link
Member

keith commented Feb 28, 2024

i wonder if there was an issue with the implementation_deps implementation in 6.x, since it was added mid-way through the cycle

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

Successfully merging this pull request may close these issues.

implementation_deps could cause an unexpected dynamic framework loss
3 participants