cmyr/RustPlayground

Building from source and libplayground.a can't be found

Closed this issue · 5 comments

I wasn't able to build from source out of the box.

For anyone with the same issue, the error was:
error: [...]/RustPlayground/playground-utils-ffi/target/libplayground.a: No such file or directory

I had to re-add the file in the Copy Files Phase in the Xcode project. I am guessing a pull request containing my changes to project.pbxproj wouldn't be very useful (and mine is not necessarily the best solution), but the operative change was changing path = "../playground-utils-ffi/target/libplayground.a"; to path = "../playground-utils-ffi/target/release/libplayground.a";

This is a fun project, thanks for making it!

cmyr commented

@jspencer I did have an issue here that was fixed in 93c2dd6; do you have that commit?

Yes, I'm up to date and have that commit.

It works if I add the copy that is in the "install" action, but missing from the "build" action. That is instead of the change I'd suggested above.

cp "${OUTDIR}/${RUST_CONFIGURATION}/${PRODUCT_NAME}" "${OUTDIR}/${PRODUCT_NAME}"

cmyr commented

huh, weird, I'll play around a bit more.

cmyr commented

@jspencer would you like to check and see if #7 resolves this for you?

Yes, that fixed it for me. Thanks