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

Plugin does not compile in Xcode Version 9.2 (9C40b) #34

Closed
arcadius opened this issue Jun 19, 2018 · 8 comments
Closed

Plugin does not compile in Xcode Version 9.2 (9C40b) #34

arcadius opened this issue Jun 19, 2018 · 8 comments

Comments

@arcadius
Copy link

First of all, thank you very much @Ayiga and others for the great work on the original iOS plugin.

I have installed this plugin and it won't compile on Xcode Version 9.2 as it keeps complaining about APPingModule.h

Please see screenshot.

Is there any special config or setting that I need?

Many thanks.

screenshot

@VictorCoding
Copy link

VictorCoding commented Jun 19, 2018

I had those compile errors as well, just comment them out. After you comment out those lines you'll get more compile errors, just keep commenting them out until it works. I ended up forking that branch so that I didn't have to do that everytime. I know it's not the best thing to do but I needed to get it up and running.

@arcadius
Copy link
Author

Thanks @VictorCoding for the tip :-)

@gordol
Copy link
Owner

gordol commented Jun 19, 2018

After you comment out those lines you'll get more compile errors, just keep commenting them out until it works.

cringe

I'm sorry all... I have not had time to maintain this thing lately... and I haven't even attempted to build or test the iOS fork, just trusted the community.

I'm moving soon, but I did find my label printer, and my old iPad, so I should be able to dust this thing off soon, in the coming month or so.

@rhohn94
Copy link

rhohn94 commented Jul 29, 2018

I can't get the plugin to compile, either. I get the same errors as arcadius. I can either comment them out or replace them with __Check_Compile_Time(), which also seems to work. But, after that, I get errors like this:

screen shot 2018-07-29 at 8 09 54 am

It looks like I'm missing a library or something, but I have no experience with Objective C or Xcode, so I'm at a total loss here. I have confirmed that I only get these errors when I build with this plugin. If I remove it, the build works perfectly fine. I've tried a few of the different branches that have iOS support and they all yield the same errors.

@arcadius
Copy link
Author

Hi @rhohn94
The compilation issues among others are fixed in pull request
#35
You can install that fix by following instructions in the top comment.
Thanks

@rhohn94
Copy link

rhohn94 commented Jul 29, 2018

@arcadius, thanks for the reply -- I'm trying with your fork now, but still get the Mach-O Linker error. I no longer get the check_compile_time errors, though. I am using Xcode version 9.4.1, if that's any help.

@arcadius
Copy link
Author

@rhohn94 ... possibly uninstall the old plugin that does not compile... and make sure it's all gone before installing the new one.
After un-installing the old one, you may need to remove the ios platform and re-add it,
Then make sure it all compile and can run before you install the one from the pull request with:

cordova plugin add https://github.com/MenelicSoftware/cordova-plugin-brother-label-printer#dev --save

@gordol
Copy link
Owner

gordol commented Oct 26, 2018

Indeed, with cordova/ionic you need to add/remove the platform after you make changes... at least, historically. Feel free to re-open this if y'all are still having issues.

@gordol gordol closed this as completed Oct 26, 2018
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

4 participants