-
Notifications
You must be signed in to change notification settings - Fork 275
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
Library not loaded: @rpath/libswiftFoundation.dylib when using Xcode 11.2.1, but works fine with Xcode 10.3 #684
Comments
Snapshot of the BUILD file for reference:
And the WORKSPACE:
|
Note that due to bazelbuild/rules_apple#684 this has only been confirmed to work with Xcode 10.3. Example invocation: ``` bazel test //... --apple_platform_type=ios --ios_minimum_os=10.0 --xcode_version=10.3 ```
Use a more recent commit, there were some changes needed for the swift library support. Per the quick setup, the repos aren't tagging directly any more, so you'll need to select a hash to use. |
Actually, what host os version are you on also, the swift runtime libraries got real complicated in those Xcode versions (as to when to bundle and where to bundle), so it could be some combination of things there also. |
macOS: 10.14.6 (18G2022) Xcode Version 11.2.1 (11B500) Will try using a later sha next week. |
I found b/142265780, which appears to be related to this issue. Connecting #495 to this thread, which may also be a relevant discussion to start up again. cl/280014348 appears to have fixed the issue internally, so I will send a patch to the public runner with the fix. |
Drafting up google/xctestrunner#13 for review. |
google/xctestrunner#13 turned out to be a particularly nuanced issue. I've updated its description to capture the nuance. |
Where does this end up, is the issue entirely in the runner? |
It was, yep, but the runner dependency will need to be updated once a release is cut in order to resolve this issue. |
Context
I am trying to add bazel 1.0 support to https://github.com/material-foundation/material-testing-ios. The support was added in the
bazel1
branch, which was reviewed in material-foundation/material-testing-ios#6.Notably, this library includes a
ios_unit_test_suite
target that depends on both anobjc_library
and aswift_library
. When theswift_library
dependency is removed, the tests pass on all Xcode versions.Repro steps
Clone the repo and the branch:
Then try to test with Xcode 11.2.1:
This fails, with the following output:
Output of one of the log files:
Then try to build with Xcode 10.3:
This succeeds, with the following output:
Environment
The text was updated successfully, but these errors were encountered: