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