Skip to content

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

@jerrywell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for customer 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