-
Notifications
You must be signed in to change notification settings - Fork 117
Description
I see that the spm branch has been merged in, and the readme file says that SPM is supported. That's great news! Unfortunately, I am having a problem, related to the @IBDesignable code in the package.
I added the package and everything builds fine, but as soon as I add a SRRecorderControl to a storyboard I get an error as it tries to build for Interface Builder. The app itself runs and works, but every time IB tries to refresh the views the error shows up.
SRCommon.h:6:9: Cocoa is not available when building for tvOS Simulator. Consider using `#if !TARGET_OS_TV` to conditionally import this framework, first importing TargetConditionals.h if necessary.
The most confusing thing about this error message is that this is a macOS app, with no tvOS (or any iOS based) targets at all.
Naturally, adding a RecorderControl in code works great, and that's the approach I'm using for now.
I thought I'd mention it though, and see if anyone else has a better workaround than creating it in code. Let me know if you'd rather I open this as a separate issue, I'd be happy to.
Apologies, I should have included that! I'm running the latest stable, Version 12.2 (12B45b) on Big Sur.
I just made a new project, imported the package and placed a view on the view controller in the storyboard and reproduced it. Here's the project.
Originally posted by @daveverwer in #95 (comment)