颤振IOS存档->致命错误:找不到模块'flutter_webview_plugin'


CompileC /Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.o /Users/kkk/Desktop/wooribannet/ios/Runner/GeneratedPluginRegistrant.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Runner' from project 'Runner')
cd /Users/kkk/Desktop/wooribannet/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/kkk/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/kkk/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-implicit-fallthrough -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -iquote /Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Runner-generated-files.hmap -I/Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Runner-own-target-headers.hmap -I/Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Runner-all-target-headers.hmap -iquote /Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Runner-project-headers.hmap -I/Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/include -I/Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/DerivedSources-normal/arm64 -I/Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/DerivedSources/arm64 -I/Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/DerivedSources -F/Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos -MMD -MT dependencies -MF /Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.d --serialize-diagnostics /Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.dia -c /Users/kkk/Desktop/wooribannet/ios/Runner/GeneratedPluginRegistrant.m -o /Users/kkk/Library/Developer/Xcode/DerivedData/Runner-fkufrnoydejulxbgtamtkhrugtau/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.o

/用户/三k党/桌面/wooribannet/ios/跑步/GeneratedPluginRegistrant。M:12:9:致命错误:模块'flutter_webview_plugin'未找到

@ import flutter_webview_plugin;

产生1个错误。


以上是错误信息

IOS存档时出现错误。

我需要帮助。

我不应该使用flutter_webview_plugin吗?还是有别的办法?

对于没有找到的任何类型的库/模块,都有多种解决方案可用。

方案1:

flutter clean
flutter pub get

如果仍然有问题:

pod update
pod repo update
pod install

试试下面的解决方案:

delete build folder
delete pod.lock file
delete .syslinks folder
delete pods folder

通过

更改终端中的目录
cd ios
pod install --repo-update OR pod repo update
pod install
flutter clean
flutter pub get

如果你觉得有用的话,别忘了点赞

我解决了

在终端

rm -rf Pods

rm -rf Podfile.lock

荚安装


打开xCode作为runner.xcworkspace

产品→干净的

最新更新