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

Error happen when build. Only with iOS #204

Closed
letruonglamit opened this issue Dec 28, 2018 · 3 comments
Closed

Error happen when build. Only with iOS #204

letruonglamit opened this issue Dec 28, 2018 · 3 comments

Comments

@letruonglamit
Copy link

letruonglamit commented Dec 28, 2018

I have issue when build iOS

I receive a debug console below:

Launching lib/main.dart on iPhone XR in debug mode...
Warning: CocoaPods recommended version 1.5.0 or greater not installed.
Pods handling may fail on some projects involving plugins.
To upgrade:
brew upgrade cocoapods
pod setup

Xcode build done. 14.7s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **
Xcode's output:

=== BUILD TARGET url_launcher OF PROJECT Pods WITH CONFIGURATION Debug ===
:1:9: note: in file included from :1:
#import "Headers/permission_handler-umbrella.h"
^
/Users/lelam/WorkSpaceFlutter/GSYGithubAppFlutter/ios/Pods/Target Support Files/permission_handler/permission_handler-umbrella.h:13:9: error: include of non-modular header inside framework module 'permission_handler': '/Users/lelam/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-2.0.0/ios/Classes/PermissionHandlerPlugin.h'
#import "PermissionHandlerPlugin.h"
^
:0: error: could not build Objective-C module 'permission_handler'
:1:9: note: in file included from :1:
#import "Headers/permission_handler-umbrella.h"
^
/Users/lelam/WorkSpaceFlutter/GSYGithubAppFlutter/ios/Pods/Target Support Files/permission_handler/permission_handler-umbrella.h:13:9: error: include of non-modular header inside framework module 'permission_handler': '/Users/lelam/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-2.0.0/ios/Classes/PermissionHandlerPlugin.h'
#import "PermissionHandlerPlugin.h"
^
:0: error: could not build Objective-C module 'permission_handler'
:1:9: note: in file included from :1:
#import "Headers/permission_handler-umbrella.h"
^
/Users/lelam/WorkSpaceFlutter/GSYGithubAppFlutter/ios/Pods/Target Support Files/permission_handler/permission_handler-umbrella.h:13:9: error: include of non-modular header inside framework module 'permission_handler': '/Users/lelam/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-2.0.0/ios/Classes/PermissionHandlerPlugin.h'
#import "PermissionHandlerPlugin.h"
^
:0: error: could not build Objective-C module 'permission_handler'
:1:9: note: in file included from :1:
#import "Headers/permission_handler-umbrella.h"
^
/Users/lelam/WorkSpaceFlutter/GSYGithubAppFlutter/ios/Pods/Target Support Files/permission_handler/permission_handler-umbrella.h:13:9: error: include of non-modular header inside framework module 'permission_handler': '/Users/lelam/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-2.0.0/ios/Classes/PermissionHandlerPlugin.h'
#import "PermissionHandlerPlugin.h"
^
:0: error: could not build Objective-C module 'permission_handler'
:1:9: note: in file included from :1:
#import "Headers/permission_handler-umbrella.h"
^
/Users/lelam/WorkSpaceFlutter/GSYGithubAppFlutter/ios/Pods/Target Support Files/permission_handler/permission_handler-umbrella.h:13:9: error: include of non-modular header inside framework module 'permission_handler': '/Users/lelam/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-2.0.0/ios/Classes/PermissionHandlerPlugin.h'
#import "PermissionHandlerPlugin.h"
^
:0: error: could not build Objective-C module 'permission_handler'
:1:9: note: in file included from :1:
#import "Headers/permission_handler-umbrella.h"
^
:0: error: could not build Objective-C module 'permission_handler'
Could not build the application for the simulator.
Error launching application on iPhone XR.
Exited (sigterm)

Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G65, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
! CocoaPods out of date (1.5.0 is recommended).
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 upgrade:
brew upgrade cocoapods
pod setup
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.30.1)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.

@CarGuo
Copy link
Owner

CarGuo commented Dec 29, 2018

plugin permission_handler

@letruonglamit
Copy link
Author

How to fix this issue?

@CarGuo
Copy link
Owner

CarGuo commented Jan 4, 2019

find permission_handler is it installed?

@CarGuo CarGuo closed this as completed Jan 8, 2019
@CarGuo CarGuo mentioned this issue Nov 21, 2019
@w497763094 w497763094 mentioned this issue Mar 10, 2020
@JevonShi JevonShi mentioned this issue Mar 10, 2020
@HaobinXu HaobinXu mentioned this issue Mar 20, 2020
@luan823230 luan823230 mentioned this issue Mar 24, 2020
@hzg1105 hzg1105 mentioned this issue Jun 14, 2020
@wangkr wangkr mentioned this issue Jul 4, 2020
@jayVRIY jayVRIY mentioned this issue Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants