{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/16036","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/16036/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/16036/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/16036/events","html_url":"https://github.com/flutter/flutter/issues/16036","id":309493996,"number":16036,"title":"\"Flutter/Flutter.h not found.\" on iOS.","user":{"login":"0916174","id":14292245,"avatar_url":"https://avatars1.githubusercontent.com/u/14292245?v=4","gravatar_id":"","url":"https://api.github.com/users/0916174","html_url":"https://github.com/0916174","followers_url":"https://api.github.com/users/0916174/followers","following_url":"https://api.github.com/users/0916174/following{/other_user}","gists_url":"https://api.github.com/users/0916174/gists{/gist_id}","starred_url":"https://api.github.com/users/0916174/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0916174/subscriptions","organizations_url":"https://api.github.com/users/0916174/orgs","repos_url":"https://api.github.com/users/0916174/repos","events_url":"https://api.github.com/users/0916174/events{/privacy}","received_events_url":"https://api.github.com/users/0916174/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-03-28T19:10:50Z","updated_at":"2018-03-28T20:53:16Z","closed_at":null,"author_association":"NONE","body":"## Steps to Reproduce\r\n\r\n## Preface:\r\nI'm on the flutter `master` channel and have run `upgrade` half an hour ago.\r\nI've reinstalled flutter and cocoapods completely before and tried the fixes provided in #15437, #15532 and all other issues on GitHub looking like the problem I have. _\r\n\r\n`flutter create --template=plugin -i swift health_stats`\r\n`cd health_stats/example`\r\n\r\n[health_stats.zip](https://github.com/flutter/flutter/files/1857340/health_stats.zip)\r\n\r\n## Logs\r\n\r\n_Run your application with `flutter run` and attach all the log output._\r\n```\r\nLaunching lib/main.dart on iPhone 6 in debug mode...\r\nRunning Xcode clean...                                       0,9s\r\nStarting Xcode build...\r\nXcode build done                                             1,1s\r\nFailed to build iOS app\r\nError output from Xcode build:\r\n↳\r\n    ** BUILD FAILED **\r\n\r\nXcode's output:\r\n↳\r\n    === BUILD TARGET health_stats OF PROJECT Pods WITH CONFIGURATION Debug ===\r\n    <module-includes>:1:9: note: in file included from <module-includes>:1:\r\n    #import \"Headers/health_stats-umbrella.h\"\r\n            ^\r\n    /Users/jeroen/Projects/_flutter_experiments/health_stats/example/ios/Pods/Target Support Files/health_stats/health_stats-umbrella.h:13:9: note: in file included from /Users/jeroen/Projects/_flutter_experiments/health_stats/example/ios/Pods/Target Support Files/health_stats/health_stats-umbrella.h:13:\r\n    #import \"HealthStatsPlugin.h\"\r\n            ^\r\n    /Users/jeroen/Projects/_flutter_experiments/health_stats/ios/Classes/HealthStatsPlugin.h:1:9: error: 'Flutter/Flutter.h' file not found\r\n    #import <Flutter/Flutter.h>\r\n            ^\r\n    <unknown>:0: error: could not build Objective-C module 'health_stats'\r\nCould not build the application for the simulator.\r\nError launching application on iPhone 6.\r\n```\r\n\r\n_Run `flutter analyze` and attach any output of that command also._\r\n```\r\nAnalyzing /Users/jeroen/Projects/_flutter_experiments/health_stats/example...\r\nNo issues found!\r\nRan in 5.7s\r\n```\r\n\r\n## Flutter Doctor\r\n\r\n_Paste the output of running `flutter doctor -v` here._\r\n```\r\n[✓] Flutter (Channel master, v0.2.5-pre.60, on Mac OS X 10.13.3 17D102, locale nl-NL)\r\n    • Flutter version 0.2.5-pre.60 at /Users/Jeroen/flutter\r\n    • Framework revision 31049a5a73 (64 minutes ago), 2018-03-28 10:58:48 -0700\r\n    • Engine revision dd6f46c485\r\n    • Dart version 2.0.0-dev.41.0.flutter-2f68e82526\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK 26.0.3)\r\n    • Android SDK at /Users/jeroen/Library/Developer/Xamarin/android-sdk-macosx\r\n    • Android NDK location not configured (optional; useful for native profiling support)\r\n    • Platform android-27, build-tools 26.0.3\r\n    • ANDROID_HOME = /Users/jeroen/Library/Developer/Xamarin/android-sdk-macosx\r\n    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)\r\n    • All Android licenses accepted.\r\n\r\n[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)\r\n    • Xcode at /Applications/Xcode-beta.app/Contents/Developer\r\n    • Xcode 9.3, Build version 9Q127n\r\n    • ios-deploy 1.9.2\r\n    • CocoaPods version 1.5.0.beta.1\r\n\r\n[✓] Android Studio (version 3.0)\r\n    • Android Studio at /Applications/Android Studio.app/Contents\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)\r\n\r\n[✓] VS Code (version 1.21.1)\r\n    • VS Code at /Applications/Visual Studio Code.app/Contents\r\n    • Dart Code extension version 2.11.1\r\n\r\n[✓] Connected devices (1 available)\r\n    • iPhone 6 • B93E29EC-05E0-4948-B369-BB8B2347823D • ios • iOS 11.3 (simulator)\r\n\r\n• No issues found!\r\n```\r\n\r\n## Additional information\r\n\r\nCreating and running a normal project works fine:\r\n`flutter create regular`\r\n`cd regular`\r\n`flutter run`\r\n```\r\nLaunching lib/main.dart on iPhone 6 in debug mode...\r\nRunning Xcode clean...                                       0,9s\r\nStarting Xcode build...\r\n ├─Assembling Flutter resources...                    3,4s\r\n └─Compiling, linking and signing...                  5,1s\r\nXcode build done                                             9,7s\r\nSyncing files to device iPhone 6...                          2,0s\r\n\r\n🔥  To hot reload your app on the fly, press \"r\". To restart the app entirely, press \"R\".\r\nAn Observatory debugger and profiler on iPhone 6 is available at: http://127.0.0.1:8100/\r\nFor a more detailed help message, press \"h\". To quit, press \"q\".\r\n```\r\n\r\n**However** when adding a dependency like `path_provider`:\r\n```\r\n...\r\ndependencies:\r\n  flutter:\r\n    sdk: flutter\r\n  path_provider: ^0.4.0 [ADDED THIS LINE]\r\n...\r\n```\r\nand then `flutter packages get`,\r\n```\r\n[regular] flutter packages get\r\nRunning \"flutter packages get\" in regular...\r\nexit code 0\r\n```\r\n\r\n`flutter run` produces this:\r\n```\r\nLaunching lib/main.dart on iPhone 6 in debug mode...\r\nRunning pod install...                                       1,0s\r\nRunning Xcode clean...                                       0,9s\r\nStarting Xcode build...\r\nXcode build done                                             1,4s\r\nFailed to build iOS app\r\nError output from Xcode build:\r\n↳\r\n    ** BUILD FAILED **\r\n\r\nXcode's output:\r\n↳\r\n    === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===\r\n    In file included from /Users/jeroen/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.0/ios/Classes/PathProviderPlugin.m:5:\r\n    /Users/jeroen/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.0/ios/Classes/PathProviderPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found\r\n    #import <Flutter/Flutter.h>\r\n            ^~~~~~~~~~~~~~~~~~~\r\n    1 error generated.\r\nCould not build the application for the simulator.\r\nError launching application on iPhone 6.\r\n```\r\n\r\nI did not have `path_provider` version `0.4.0` in my dart packages folder before running the app, so it's a fresh copy.\r\n\r\nI need to get this working a.s.a.p. since I need to make an app for our company soon."},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/377032594","html_url":"https://github.com/flutter/flutter/issues/16036#issuecomment-377032594","issue_url":"https://api.github.com/repos/flutter/flutter/issues/16036","id":377032594,"user":{"login":"0916174","id":14292245,"avatar_url":"https://avatars1.githubusercontent.com/u/14292245?v=4","gravatar_id":"","url":"https://api.github.com/users/0916174","html_url":"https://github.com/0916174","followers_url":"https://api.github.com/users/0916174/followers","following_url":"https://api.github.com/users/0916174/following{/other_user}","gists_url":"https://api.github.com/users/0916174/gists{/gist_id}","starred_url":"https://api.github.com/users/0916174/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0916174/subscriptions","organizations_url":"https://api.github.com/users/0916174/orgs","repos_url":"https://api.github.com/users/0916174/repos","events_url":"https://api.github.com/users/0916174/events{/privacy}","received_events_url":"https://api.github.com/users/0916174/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T20:53:16Z","updated_at":"2018-03-28T20:53:16Z","author_association":"NONE","body":"No problem. Very useful to know, though.\r\n\r\nAny other suggestions?"}}
{"actor":{"display_login":"0916174"}}