Dev-hwang / flutter_foreground_task

This plugin is used to implement a foreground service on the Android platform.
https://pub.dev/packages/flutter_foreground_task
MIT License
140 stars 105 forks source link

flutter_foreground_task/FlutterForegroundTaskPlugin.h file not found #196

Closed rashad-farajullayev closed 6 months ago

rashad-farajullayev commented 8 months ago

According to the documentation I added this import in file .../ios/Runner/Runner-Bridging-Header.h

#import <flutter_foreground_task/FlutterForegroundTaskPlugin.h>

in Podfile I have

platform :ios, '12.0'

in pubspec.yaml I have

flutter_foreground_task: ^6.1.2

all other ForeGround task initialization etc. is in place. flutter build ios and flutter run works good and open the application simulator. But when I try to compete the project in XCode, it always fails and says

flutter_foreground_task/FlutterForegroundTaskPlugin.h file not found

tried several time to clean and build the project. but does not help.

rashad-farajullayev commented 8 months ago

Actually file is located here: <project_dir>/ios/.symlinks/plugins/flutter_foreground_task/ios/Classes flutter run works in simulator. But XCode cannot find it.

youch34 commented 8 months ago

i have same issue.

rashad-farajullayev commented 6 months ago

In my case problem was that I was opening Xcode project from Project.xcodeproj instead of Project.xcworkspace.