-
Notifications
You must be signed in to change notification settings - Fork 52
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
iOS doesn't seem to copy over the dylib properly? #117
Comments
@davemackintosh do you get an error in the lines of:
If so I'm having the same issue 😞 |
The particular error I was getting escapes me but it was an error todo with the lib that cargo builds not being where the Xcode project expects it to be. Yours sounds like a linker error which is likely a missing package on your system? |
the package that's missing is the name of the project prefixed with |
-l is a linker argument which combines symbols from multiple output files into one binary file. Sounds like your build is failing whereas my build appears to work but the actual library built isn’t where Xcode is told it is |
ah ok just that my |
I've tried each example but I always seem to get the same error on running.
I get "Library not loaded .dylib`
I can see that the
libname.a
andlibname.dyld
are built and where they should be but when Icargo apple open
thelibname.a
file is red in the file explorer and running errors about the library not being loaded.I've manually added both to the project and tried to re-run and get the same no matter what I try.
On a side note, the template appears to be wrong as well. Defaulting to a deployment target of iOS 9 which also needs changing.
The text was updated successfully, but these errors were encountered: