Skip to content

.h header file can not be found using Xcode build #17237

Closed

Description

@jerrywell

Steps to Reproduce

  1. create project by intelliJ + Flutter plugin
  2. add path_provider: any into pubspec.yaml and invoke flutter packages get
  3. build with intelliJ with the Simulator (works)
  4. open the Runner.xcworkspace in ios folder of this flutter project
  5. build this project will get following error
/Users/jerry/Downloads/test456/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'path_provider/PathProviderPlugin.h' file not found
  1. 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

Activity

  1. zoechi commented on Jul 26, 2018

    @zoechi
    Contributor

    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.

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jul 26, 2018
  3. jerrywell commented on Jul 29, 2018

    @jerrywell
    Author

    Thanks for reply. We are currently working on older version. Once some issues is fixed. I will try this issue again.

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jul 29, 2018
  5. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jul 29, 2018
  6. no-response commented on Aug 19, 2018

    @no-response

    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

  7. RayOkaah commented on Sep 17, 2018

    @RayOkaah

    Experiencing same issue 😢

  8. samueldeschamps commented on Nov 17, 2018

    @samueldeschamps

    I have the same issue here too! 😢

  9. Gabezor commented on Dec 16, 2018

    @Gabezor

    Same here, still hapenning

  10. jorg1piano commented on Feb 7, 2019

    @jorg1piano

    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".

  11. clairtonluz commented on Apr 26, 2019

    @clairtonluz

    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 --ios or flutter build --android it works fine too.

    But when I try to Archive through xcode Products > Archive it didn't work and throw this error:

    Lexical or Preprocessor Issue Group
    /Users/clairton.luz/projects/flutter/alunoonlineappflutter/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'connectivity/ConnectivityPlugin.h' file not found
    
    flutter doctor -v
    [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G5019, locale pt-BR)
        • Flutter version 1.2.1 at /Users/clairton.luz/development/flutter
        • Framework revision 8661d8aecd (2 months ago), 2019-02-14 19:19:53 -0800
        • Engine revision 3757390fa4
        • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        • Android SDK at /Users/clairton.luz/Library/Android/sdk
        • Android NDK location not configured (optional; useful for native profiling support)
        • Platform android-28, build-tools 28.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-1248-b01)
        • All Android licenses accepted.
    
    [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 10.1, Build version 10B61
        • ios-deploy 1.9.4
        • CocoaPods version 1.6.0
    
    [✓] Android Studio (version 3.3)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin version 32.0.1
        • Dart plugin version 182.5215
        • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    
    [✓] Connected device (1 available)
        • iPad de everton • 62dbf72abf395959faa0898fa980849d4a355f6d • ios • iOS 9.3.5
    
    • No issues found!
    
    
  12. amreniouinnovent commented on Jul 8, 2019

    @amreniouinnovent

    My solution
    #21989 (comment)

  13. github-actions commented on Aug 29, 2021

    @github-actions

    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 -v and a minimal reproduction of the issue.

  14. locked as resolved and limited conversation to collaborators on Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions