ymm-tech/thresh

iOS demo无法编译

Closed this issue · 2 comments

Xcode 12.1 Release模式提示

image

PhaseScriptExecution Run\ Script /Users/aaa/Library/Developer/Xcode/DerivedData/Runner-akiikoxwioukyebydogbsvowwiws/Build/Intermediates.noindex/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh
...
...
...
Target aot_assembly_release failed: Exception: Unsupported iOS arch name "i386"
build failed.
Command /bin/sh failed with exit code 1

Debug模式 ,提示如下

image
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_ThreshViewController", referenced from:
objc-class-ref in SettingViewController.o
"OBJC_CLASS$_ThreshPlugin", referenced from:
objc-class-ref in GeneratedPluginRegistrant.o
"OBJC_CLASS$_SqflitePlugin", referenced from:
objc-class-ref in GeneratedPluginRegistrant.o
"OBJC_CLASS$_FLTPathProviderPlugin", referenced from:
objc-class-ref in GeneratedPluginRegistrant.o
"OBJC_CLASS$_ThreshAppDelegate", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

求助该如何解决

补充环境及操作步骤
Flutter 1.17.5

1修改yaml cache_network_image 2.0.0-rc,否则flutter编译不过(Flutter版本过高)
2安装和更新flutter依赖,并执行flutter run。这个已经跑起来了。
image

3到ios demo目录,pod install,然后修改scheme为debug或维持Release,报以上错误。

Sorry,the current version only supports flutter 1.9.1-hotfix.6.
Q1 2021, we plan to adapt the high version internally and will update it in time after completion.