Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

print() only being overridden in AppDelegate #12

Closed
jonchui opened this issue Mar 6, 2017 · 3 comments
Closed

print() only being overridden in AppDelegate #12

jonchui opened this issue Mar 6, 2017 · 3 comments

Comments

@jonchui
Copy link

jonchui commented Mar 6, 2017

For some reason print in other classes than AppDelegate is not getting overridden?

@remirobert
Copy link
Owner

Yes that's normal and, because of Swift, you need to import Dotzu on your files to get the print overridden. Sorry for that.

import Dotzu

Maybe the solution would be to add a definition in objective-c file and add to bridging header. So you won't have to import Dotzu each time.
You have a Objective-c pod if you want to try.

@remirobert
Copy link
Owner

Reopen if you still have the issue.

@jonchui
Copy link
Author

jonchui commented Jan 8, 2018 via email

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

No branches or pull requests

2 participants