-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cocoa is not available when building for tvOS Simulator #133
Comments
@daveverwer Cannot try it yet (don't have that Xcode installed). Does the error affect rendering in IB only or you cannot compile the app as well? If that's the latter, can you navigate to the Reports panel and locate the associated log records? They should show what command Xcode tried to execute and raw output. |
Can you click the burger (rightmost) button of a failure record to unfold the command line that Xcode used? |
Apologies, I should have included that with the last comment! Here you go:
|
Perhaps the project or XIB is annotated to be multiplatform? The package itself is annotated to require macOS. |
I must admit I'm not sure how to annotate a Storyboard for multiple platforms, but my first thought was also that it was something in my project that was causing this. The screenshots and logs above are from a brand new Test project that was certainly created as macOS only. In terms of what platform the storyboard is for, here's what's in the File Inspector for it: |
Related issue on Apple's devforums: https://developer.apple.com/forums/thread/652552 (you may find other issues there with IB too). Could you report the but to Apple and share a link to this project? |
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.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)
The text was updated successfully, but these errors were encountered: