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

XCode Error: type specifier missing, defaults to 'int' #147

Closed
omarst9 opened this issue May 9, 2024 · 1 comment
Closed

XCode Error: type specifier missing, defaults to 'int' #147

omarst9 opened this issue May 9, 2024 · 1 comment

Comments

@omarst9
Copy link

omarst9 commented May 9, 2024

Hi, when I build the app using version 3.0.3 or 3.1.0 in Xcode I’m seeing the following error:

(node_modules/react-native-esc-pos-printer/ios/ThePrinterWrapper.m:171:15)

  169 |     const disconnectResult = [self disconnectPrinter:target];
  170 |     if (disconnectResult == EPOS2_SUCCESS) {
> 171 |         const diallocResult = [self deallocPrinter:target];
      |               ^ type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]

has anyone come across this and how can I resolve it? I’m using Xcode 15.

Modifying the const to int on line 171 fixes it but i wanted to check if there is another solution without modifying the native code like that.

@tr3v3r
Copy link
Owner

tr3v3r commented May 9, 2024

Hi, when I build the app using version 3.0.3 or 3.1.0 in Xcode I’m seeing the following error:

(node_modules/react-native-esc-pos-printer/ios/ThePrinterWrapper.m:171:15)

  169 |     const disconnectResult = [self disconnectPrinter:target];
  170 |     if (disconnectResult == EPOS2_SUCCESS) {
> 171 |         const diallocResult = [self deallocPrinter:target];
      |               ^ type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]

has anyone come across this and how can I resolve it? I’m using Xcode 15.

This version is not supported anymore. Please migrate to 4.0.0-beta

#139

@tr3v3r tr3v3r closed this as completed May 9, 2024
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