-
Notifications
You must be signed in to change notification settings - Fork 401
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
IOS Xcode Build error : 'metal_delegate.h' file not found #139
Comments
Same issue with the latest version, when trying to build the application in XCode I just get .../tflite-1.1.1/ios/Classes/TflitePlugin.mm:21:9: 'metal_delegate.h' file not found |
What's the version of TensorFlowLiteC? The plugin is tested with TensorFlowLiteC (2.2.0). Thanks, |
Downgrading TensorFlowLiteC to 2.2.0 worked for me
|
This also worked for me. Looks like the GPU delegate is no longer included in the pod from 2.3.0 on: https://www.tensorflow.org/lite/performance/gpu#step_2_modify_the_podfile_to_use_the_tensorflow_lite_gpu_cocoapod |
Thanks downgrading to 2.2.0 worked. @shaqian tensorflow version in Podfile.lock was 2.3.0. |
After downgrading. Its working well. |
Thanks every one, |
If I downgrade in the Podfile.lock to 2.2.0 it tells me that tflite 1.1.1 depends on 2.3.0 and it fails to run pod install. |
@JoseGeorges8 try flutter clean & flutter pub get first then do a pod install. My Podfile.lock looks like this:
|
If we are running CI/CD pipeline, we should not make changes respective to podfile.lock one. So, is there any alternative ? |
@Harshdeep4295 you can download the plugin and use it locally, make the changes in the tflite.podspec file instead of podfile.lock |
@mirrorlink The thing is I can do that locally, but in case of any CI/CD pipeline, we need to write some script for it. |
@Harshdeep4295 But I mean downloading the whole plugin. So the pipeline should use a local instance of the plugin instead of the github repository. Cant the CI/CD pipeline do that? I usually make the building scripts myself in node instead of using tools |
ummm actually it can work, but i haven't tried it yet.
…On Fri, 26 Feb, 2021, 23:58 mirrorlink, ***@***.***> wrote:
@Harshdeep4295 <https://github.com/Harshdeep4295> But I mean downloading
the whole plugin. So the pipeline should use a local instance of the plugin
instead of the github repository. Cant the CI/CD pipeline do that? I
usually make the building scripts myself in node instead of using tools
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#139 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGETABICG6BZUIMDGLJVFJDTA7R6PANCNFSM4PNHHWKQ>
.
|
It works, im doing exactly that :D |
Cool... I'll try this though..
…On Sat, 27 Feb, 2021, 00:42 mirrorlink, ***@***.***> wrote:
It works, im doing exactly that :D
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#139 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGETABIAJWIBOFZH2NZOT23TA7XBDANCNFSM4PNHHWKQ>
.
|
I'm running into the same problem. I tried several ways to downgrade to TensorflowLiteC 2.2.0. I did a flutter clean, a flutter pub get and a pod install but it always throws errors. This is what I have originally in my podfile.lock:
How should this look like? |
@JoergPf This is how my Podfile.lock, application is working on iOS
Note I do not run my build in a pipeline. |
See, if you are building via pipeline you have to add a script to change the TensorFlowLite after flutter pub get to change the version TensorFlowLite for pod install. If not building and working on the local system you can change things manually in the Podflie.lock file @JoergPf |
Thanks for the quick replies.
This throws me an error unfortunately. I tried these possibilities (showing also the packages before and after the TensorFlowLite section): ....
This gives me a parsing error when running pod install. I also tried
This gives me the error
I did a pod repo update but get the same result. And I tried to set TensorFlowLiteC in my original Podfile.lock to 2.2.0
I'm getting the same error:
I'm still new to flutter and I think I'm not building via pipeline if you mean CICD workflows. We are trying CICD in a different test project but now in this one. |
Did you try do a |
I just did a
Then I did a This rewrites my Podfile.lock to
|
Are using |
Yes, this is what I have:
|
Running the example app now and getting fatal error: 'metal_delegate.h' file not found Is there a way to get pass this without downgrading? |
yes, just comment it and the lines that depend on it. ypu will miss just the gpu delegate |
This plugin needs updating to explicitly include the metal subspec, since it uses it in the implementation; https://www.tensorflow.org/lite/performance/gpu#ios_with_xcode Since the podspec on this plugin doesn't specify a version range https://github.com/shaqian/flutter_tflite/blob/master/ios/tflite.podspec#L18 new users installing this plugin will get the latest version of |
…e2e testing TFLite plugin is broken, see shaqian/flutter_tflite#139 (comment)
…e2e testing TFLite plugin is broken, see shaqian/flutter_tflite#139 (comment)
This worked for me: |
'metal_delegate.h' file not found error occurred when building with XCode.
The text was updated successfully, but these errors were encountered: