adamwulf / ClippingBezier

ClippingBezier calculates intersection points, paths, and shapes between two UIBezierPaths
http://getlooseleaf.com/opensource/
MIT License
254 stars 34 forks source link

Fix Issue #31: xCode15 import of C++ module appears within extern C #32

Closed Litome closed 10 months ago

Litome commented 10 months ago

Apple has changed something in the C / C++ compiler settings when they release xCode 15.0.0 and now, when trying to build our app that uses ClippingBezier as a pod I get this error: "import of C++ module appears within extern "C" language linkage specification"

This seems to be a similar issue as reported here: https://stackoverflow.com/questions/77113501/xcode-15-compile-error-import-of-c-module-zlib-appears-within-extern-c-la

So I'm applying the suggested fix of doing the import earlier on, before and outside of the extern "C" { block.

adamwulf commented 10 months ago

thanks! 🎉