Flutter_blue: Unable to build iOs

Created on 3 Nov 2019  Â·  18Comments  Â·  Source: pauldemarco/flutter_blue

flutter_blue-0.6.3+1/

fatal error: 'flutter_blue/FlutterBluePlugin.h' file not found #import <flutter_blue/FlutterBluePlugin.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. note: Using new build systemnote: Planning buildnote: Constructing build description

Ran flutter clean, flutter build. Same issue. Used to work on 6.1

ios-podspec

Most helpful comment

I ran into this issue after updating cocoapods to 1.8.4, I scaled it back to 1.8.0 and got the same error then jumped back to 1.7.5 and it compiled fine again. I want to emphasize I jumped versions, I did not hit every one in between 1.8.0 and 1.7.5

Downgrading cocoapods to 1.7.5 fixes my problem. Thank you.

mac 10.15.1
flutter_blue: ^0.6.0+3
Dart 2.7.0
Flutter 1.12.13
Xcode 11.2.1

All 18 comments

I am getting the same error and is unable to run or build iOS since updating to mac 10.15.
I have tried 0.6.1, 0.6.2, 0.6.3, and 0.6.3+1 without success.

Flutter 1.9.0
XCode 11.2
Mac 10.15

Same issue here, but I'm on osx 10.13.6 and xcode 10.1. Any advice?

I have the same issue.

Flutter 1.10.15
XCode 11.2
Mac 10.14.5

me too.

Flutter 1.9.1+hotfix.5
Xcode 11.0
Mac 10.15

+1

Flutter 1.9.1+hotfix.5
XCode 11.2.1
Mac 10.14.6

Adding this as a reference, just in case

https://github.com/flutter/flutter/issues/16049

I ran into this issue after updating cocoapods to 1.8.4, I scaled it back to 1.8.0 and got the same error then jumped back to 1.7.5 and it compiled fine again. I want to emphasize I jumped versions, I did not hit every one in between 1.8.0 and 1.7.5

+1

fatal error: 'flutter_blue/FlutterBluePlugin.h' file not found #import <flutter_blue/FlutterBluePlugin.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.

Same here :/

↳
4 warnings generated.
ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'flutter_blue/FlutterBluePlugin.h' file not found
#import
^~~~~~~~~~
1 error generated.
note: Using new build systemnote: Planning buildnote: Constructing build description

I did this guys , worked for me!

https://github.com/pauldemarco/flutter_blue/issues/406#issuecomment-544530920

That only works if you not using other swift-based plugins in your app. With swift plugins you cant remove that option.

Oh sorry @ekuleshov , I didn't notice that... let's wait for other solutions.

@all
worked for me,thanks @julienzarka:

flutter_blue:
git:
url: https://github.com/julienzarka/flutter_blue.git

I ran into this issue after updating cocoapods to 1.8.4, I scaled it back to 1.8.0 and got the same error then jumped back to 1.7.5 and it compiled fine again. I want to emphasize I jumped versions, I did not hit every one in between 1.8.0 and 1.7.5

Downgrading cocoapods to 1.7.5 fixes my problem. Thank you.

mac 10.15.1
flutter_blue: ^0.6.0+3
Dart 2.7.0
Flutter 1.12.13
Xcode 11.2.1

Hi all,

I committed a change yesterday that attempts to fix this problem. Please test the master branch of flutter blue and let me know your results.

Thanks.

Hi Paul,

it works for me ! Thanks for the hard work.

Kind regards,

On Thu, Apr 2, 2020 at 10:27 AM Paul DeMarco notifications@github.com
wrote:

Hi all,

I committed a change yesterday that attempts to fix this problem. Please
test the master branch of flutter blue and let me know your results.

Thanks.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pauldemarco/flutter_blue/issues/425#issuecomment-607699362,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHOBYQ546YCZKMMG3CLRUDRKREABANCNFSM4JIMWL6A
.

--
julien

I still see the problem. I updated my podspec.yaml to:
flutter_blue: ^0.7.0

Then upgraded the plugins. Did a "flutter clean"

When I build IOS I still get an error on flutter_blue:

File not found: #import "gen/Flutterblue.pbobjc.h"

I attached an XCode screenshot if it helps.
ErrorScreenShot

Tested the new version (0.7.1) and it works now building for iOS using Android Studio. So, I'm good. However it does not build using XCode. The error I get (only in XCode) is:

error: open /Users/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1/ios/gen/Flutterblue.pbobjc.h: No such file or directory (in target 'flutter_blue' from project 'Pods')
It seems like it doesn't find the username when building in XCode for some reason. Full error in screenshot attached.

Thanks for all your work on this Paul! If this is a different issue and should be opened in its own issue, let me know!

Error2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fleximex picture Fleximex  Â·  5Comments

a-v-ebrahimi picture a-v-ebrahimi  Â·  4Comments

pauldemarco picture pauldemarco  Â·  3Comments

ekuleshov picture ekuleshov  Â·  4Comments

diso73 picture diso73  Â·  5Comments