学習方法

メンター情報

料金

対応時間帯

返信スピード

学習方法

メンター情報

料金

対応時間帯

返信スピード

schwarzwald

4時間前

募集をシェアしてメンターを探そう
シェア

※ この募集は締め切られました。

スマートフォンアプリ Flutter

tflite_flutter_helper_plusのexampleがビルドできないので、ご助力願いたいです。

2023年7月16日
単発
予算
15,000円
提案数
1人が提案中
応募期限
終了

【教えてもらいたいこと】
プログラミング/スマートフォンアプリ, Flutter

【利用目的】
技術的な質問・相談

【具体的な相談内容】
上記の問題を解いてくださる方を募集しています。



質問の概要
https://github.com/odejinmi/tflite_flutter_helper_plusの配下にある、
https://github.com/odejinmi/tflite_flutter_helper_plus/tree/master/example/image_classification
をiosで実行しようとすると、以下のエラーがでます。

Running Xcode build...
Xcode build done. 4.3s
Failed to build iOS app
Semantic Issue (Xcode): Duplicate interface definition for class 'TfliteFlutterHelperPlusPlugin'
/Users/kimsukhong/StudioProjects/tflite_flutter_helper_plus/example/image_classification/build/ios/Debug-iphonesimulator/tflite_flutter_helper_plus/tflite_flutter_helper_plus.framework/Headers/tflite_flutter_helper_plus-Swift.h:288:0

Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).

以下が、tflite_flutter_helper_plus-Swift.hの該当箇所です。全文は次のスレッドに載せています。
エラーによると、288行目で二重定義が起こっているみたいです。
そこで、前後の#if から#endifまでを削除しました、
しかし、再度実行すると、同じエラーが出てしまします。flite_flutter_helper_plus-Swift.hも完全に元に戻ります。

こちらが解決できなくて困っています。

・288行目あたり
#if defined(OBJC)
@protocol FlutterPluginRegistrar;
@Class FlutterMethodCall;

SWIFT_CLASS("_TtC26tflite_flutter_helper_plus29TfliteFlutterHelperPlusPlugin")
@interface TfliteFlutterHelperPlusPlugin : NSObject

(void)registerWithRegistrar:(id _Nonnull)registrar;
(void)handleMethodCall:(FlutterMethodCall * _Nonnull)call result:(FlutterResult _Nonnull)result;
(nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@EnD
#endif

【希望相談スタイル】
チャット, ビデオ通話

【目安予算】
10000円

schwarzwald

4時間前

募集をシェアしてメンターを探そう
シェア