-
-
Notifications
You must be signed in to change notification settings - Fork 592
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
Getting "Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib" error #399
Comments
I've also tried |
Hey @Nandiin, Thanks for filing an issue. I cloned your repo and saw the issue you were talking about. But I manually re-added the
I don't know how you've configured Xcode, but |
I may say the Xcode I'm using is almost under "default" configuration since I've just re-installed my OS X (with full disk erasing) and Xcode. I'd never changed the derived data location. Give the project structure like:
manually adding Nimble-iOS to the build phases of test target would result in
My understanding: Xcode found |
The path
I'm not sure what you mean by manually adding, could you break down the steps you did? When I add it through the steps I previously describe I get a path that looks like this: Also, what is the path of the built Nimble.framework product? You can see them from the build output, near the end of the build process for the framework: It seems like only the final framework was added linked to the project, which doesn't tell Xcode that one project depends on the result of another. |
By "manually adding", I mean the same steps you took. It's really odd, on my mac, the path in red rounded rectangle is I noted the steps I took in the README.md of the repo. I know that sometimes re-adding the Nimble.framework would change the reference directory and all things would work after then. But for me, it's somehow random. A project which is happy on my company's mac may fail after pulling it on my own mac at home, and re-adding Nimble.framework works sometimes. For now, I suppose there might be some asynchronous work happening at the build time and there is a chance that one may end up with |
It's obvious that this is not a Nimble issue so closing. |
What did you do?
I created a new workspace & a project then added Nimble as git submodule and subproject for the workspace. Then added Nimble.framework(Nimble-iOS) to Build Phases of test target. Afterwards I added some really simple code to use Nimble (
import Nimble
on the top andexpect(1 + 1) == 2
in the test method). Then I got error message whencommand + U
to run test.What did you expect to happen?
The test should run properly.
What actually happened instead?
Got error message below when trying to run test:
Environment
List the software versions you're using:
Xcode Default
Please also mention which package manager you used and its version. Delete the
other package managers in this list:
I used git submodule.
Project that demonstrates the issue
https://github.com/nandiin/NimbleIssue
Notes
I have tried this kinda "creating new project and adding Nimble via git submodule" steps at least seven or eight times on different macs, and the problem occurred every time. Sometimes removing Nimble.framework from Build Phases and re-adding it will temporarily fix the problem ( One thing I noticed is under some circumstance re-adding Nimble.framwork will make workspace settings to refer Nimble from some absolute path under DerivedData instead of relative path
../Vendor/Nimble/build/Debug-iphoneos/Nimble.framework
. But it happens somehow randomly and I failed to reproduce it again. And I consider that kind of absolute path referring as incorrect setting because it can't be shared via VCS).The text was updated successfully, but these errors were encountered: