Sil*_*ree 10 xcode ios flutter
当我在 Xcode 中构建应用程序时,它会引发错误:.../ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'audioplayers' not found
我尝试重新安装并再次设置 pod,但是它没有用。我也包含pod 'Firebase/Core'在 pod 文件中。也许我还需要在那里包含 Audioplayer 模块?提前致谢!
tha*_*h84 147
确保 pod 文件中的平台:iOS 版本与 Xcode 中的部署信息匹配
Sal*_*rke 99
您是否确保通过双击“project/ios”文件夹中的“runner.xcworkspace”而不是“runner.xcodeproj”来启动 xcode?
据此消息来源称,它为很多人解决了“缺少模块”的问题(正如它为我所做的那样)。 https://github.com/flutter/flutter/issues/41033
Tha*_*hin 20
确保所选的运行方案是“debug”
Sha*_*put 16
我遇到了同样的错误Better Video Player。确保您的 IOS 版本在Pod File is 11. 首先确保您正在打开runner.xcworkspace如果问题仍然存在,请尝试此步骤。
1.- flutter clean
2.- flutter pub get
3.- cd ios
4.- pod deintegrate
5.- pod install
Run Code Online (Sandbox Code Playgroud)
如果问题仍然存在
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
Run Code Online (Sandbox Code Playgroud)
对于我(Mac w/ M1),我运行了以下命令:
flutter pub getcd iosrm -rf Pods/ Podfile.lockpod install此后,在 xcode 中运行应用程序按预期工作。
小智 8
在 Mac 上使用 m1
1.- 删除 Podfile
在 Android Studio 中:
2.- flutter clean
3.- flutter pub get
4.- cd ios
5.- pod install
Run Code Online (Sandbox Code Playgroud)
然后
6.- Build and run your app through Xcode
Run Code Online (Sandbox Code Playgroud)
这对我有用。
尝试了很多东西,flutter clean恢复 Podfile 等,仍然面临同样的问题。
最终通过解决 Xcode 中突出显示的问题来获得此修复。你可以检查
https://github.com/flutter/flutter/issues/54599#issuecomment-644336055 https://github.com/flutter/flutter/issues/53573#issuecomment-749912604
我对以下编译器输出有类似的问题:
/Users/me/flutter_project/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'barcode_scan' not found
@import barcode_scan;
~~~~~~~^~~~~~~~~~~~
Run Code Online (Sandbox Code Playgroud)
我的项目包含多个具有 Flutter 风格的构建环境,如下所述:https ://medium.com/@thomasgallinari/e7a0c973f54e
对我来说解决这个问题的方法是将构建配置和相应文件的大小写从类似 到 的值更改Debug-stage为Debug-StageFlutter 所期望的。
| 归档时间: |
|
| 查看次数: |
14768 次 |
| 最近记录: |