通過Android Studio創(chuàng)建flutter項(xiàng)目夕膀,在真機(jī)運(yùn)行的時候xcode端報(bào)錯“Undefined symbol: _OBJC_METACLASS_$_FlutterAppDelegate”,Android Studio報(bào)錯“Could not build the precompiled application for the device .Error launching application on ”跷叉,安卓模擬器和iOS模擬器都能正常運(yùn)行。
經(jīng)過一系列的查找过吻,懷疑是通過Android Studio創(chuàng)建項(xiàng)目的時候蝇恶,缺少部分庫崎弃,然后通過終端新建項(xiàng)目flutter create "項(xiàng)目名"
cd到項(xiàng)目地址,再執(zhí)行flutter run疾瓮,問題解決