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

Unable to build iOs #425

Open
rubberbird opened this issue Nov 3, 2019 · 22 comments
Open

Unable to build iOs #425

rubberbird opened this issue Nov 3, 2019 · 22 comments
Labels
ios-podspec Any issues related to the configuration of the podspec file.

Comments

@rubberbird
Copy link

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

@DaYuClo
Copy link

DaYuClo commented Nov 5, 2019

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

@ekuleshov
Copy link

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

@abjox
Copy link

abjox commented Nov 10, 2019

I have the same issue.

Flutter 1.10.15
XCode 11.2
Mac 10.14.5

@xxzj990
Copy link

xxzj990 commented Nov 12, 2019

me too.

Flutter 1.9.1+hotfix.5
Xcode 11.0
Mac 10.15

@andreasmpet
Copy link

+1

Flutter 1.9.1+hotfix.5
XCode 11.2.1
Mac 10.14.6

@ekuleshov
Copy link

Adding this as a reference, just in case

flutter/flutter#16049

@ZmanElete
Copy link

ZmanElete commented Nov 15, 2019

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

@furkanvatandas
Copy link

+1

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

@BrunoEleodoro
Copy link

Same here :/


4 warnings generated.
ios/Runner/GeneratedPluginRegistrant.m:6:9: 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

@BrunoEleodoro
Copy link

I did this guys , worked for me!

#406 (comment)

@ekuleshov
Copy link

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

@BrunoEleodoro
Copy link

BrunoEleodoro commented Nov 20, 2019

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

@xxzj990
Copy link

xxzj990 commented Nov 22, 2019

@ALL
worked for me,thanks @julienzarka:

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

@DaYuClo
Copy link

DaYuClo commented Nov 26, 2019

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

@pauldemarco
Copy link
Owner

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.

@pauldemarco pauldemarco added the ios-podspec Any issues related to the configuration of the podspec file. label Apr 2, 2020
@julienzarka
Copy link

julienzarka commented Apr 3, 2020 via email

@danfleck
Copy link

danfleck commented Apr 3, 2020

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

@danfleck
Copy link

danfleck commented Apr 6, 2020

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

@janniklind
Copy link

I just experienced the above mentioned problem with error:

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')

I noticed that it was looking in /Users/.pub-cache/...., but my .pub-cache folder has always been located in /Users/jlind/.pub-cache/....

I need to find a better fix, but I was lazy and tried to create a symlink:

sudo ln -s /Users/jlind/.pub-cache /Users/.pub-cache
It works now :)

@boskokg
Copy link

boskokg commented Mar 10, 2022

@janniklind use flutter_blue_plus

@Forsenen
Copy link

Forsenen commented Apr 9, 2022

I just experienced the above mentioned problem with error:

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')

I noticed that it was looking in /Users/.pub-cache/...., but my .pub-cache folder has always been located in /Users/jlind/.pub-cache/....

I need to find a better fix, but I was lazy and tried to create a symlink:

sudo ln -s /Users/jlind/.pub-cache /Users/.pub-cache It works now :)

can you explain more. I am having the same error

@boskokg
Copy link

boskokg commented Apr 9, 2022

go to flutter_blue_plus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios-podspec Any issues related to the configuration of the podspec file.
Projects
None yet
Development

No branches or pull requests