Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

can't run on iOS, getting error on flutter run ? #210

Closed
dubeyteja opened this issue Sep 21, 2020 · 16 comments
Closed

can't run on iOS, getting error on flutter run ? #210

dubeyteja opened this issue Sep 21, 2020 · 16 comments
Assignees
Labels
question Further information is requested

Comments

@dubeyteja
Copy link

In file included from /Users/user/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ffmpeg-0.3.0/ios/Classes/EmptyLogDelegate.m:20:
/Users/user/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ffmpeg-0.3.0/ios/Classes/EmptyLogDelegate.h:20:10: fatal error:
'mobileffmpeg/LogDelegate.h' file not found
#include <mobileffmpeg/LogDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@tanersener
Copy link
Owner

tanersener commented Sep 21, 2020

v0.3.0 is tested and no issues were found.

screenshot

@tanersener tanersener added the question Further information is requested label Sep 21, 2020
@dubeyteja
Copy link
Author

I don't know why ? But I am unable to run the app in. iOS . I have no issues in android .

@tanersener
Copy link
Owner

tanersener commented Sep 22, 2020

Clean your cocoapods cache and try again. Sometimes this helps to resolve dependency issues.

@dubeyteja
Copy link
Author

I tried that , even removed flutter sdk and reinstalled it . created a new flutter project but still no use.

@dubeyteja
Copy link
Author

Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

In file included from
/Users/dubeysaivithalteja/Softwares/flutter/.pub-cache/hosted/pub.dartlang.o
rg/flutter_ffmpeg-0.3.0/ios/Classes/FlutterFFmpegPlugin.m:20:
/Users/dubeysaivithalteja/Softwares/flutter/.pub-cache/hosted/pub.dartlang.o
rg/flutter_ffmpeg-0.3.0/ios/Classes/EmptyLogDelegate.h:20:10: fatal error:
'mobileffmpeg/LogDelegate.h' file not found
#include <mobileffmpeg/LogDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from
/Users/dubeysaivithalteja/Softwares/flutter/.pub-cache/hosted/pub.dartlang.o
rg/flutter_ffmpeg-0.3.0/ios/Classes/FlutterExecuteDelegate.m:20:
/Users/dubeysaivithalteja/Softwares/flutter/.pub-cache/hosted/pub.dartlang.o
rg/flutter_ffmpeg-0.3.0/ios/Classes/FlutterExecuteDelegate.h:21:9: fatal
error: 'mobileffmpeg/ExecuteDelegate.h' file not found
#import <mobileffmpeg/ExecuteDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from
/Users/dubeysaivithalteja/Softwares/flutter/.pub-cache/hosted/pub.dartlang.o
rg/flutter_ffmpeg-0.3.0/ios/Classes/EmptyLogDelegate.m:20:
/Users/dubeysaivithalteja/Softwares/flutter/.pub-cache/hosted/pub.dartlang.o
rg/flutter_ffmpeg-0.3.0/ios/Classes/EmptyLogDelegate.h:20:10: fatal error:
'mobileffmpeg/LogDelegate.h' file not found
#include <mobileffmpeg/LogDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@tanersener
Copy link
Owner

Your problem is not about flutter. Cleaning, deleting, re-installing flutter won't solve your issue.

You need to check your cocoapods cache. Clean it or check that package and see why that file is not there.

@dubeyteja
Copy link
Author

Can you please tell me how to check the header files that are missing. Atleast tell me the directory to look into.
I open ios/classes/logdelegate.h but its showing error in vs code that these files doesn't exist . Provide a correct path to the files.

@tanersener
Copy link
Owner

Inside ios/Pods directory you should have a mobile-ffmpeg-... folder. Headers can be found under mobileffmpeg.framework/Headers folder under it.

@dubeyteja
Copy link
Author

dubeyteja commented Sep 22, 2020

Screenshot 2020-09-22 at 6 16 59 PM
the error in Xcode is showing like this.
I hope this will help you to help me

I deleted that project and created a new project with flutter create . Still I can't run the build. the build fails. I don't know what to do.

@tanersener
Copy link
Owner

tanersener commented Sep 22, 2020

Read my previous post.

1 - Check whether you have that folder and headers inside it.
2 - As I've said before, clean your cocoapods cache, run your app. It will download that mobile-ffmpeg package again. Go to the Cocoapods cache and see whether the new version has those headers. Folder structure is the same.

@dubeyteja
Copy link
Author

I have checked the headers folder and I can see ExecuteDelegate.h and LogDelegate.h there but still it show error.
Xcode is searching for them in .symlinks I think ?

@dubeyteja
Copy link
Author

I have cleaned cocoapods cache and even uninstalled cocoapods and installed them again. I have no issues in android . I don't have other Mac to check whether is that a fault in my machine. but If I remove the dependency from pubspec.yaml everything works fine. I am not sure what's causing the problem ? can you please try to create a new flutter project and try to run it on a simulator.

@tanersener
Copy link
Owner

Why don't you try to run the example application under the example folder?

@dubeyteja
Copy link
Author

I don't know how but the example is working . and I tried to run my project again and it works . Thank you sir . Sorry for annoying you.

@tanersener tanersener self-assigned this Sep 22, 2020
@BrutalCoding
Copy link

I can confirm that 0.3.0 is able to run on iOS 14 simulators. Issue can be closed @tanersener

@jayrcodes
Copy link

I needed to manually add each of this to make this work

Screen Shot 2021-03-11 at 12 45 00 AM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants