Anonymous Maarten
Anonymous Maarten
Let's verify things first, are you extracing the 2 complete directories from the dmg into `/Library/Frameworks`? `SDL3.xcframework` and `share`? The `share` folder situation is annoying indeed. [I created that issue...
Looking at the actions output, it seems like we don't test running macos executables so the problem might appear there as well. Does doing `set_property(TARGET yourgame APPEND PROPERTY BUILD_RPATH "/Library/Frameworks/SDL3.xcframework/macos-arm64_x86_64")`...
> I didn't initially copy over the `share` directory (it was hidden in/behind the SDL logo as Finder displayed the contents to me), but I did install the required file...
I think it has everything to do with CMake's support for xcframworks not being complete. The project below should reproduce your issue, with these commands to reproduce: ``` cmake -S...
It would be nice if you could make my minimum project above working, and create a cmake issue for this. As I said before, the executable should work without setting...
We're trying to use the xcframework here, so it should be `set(SDL3_XCFRAMEWORK "/Library/Frameworks/SDL3.xcframework")`. Try doing `set_property(TARGET mygame_with_rpath APPEND PROPERTY BUILD_RPATH "${SDL3_XCFRAMEWORK}/macos-arm64_x86_64")`.
That's a good reproducer, I'd say. Thanks for investing time into this!
There's no need for that. I'm honestly not sure what's the appropriate solution for this. The xcframework can theoretically have a `macos-arm64` and a `macos-x86_64` subdirectory (instead of `macos-arm64_x86_64 `)....
@nbriggs Can you try the `SDL3-3.1.2.dmg` asset from the recent 3.1.2 release? I think we might need to use the frameworks inside the xcframework, and [unconditionally disable this `if`](https://github.com/libsdl-org/SDL/blob/ee7f61fd9a8187056607e175fc466c9621fa05e7/Xcode/SDL/pkg-support/resources/share/cmake/SDL3/sdl3-config.cmake#L92).
When building on the command line, you always need to add the runpath yourself. This is also required on Linux, and other unixes. The issue with CMake is that it...