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

unableToBuildType(type: NSURL) #75

Open
wildthink opened this issue Sep 6, 2020 · 2 comments
Open

unableToBuildType(type: NSURL) #75

wildthink opened this issue Sep 6, 2020 · 2 comments

Comments

@wildthink
Copy link

wildthink commented Sep 6, 2020

The objCClassWrapper case is not supported in createInstance(...). Specifically, URL and NSURL were both tried.
Interestingly, it does work if the property is Optional.

(lldb) po kind
Runtime.Kind.objCClassWrapper
@wickwirew
Copy link
Owner

Taking a look now. As a temporary work around you should be able to make URL conform to DefaultConstructor, and you can tell it how to construct a default value for the object.

@wildthink
Copy link
Author

Hey @wickwirew
So far I've learned that URL is a little exceptional in that it doesn't like to be empty.
But I did experiment with the Factory in my own fork (https://github.com/wildthink/Runtime) that is working but I have not yet done a lot of testing on it. I'm not sure this is a good solution; the Swift Runtime system is still new to me.

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