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

iOS flutter run error #46

Open
guccisekspir opened this issue Dec 12, 2021 · 3 comments
Open

iOS flutter run error #46

guccisekspir opened this issue Dec 12, 2021 · 3 comments

Comments

@guccisekspir
Copy link

guccisekspir commented Dec 12, 2021

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.
@dewball345
Copy link

I'm getting the same error.

@espbee
Copy link

espbee commented Dec 28, 2021

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

@AlbertFlorinus
Copy link

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'
"""

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

4 participants