tflite_flutter_helper icon indicating copy to clipboard operation
tflite_flutter_helper copied to clipboard

iOS flutter run error

Open guccisekspir opened this issue 3 years ago • 3 comments

I made everything in read me but when I try to flutter run it gives this error. But when I try to run in xcode there are no any error. My app working perfectly. What can I do ? What is the different of flutter run & xcode run

flutter version: latest stable package version: latest stable

    ** BUILD FAILED **
Xcode's output:
↳
ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/cagrialtay/development/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.9.0/ios/TensorFlowLiteC.framework/TensorFlowLiteC' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'OrderedSet' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FMDB' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.

guccisekspir avatar Dec 12 '21 00:12 guccisekspir

I'm getting the same error.

dewball345 avatar Dec 23 '21 01:12 dewball345

Without knowing more, I can say that I get these sorts of errors when there is a library conflict between this package and e.g. the Camera lib

espbee avatar Dec 28 '21 20:12 espbee

How does the first lines of your ios/Podfile look? What fixed it for me was adding a specific minimum platform for the project manually. """

Uncomment this line to define a global platform for your project

platform :ios, '9.0'

CocoaPods analytics sends network stats synchronously affecting flutter build latency.

ENV['COCOAPODS_DISABLE_STATS'] = 'true' """

AlbertFlorinus avatar Jul 19 '22 12:07 AlbertFlorinus