DenisovAV / flutter_gemma

The Flutter plugin allows running the Gemma AI model locally on a device from a Flutter application.
MIT License
55 stars 17 forks source link

ios build error #31

Open yuanxintaxon opened 2 days ago

yuanxintaxon commented 2 days ago

Error (Xcode): Undefined symbols: Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

DenisovAV commented 2 days ago

Could you give more details about what you are trying to build, and which steps you do? I will try to reproduce your issue

yuanxintaxon commented 2 days ago

Hey, I'm trying to run a new project with the Flutter Gemma plugin, but it displays the error above when I run flutter build ios.

I am using the following version Flutter 3.24.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision dec2ee5c1f (8 days ago) • 2024-11-13 11:13:06 -0800 Engine • revision a18df97ca5 Tools • Dart 3.5.4

yuanxintaxon commented 2 days ago

To reproduce the error: 1) create a new flutter project 2) install the flutter_gemma plugin 3) replaced the 'use_frameworks!' with 'use_frameworks! :linkage => :static' in the Podfile 4) set minimum ios platform version to 13.0 5) flutter clean; flutter build ios

DenisovAV commented 2 days ago

Just did the same steps as you, and everything is fine

image

Can you share your MacOS and XCode versions, maybe I have a different environment

yuanxintaxon commented 2 days ago
image

Here's my xcode and macbook version

DenisovAV commented 2 days ago

Please try to update XCode, maybe it can help. My XCode is 15.6 and MacOS is 14.6.1. And please send me a full trace of flutter build ios command

yuanxintaxon commented 2 days ago

build_log.txt here's the full verbose log with flutter build ios -v

DenisovAV commented 2 days ago

Try to update cocoapods to the last version, it should help