Repository navigation
.h header file can not be found using Xcode build #17237
Copy link
Copy link
Closed
Labels
waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
Steps to Reproduce
- create project by intelliJ + Flutter plugin
- add
path_provider: anyinto pubspec.yaml and invokeflutter packages get - build with intelliJ with the Simulator (works)
- open the Runner.xcworkspace in
iosfolder of this flutter project - build this project will get following error
/Users/jerry/Downloads/test456/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'path_provider/PathProviderPlugin.h' file not found
- launch pod install and do step 5, doesn't work as well.
Logs
/Users/jerry/Downloads/test456/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'path_provider/PathProviderPlugin.h' file not found
Flutter Doctor
[✓] Flutter (Channel master, v0.3.6-pre.90, on Mac OS X 10.13.4 17E199, locale en-TW)
• Flutter version 0.3.6-pre.90 at /Users/jerry/Documents/project/flutter
• Framework revision 7f0876700a (6 hours ago), 2018-05-02 18:50:35 -0700
• Engine revision 2812ea3ed3
• Dart version 2.0.0-dev.50.0.flutter-0cc70c4a7c
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.3)
• Android SDK at /Users/jerry/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 26.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.5.0
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 24.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Community Edition (version 2018.1.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 24.0.2
• Dart plugin version 181.4668.60
[✓] Connected devices (3 available)
• SM G930F • ce01171121b67a1a02 • android-arm64 • Android 7.0 (API 24)
• Android SDK built for x86 • emulator-5556 • android-x86 • Android 8.0.0 (API 26) (emulator)
• iPhone X • 94158934-6313-4593-921E-D4437A7BBF71 • ios • iOS 11.2 (simulator)
• No issues found!
related issues:
#15335 (this issued is for flutter itself build and it's resolved)
#16036
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Activity
zoechi commentedon Jul 26, 2018
Sorry for the late response.
Is this still an issue with recent Flutter versions?
Creating a new Flutter project with the required dependencies and then copying the podfile to your existing project might be worth a try.
jerrywell commentedon Jul 29, 2018
Thanks for reply. We are currently working on older version. Once some issues is fixed. I will try this issue again.
no-response commentedon Aug 19, 2018
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
cc @Hixie
RayOkaah commentedon Sep 17, 2018
Experiencing same issue 😢
samueldeschamps commentedon Nov 17, 2018
I have the same issue here too! 😢
Gabezor commentedon Dec 16, 2018
Same here, still hapenning
jorg1piano commentedon Feb 7, 2019
Having the same issue with the header files not being found...
When running flutter run it runs the app on my iphone. But if I open xCode and try to archive it or try to build it the build fails with a "Lexical or Preprocessor Issue".
zoechi commentedon Feb 8, 2019
Please check
clairtonluz commentedon Apr 26, 2019
I have same issue.
When I run my Flutter app in Android Device, Android Simulator, iOS device and iOS simulator all works fine.
When I run
flutter build --iosorflutter build --androidit works fine too.But when I try to Archive through xcode
Products > Archiveit didn't work and throw this error:amreniouinnovent commentedon Jul 8, 2019
My solution
#21989 (comment)
flutter-team-archive/engine@2d42c74...d7ad50c
flutter-team-archive/engine@2d42c74...d7ad50c
github-actions commentedon Aug 29, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.