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.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/161469

相关文章

linux报错INFO:task xxxxxx:634 blocked for more than 120 seconds.三种解决方式

《linux报错INFO:taskxxxxxx:634blockedformorethan120seconds.三种解决方式》文章描述了一个Linux最小系统运行时出现的“hung_ta... 目录1.问题描述2.解决办法2.1 缩小文件系统缓存大小2.2 修改系统IO调度策略2.3 取消120秒时间限制3

JAVA系统中Spring Boot应用程序的配置文件application.yml使用详解

《JAVA系统中SpringBoot应用程序的配置文件application.yml使用详解》:本文主要介绍JAVA系统中SpringBoot应用程序的配置文件application.yml的... 目录文件路径文件内容解释1. Server 配置2. Spring 配置3. Logging 配置4. Ma

解决systemctl reload nginx重启Nginx服务报错:Job for nginx.service invalid问题

《解决systemctlreloadnginx重启Nginx服务报错:Jobfornginx.serviceinvalid问题》文章描述了通过`systemctlstatusnginx.se... 目录systemctl reload nginx重启Nginx服务报错:Job for nginx.javas

VMWare报错“指定的文件不是虚拟磁盘“或“The file specified is not a virtual disk”问题

《VMWare报错“指定的文件不是虚拟磁盘“或“Thefilespecifiedisnotavirtualdisk”问题》文章描述了如何修复VMware虚拟机中出现的“指定的文件不是虚拟... 目录VMWare报错“指定的文件不是虚拟磁盘“或“The file specified is not a virt

使用Vue.js报错:ReferenceError: “Vue is not defined“ 的原因与解决方案

《使用Vue.js报错:ReferenceError:“Vueisnotdefined“的原因与解决方案》在前端开发中,ReferenceError:Vueisnotdefined是一个常见... 目录一、错误描述二、错误成因分析三、解决方案1. 检查 vue.js 的引入方式2. 验证 npm 安装3.

PHP执行php.exe -v命令报错的解决方案

《PHP执行php.exe-v命令报错的解决方案》:本文主要介绍PHP执行php.exe-v命令报错的解决方案,文中通过图文讲解的非常详细,对大家的学习或工作有一定的帮助,需要的朋友可以参考下... 目录执行phpandroid.exe -v命令报错解决方案执行php.exe -v命令报错-PHP War

鸿蒙开发搭建flutter适配的开发环境

《鸿蒙开发搭建flutter适配的开发环境》文章详细介绍了在Windows系统上如何创建和运行鸿蒙Flutter项目,包括使用flutterdoctor检测环境、创建项目、编译HAP包以及在真机上运... 目录环境搭建创建运行项目打包项目总结环境搭建1.安装 DevEco Studio NEXT IDE

CentOS系统使用yum命令报错问题及解决

《CentOS系统使用yum命令报错问题及解决》文章主要讲述了在CentOS系统中使用yum命令时遇到的错误,并提供了个人解决方法,希望对大家有所帮助,并鼓励大家支持脚本之家... 目录Centos系统使用yum命令报错找到文件替换源文件为总结CentOS系统使用yum命令报错http://www.cppc

MCU7.keil中build产生的hex文件解读

1.hex文件大致解读 闲来无事,查看了MCU6.用keil新建项目的hex文件 用FlexHex打开 给我的第一印象是:经过软件的解释之后,发现这些数据排列地十分整齐 :02000F0080FE71:03000000020003F8:0C000300787FE4F6D8FD75810702000F3D:00000001FF 把解释后的数据当作十六进制来观察 1.每一行数据

Flutter 进阶:绘制加载动画

绘制加载动画:由小圆组成的大圆 1. 定义 LoadingScreen 类2. 实现 _LoadingScreenState 类3. 定义 LoadingPainter 类4. 总结 实现加载动画 我们需要定义两个类:LoadingScreen 和 LoadingPainter。LoadingScreen 负责控制动画的状态,而 LoadingPainter 则负责绘制动画。