Cannot build watchOS extension

480 views Asked by At

I am adding WatchOS version to an already existing iOS App. I'm developing using Swift and using iCarousel, an Objective-C library, I added that manually by copying the .h and .m files in my project. Added .h file in my bridging header. The problem occurs while building.

enter image description here

The WatchKit Extension target creates an issue. It says

'QuartzCore/QuartzCore.h' file not found

And that's inside iCarousel.h file on top where QuartzCore is imported. Thanks in Advance. Any help will be appreciated.

1

There are 1 answers

2
Dávid Pásztor On

As the documentation of Core Animation shows (QuartzCore is Core Animation), it is not available for watchOS at the moment (watchOS 4), so you cannot use the iCarousel framework on watchOS, since it uses Core Animation, which is unavailable.