Skip to content
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

Storyboard warning on Xcode 12.1: "Ignoring user defined runtime attribute for key path "updateOnTouch"" #176

Open
AndrewBennet opened this issue Oct 17, 2020 · 3 comments

Comments

@AndrewBennet
Copy link

Please consider submitting the following information (if relevant):

  • Library setup method: Swift Package Manager.
  • Version of the library. 23.0
  • Xcode version. Example: 12.1 GM
  • OS version. Example: iOS 14.1

Hi there, I just updated my project to Xcode 12.1, and I've started to get a build warning from a usage of Cosmos which was previously fine:

BookDetails.storyboard: warning: IB Designables: Ignoring user defined runtime attribute for key path "updateOnTouch" on instance of "UIView". Hit an exception when attempting to set its value: [<UIView 0x7fb0cd5d31f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key updateOnTouch.

image

image

It reports that a build failed within the IBDesignable view in a storyboard, but when I actually build and run the app it works fine.

@evgenyneu
Copy link
Owner

evgenyneu commented Oct 19, 2020

Thanks for reporting the issue. I can see a similar one when I open the storyboard for the demo app in Xcode 12 in this project. It showed Cosmos view and had no errors at some point, but then it started showing these red exclamation marks for me with errors. I have no idea how to fix it sorry. I followed this solution, but it did not work for me.

stodyboard_designable_bug

@AndrewBennet
Copy link
Author

Weird! Maybe a bug in Xcode 12? If I find a solution I'll let you know.

@evgenyneu
Copy link
Owner

Thanks.

Maybe a bug in Xcode 12?

Yes, I would not be surprised. CosmosView class uses IBInspectable, IBDesignable attributes to allow changing star colors and sizes from the storyboard. This has never worked 100% reliably in the past.

The start show up for me when I create a new project in Xcode 12 though, but don't work in existing app created in older Xcode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants