flutter webrtc 编译报错 Could not build the precompiled application for the device.

本文主要是介绍flutter webrtc 编译报错 Could not build the precompiled application for the device.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

flutter webrtc运行报错

Running Xcode build...
Xcode build done.                                           19.7s
Failed to build iOS app
Error output from Xcode build:
↳2022-03-31 15:36:50.750 xcodebuild[10731:312247] Requested but did not find extension point withidentifier Xcode.IDEKit.ExtensionSentinelHostApplications for extensionXcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore2022-03-31 15:36:50.751 xcodebuild[10731:312247] Requested but did not find extension point withidentifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extensionXcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-incom.apple.dt.IDEWatchSupportCore** BUILD FAILED **Xcode's output:
↳Writing result bundle at path:/var/folders/55/9mlqm5pn4r570ldrcxqb0mx80000gn/T/flutter_tools.KcBTKD/flutter_ios_build_temp_dirICE83K/temporary_xcresult_bundle/usr/local/Caskroom/flutter/2.10.3/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.8.4/lib/src/native/rtc_data_channel_impl.dart:16:7: Error: The non-abstract class'RTCDataChannelNative' is missing implementations for these members:- RTCDataChannel.bufferedAmount- RTCDataChannel.idTry to either- provide an implementation,- inherit an implementation from a superclass or mixin,- mark the class as abstract, or- provide a 'noSuchMethod' implementation.class RTCDataChannelNative extends RTCDataChannel {^^^^^^^^^^^^^^^^^^^^/usr/local/Caskroom/flutter/2.10.3/flutter/.pub-cache/hosted/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:79:11: Context: 'RTCDataChannel.bufferedAmount' is definedhere.int get bufferedAmount;^^^^^^^^^^^^^^/usr/local/Caskroom/flutter/2.10.3/flutter/.pub-cache/hosted/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:74:11: Context: 'RTCDataChannel.id' is defined here.int? get id;^^/usr/local/Caskroom/flutter/2.10.3/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.8.4/lib/src/native/rtc_data_channel_impl.dart:36:15: Error: The return type of the method'RTCDataChannelNative.label' is 'String?', which does not match the return type, 'String', of theoverridden method, 'RTCDataChannel.label'.Change to a subtype of 'String'.String? get label => _label;^/usr/local/Caskroom/flutter/2.10.3/flutter/.pub-cache/hosted/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:77:14: Context: This is the overridden method ('label').String? get label;^Failed to package /Users/***/Desktop/CQTOWTSDK_iOS/FlutterSDK/flutter-webrtc-demo.Command PhaseScriptExecution failed with a nonzero exit codenote: Using new build systemnote: Planningnote: Build preparation completenote: Building targets in dependency order/Users/***/Desktop/CQTOWTSDK_iOS/FlutterSDK/flutter-webrtc-demo/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range ofsupported deployment target versions is 9.0 to 15.4.99. (in target 'Libyuv' from project 'Pods')Result bundle written to path:/var/folders/55/9mlqm5pn4r570ldrcxqb0mx80000gn/T/flutter_tools.KcBTKD/flutter_ios_build_temp_dirICE83K/temporary_xcresult_bundleCould not build the precompiled application for the device.Error launching application on Ming.

尝试了 清除缓存 重装 cocoapods , 重装flutter都不行最后
解决方案:找到flutter加载缓存加载的

  /usr/local/Caskroom/flutter/2.10.3/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.8.4/lib/src/native/rtc_data_channel_impl.dart

文件 将
这几个的 get 给去掉
在这里插入图片描述

保存后再次 flutter run 就行了

这篇关于flutter webrtc 编译报错 Could not build the precompiled application for the device.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!


原文地址:https://blog.csdn.net/iOS_MingXing/article/details/123874164
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.chinasem.cn/article/161469

相关文章

MySQL启动报错:InnoDB表空间丢失问题及解决方法

《MySQL启动报错:InnoDB表空间丢失问题及解决方法》在启动MySQL时,遇到了InnoDB:Tablespace5975wasnotfound,该错误表明MySQL在启动过程中无法找到指定的s... 目录mysql 启动报错:InnoDB 表空间丢失问题及解决方法错误分析解决方案1. 启用 inno

解决Java异常报错:java.nio.channels.UnresolvedAddressException问题

《解决Java异常报错:java.nio.channels.UnresolvedAddressException问题》:本文主要介绍解决Java异常报错:java.nio.channels.Unr... 目录异常含义可能出现的场景1. 错误的 IP 地址格式2. DNS 解析失败3. 未初始化的地址对象解决

Python报错ModuleNotFoundError的10种解决方案

《Python报错ModuleNotFoundError的10种解决方案》在Python开发中,ModuleNotFoundError是最常见的运行时错误之一,通常由模块路径配置错误、依赖缺失或命名冲... 目录一、常见错误场景与原因分析二、10种解决方案与代码示例1. 检查并安装缺失模块2. 动态添加模块

Android NDK版本迭代与FFmpeg交叉编译完全指南

《AndroidNDK版本迭代与FFmpeg交叉编译完全指南》在Android开发中,使用NDK进行原生代码开发是一项常见需求,特别是当我们需要集成FFmpeg这样的多媒体处理库时,本文将深入分析A... 目录一、android NDK版本迭代分界线二、FFmpeg交叉编译关键注意事项三、完整编译脚本示例四

idea报错java: 非法字符: ‘\ufeff‘的解决步骤以及说明

《idea报错java:非法字符:‘ufeff‘的解决步骤以及说明》:本文主要介绍idea报错java:非法字符:ufeff的解决步骤以及说明,文章详细解释了为什么在Java中会出现uf... 目录BOM是什么?1. BOM的作用2. 为什么会出现 \ufeff 错误?3. 如何解决 \ufeff 问题?最

解决Maven项目报错:failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题

《解决Maven项目报错:failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题》这篇文章主要介... 目录Maven项目报错:failed to execute goal org.apache.maven.pl

Flutter实现文字镂空效果的详细步骤

《Flutter实现文字镂空效果的详细步骤》:本文主要介绍如何使用Flutter实现文字镂空效果,包括创建基础应用结构、实现自定义绘制器、构建UI界面以及实现颜色选择按钮等步骤,并详细解析了混合模... 目录引言实现原理开始实现步骤1:创建基础应用结构步骤2:创建主屏幕步骤3:实现自定义绘制器步骤4:构建U

电脑找不到mfc90u.dll文件怎么办? 系统报错mfc90u.dll丢失修复的5种方案

《电脑找不到mfc90u.dll文件怎么办?系统报错mfc90u.dll丢失修复的5种方案》在我们日常使用电脑的过程中,可能会遇到一些软件或系统错误,其中之一就是mfc90u.dll丢失,那么,mf... 在大部分情况下出现我们运行或安装软件,游戏出现提示丢失某些DLL文件或OCX文件的原因可能是原始安装包

电脑显示mfc100u.dll丢失怎么办?系统报错mfc90u.dll丢失5种修复方案

《电脑显示mfc100u.dll丢失怎么办?系统报错mfc90u.dll丢失5种修复方案》最近有不少兄弟反映,电脑突然弹出“mfc100u.dll已加载,但找不到入口点”的错误提示,导致一些程序无法正... 在计算机使用过程中,我们经常会遇到一些错误提示,其中最常见的就是“找不到指定的模块”或“缺少某个DL

解决IDEA报错:编码GBK的不可映射字符问题

《解决IDEA报错:编码GBK的不可映射字符问题》:本文主要介绍解决IDEA报错:编码GBK的不可映射字符问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录IDEA报错:编码GBK的不可映射字符终端软件问题描述原因分析解决方案方法1:将命令改为方法2:右下jav