Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Errors when building for iOS #1

Closed
bjornbjorn opened this issue Mar 14, 2018 · 5 comments
Closed

Errors when building for iOS #1

bjornbjorn opened this issue Mar 14, 2018 · 5 comments

Comments

@bjornbjorn
Copy link

Hi, and thanks for this package! 👍

Just wanted to let you know that I tested the latest version (0.0.1+1) just now and got the following error when trying to build my project:

Launching lib/main.dart on iPhone 7 in debug mode...
Running Xcode clean...
Starting Xcode build...
Xcode build done
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
    
Xcode's output:
↳
    /.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.0.1+1/ios/Classes/FlutterStatusbarcolorPlugin.m:18:33: error: invalid operands to binary expression ('NSNumber *' and 'int')
        statusBar.backgroundColor = ANDROID_COLOR(color);
                                    ^~~~~~~~~~~~~~~~~~~~
    /.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.0.1+1/ios/Classes/FlutterStatusbarcolorPlugin.m:3:51: note: expanded from macro 'ANDROID_COLOR'
    #define ANDROID_COLOR(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:((c)&0xFF)/255.0  alpha:((c>>24)&0xFF)/255.0]
                                                     ~^ ~~
    1 error generated.
mchome pushed a commit that referenced this issue Mar 14, 2018
@mchome
Copy link
Owner

mchome commented Mar 14, 2018

Oh, i am sorry you have this problem. I have released new version and hope this can help :)

@bjornbjorn
Copy link
Author

Cheers, but still getting the same error, I think:

Launching lib/main.dart on iPhone 7 in debug mode...
Running pod install...
Running Xcode clean...
Starting Xcode build...
Xcode build done
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
    
Xcode's output:
↳
    /.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.0.2/ios/Classes/FlutterStatusbarcolorPlugin.m:18:33: error: invalid operands to binary expression ('NSNumber *' and 'int')
        statusBar.backgroundColor = ANDROID_COLOR(@([color intValue]));
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.0.2/ios/Classes/FlutterStatusbarcolorPlugin.m:3:51: note: expanded from macro 'ANDROID_COLOR'
    #define ANDROID_COLOR(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:((c)&0xFF)/255.0  alpha:((c>>24)&0xFF)/255.0]
                                                     ~^ ~~
    1 error generated.

@bjornbjorn
Copy link
Author

No rush on my part on this one, just wanted to report it :) Turns out I won't be needing this package in any case, as what I want to do is change the text colour (not the background colour) :-/

@mchome
Copy link
Owner

mchome commented Mar 14, 2018

OK, thank you.

@bjornbjorn
Copy link
Author

But let me know if you want me to test for you, it's no problem for me to pull the latest release and see if it works 👍

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