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

The Name parameter of the Registrar attribute on the class contains an invalid character: ' ' #6

Closed
andrius-k opened this issue Feb 14, 2017 · 2 comments

Comments

@andrius-k
Copy link

andrius-k commented Feb 14, 2017

When building for actual device I get this warning:

MyApp/iOS/MTOUCH: Warning MT4146: The Name parameter of the Registrar attribute on the class 'FloatLabeledEntry.FloatLabeledTextField' contains an invalid character: ' ' (0x20) (MT4146) (MyApp.iOS)

And build fails with this error:

MyApp/iOS/MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com (MT4109) (MyApp.iOS)

It builds and runs fine when targeting simulator.

It appears that changing Register attribute not to use spaces would solve the issue:
[Register ("FloatLabeledTextField"), DesignTimeVisible (true)]
public class FloatLabeledTextField : UITextField

@gshackles
Copy link
Owner

Crap, sorry about that! Must have gotten lost in some cleanup I was trying to do. I just published v1.1.1 that should take care of that for ya!

@andrius-k
Copy link
Author

v1.1.1 indeed fixed the issue. Thanks for quick response ;)

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