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

invalid method (createAttributedString) passed to UIModule #25

Closed
oakleaf opened this issue Sep 22, 2015 · 4 comments
Closed

invalid method (createAttributedString) passed to UIModule #25

oakleaf opened this issue Sep 22, 2015 · 4 comments

Comments

@oakleaf
Copy link

oakleaf commented Sep 22, 2015

Hello, I use Ti SDK 5.0 with iOS9 & html2as v.1.3.2

In the simulator everything works perfect, but on the device, im getting the red Application error that says:

"invalid method (createAttributedString) passed to UIModule at nl.fokkezb.html2as.js (line 1)"

@FokkeZB
Copy link
Collaborator

FokkeZB commented Sep 23, 2015

Could you do me a favour and log Ti.version from in that same app to see what the value is?

https://github.com/FokkeZB/ti-html2as/blob/master/index.js#L4

@oakleaf
Copy link
Author

oakleaf commented Sep 23, 2015

Hey ofcourse!

Ti.version == 5.0.0

@FokkeZB
Copy link
Collaborator

FokkeZB commented Sep 23, 2015

What is puzzling me is that you shouldn't be able to use packaged CommonJS modules with 5.0.0.GA anyway because of https://jira.appcelerator.org/browse/TIMOB-19545. Or did build and drop in just the JS file?

Anyway, that's what I did to trace your bug and the problem was that because I used a reference to either Ti.UI or Ti.UI.iOS Titanium didn't include the class in device builds. I'll push a fix soon.

@oakleaf
Copy link
Author

oakleaf commented Sep 23, 2015

Aha well that sounds reasonable. Yes I just dropped the JS file. Thanks!

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