Hi,
It would be great if Juce would not use find_library for OSX/iOS framework
and instead use explicit -framework linker flag, e.g. target_link_libraries(foo PUBLIC "-framework CoreFoundation")
See
https://cmake.org/cmake/help/v3.19/manual/cmake-toolchains.7.html#cross-compiling-for-ios-tvos-or-watchos
This would allow better switch between device and simulator
Thanks !
2 Likes
For macOS, it is still recommended to use find_library. But for iOS, you are totally right!
kunz
November 16, 2020, 9:14am
4
@reuk Would be great to have this included in the dev branch. I wasn’t able to run my code with the simulator without that fix.
1 Like
reuk
November 16, 2020, 11:49am
5
CMake will now link frameworks on iOS using -framework:
committed 12:13PM - 12 Nov 20 UTC
We now link using `-framework Name` instead of `find_library` on iOS, as
suggested here:
https://cmake.org/cmake/help/v3.19/manual/cmake-toolchains.7.html#switching-between-device-and-simulator
4 Likes