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

url_launcher won't work on IOS simulator. fatal error: 'url_launcher/UrlLauncherPlugin.h' file not found #27893

Closed
Sirrr opened this issue Feb 13, 2019 · 3 comments
Labels
p: url_launcher Plugin to launch external applications package flutter/packages repository. See also p: labels.

Comments

@Sirrr
Copy link

Sirrr commented Feb 13, 2019

Dears, I am struggling with this issue. Please help.

url_launcher: ^5.0.1
cocoapods: 1.6.0
Launching lib/main.dart on iPhone X in debug mode...
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To install:
brew install cocoapods
pod setup

Starting Xcode build...
Xcode build done. 5.0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **

Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Debug.xcconfig line 1: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
Debug.xcconfig line 1: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/siraj/dev/AndroidStudioProjects/delete/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'url_launcher/UrlLauncherPlugin.h' file not found
#import <url_launcher/UrlLauncherPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Could not build the application for the simulator.
Error launching application on iPhone X.

Flutter doctor

[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14 18A391, locale en-AZ)
• Flutter version 1.0.0 at /Applications/flutter
• Framework revision [5391447](https://github.com/flutter/flutter/commit/5391447fae6209bb21a89e6a5a6583cac1af9b4b) (3 months ago), 2018-11-29 19:41:26 -0800
• Engine revision [7375a0f](https://github.com/flutter/flutter/commit/7375a0f414bde4bc941e623482221db2fc8c4ab5)
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/siraj/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)

[!] IntelliJ IDEA Ultimate Edition (version 2017.2.5)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.30.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.22.3

[✓] Connected device (1 available)
• iPhone X • A8EB16AF-4992-4C41-ADC2-7A637B0ABFA2 • ios • iOS 12.1 (simulator)
@zoechi
Copy link
Contributor

zoechi commented Feb 14, 2019

@Sirrr please try #16049 (comment)

Similar to #15409 (shared_preferences)

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 14, 2019
@Sirrr
Copy link
Author

Sirrr commented Feb 14, 2019

@zoechi Thank you for the direction. I managed to solve the problem through running 'flutter run' in the terminal.

At first I changed the Podfile as described in the comment. But then I realized it works without changes, by just calling 'flutter run' in the terminal. I am using Android Studio to build project. But, it does not run 'pod install' when it builds the app. So the missing Pod packages were causing the issue.

@Sirrr Sirrr closed this as completed Feb 14, 2019
@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 14, 2019
@zoechi zoechi added plugin p: url_launcher Plugin to launch external applications labels Feb 14, 2019
zanderso pushed a commit that referenced this issue Aug 19, 2021
* 5652811 Roll Skia from eb0195e5b4d5 to cd2c1beb1e4e (2 revisions) (flutter/engine#28203)

* f21f5a8 Fix stack-buffer-overflow in linux value tests (flutter/engine#28204)

* c3c26c4 Roll Skia from cd2c1beb1e4e to e453fa063da5 (2 revisions) (flutter/engine#28205)

* b20c1a3 Revert "Adds semantics tooltip support (#27893)" (flutter/engine#28207)
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p: url_launcher Plugin to launch external applications package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests

2 participants