About Cmake and iOS

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

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!

1 Like

@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

CMake will now link frameworks on iOS using -framework:

4 Likes