当前位置: 首页 > news >正文

惠州网吧标题优化

惠州网吧,标题优化,专门帮人做网站的公司,网站建设人员需求分析文章目录 前言开发环境问题及解决方案1. Upload Symbols Failed2. type UIApplication does not conform to protocol Launcher3. method does not override any method from its superclass 最后 前言 为了新的镜像功能升级了macOS 15和iOS 18#xff0c;Xcode也不可避免的需… 文章目录 前言开发环境问题及解决方案1. Upload Symbols Failed2. type UIApplication does not conform to protocol Launcher3. method does not override any method from its superclass 最后 前言 为了新的镜像功能升级了macOS 15和iOS 18Xcode也不可避免的需要升级到Xcode 16老版本没办法在新系统上使用。每次大版本升级带来新功能的同时也会带来一些问题需要去适配去修复。 但有一说一这个镜像功能真好用声音/通知都会转发到电脑上最重要的是真机调试可以直接在电脑上操作无需拿起手机。 开发环境 Flutter: 3.22.3Xcode: 16.0iOS: 18.0 问题及解决方案 1. Upload Symbols Failed 项目打包上传到AppStore出现如下警告提示 看提示是缺少符号文件。这个问题已经修复了相关issue和PR如下 Flutter application missing framework dSYMs, validation error “The archive did not include a dSYM for the Flutter.framework with the UUIDs” [iOS] Bundle dSYM packages in Flutter.xcframework 可以将Flutter升级到当前最新版本3.24.3解决该问题。不过由于该版本的字体渲染有问题所以我还是继续降级使用毕竟只是个警告目前暂时还不影响提交上架。 2. type ‘UIApplication’ does not conform to protocol ‘Launcher’ 这是关于url_launcher库的报错 .../url_launcher_ios-6.3.0/ios/url_launcher_ios/Sources/url_launcher_ios/Launcher.swift:22:1: error: type UIApplication does not conform to protocol Launcher extension UIApplication: Launcher {} ^ UIKit.UIApplication:24:15: note: candidate has non-matching type (URL, [UIApplication.OpenExternalURLOptionsKey : Any], (MainActor Sendable (Bool) - Void)?) - Voidopen func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey : Any] [:], completionHandler completion: (MainActor Sendable (Bool) - Void)? nil)^ .../url_launcher_ios-6.3.0/ios/url_launcher_ios/Sources/url_launcher_ios/Launcher.swift:15:8: note: protocol requires function open(_:options:completionHandler:) with type (URL, [UIApplication.OpenExternalURLOptionsKey : Any], ((Bool) - Void)?) - (); add a stub for conformancefunc open(^结合源码可知问题出在了Launcher协议中的open方法UIApplication的open方法新增了MainActor和Sendable修饰导致方法签名不匹配报错。 目前通过定义新包装类DefaultLauncher的方式修复了该问题详情请看 [ios]Fix compile error when conforming UIApplication to Launcher due to MainActor annotation 除了定义新包装类的方式Launcher协议中的open方法增加MainActor和Sendable修饰应该也能修复问题。 按理说升级项目中的url_launcher库后该问题应该就解决了但是针对这个问题url_launcher库并没有发布新版本只有它所依赖的url_launcher_ios库发布了6.3.1新版本。你可以参考以下两种方法解决这个问题 修改pubspec.lock文件 url_launcher_ios:dependency: transitivedescription:name: url_launcher_iossha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063eurl: https://pub.flutter-io.cnsource: hostedversion: 6.3.0删除sha256这一行以及将version改为6.3.1然后重新运行pub get。 修改pubspec.yaml文件 dependency_overrides:url_launcher_ios: ^6.3.1增加以上内容强制指定url_launcher_ios库的版本。 3. method does not override any method from its superclass 这是关于flutter_inappwebview库的报错截取部分 .../flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.swift:1432:26: error: method does not override any method from its superclasspublic override func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) - Void)? nil) {^ WebKit.WKWebView:46:26: note: potential overridden instance method evaluateJavaScript(_:completionHandler:) hereMainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (MainActor Sendable (Any?, (any Error)?) - Void)? nil)^.../flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.swift:1036:21: error: ambiguous use of evaluateJavaScript(_:completionHandler:)evaluateJavaScript(NOT_ENABLE_VIEWPORT_SCALE_JS_SOURCE)^这错误看上去和第二个问题很像没错又是因为方法增加了MainActor和Sendable修饰导致的。该问题已经通过增加MainActor和Sendable修饰的方式修复了详情请看 Fixed Xcode 16 build failed error: method does not override any method from its superclass flutter_inappwebview库新版本发布前可以先通过以下方式解决 dependency_overrides:flutter_inappwebview_ios:git:url: https://github.com/andychucs/flutter_inappwebview.gitref: masterpath: flutter_inappwebview_ios在pubspec.yaml文件中增加以上内容强制指定flutter_inappwebview_ios库的来源。 最后 如果这篇文章对你有所帮助点赞收藏支持一下吧谢谢 本篇文章由crasowas发布于CSDN。
http://www.hkea.cn/news/14394861/

相关文章:

  • 自己的电脑做服务器搭建网站陕麻圈辅助软件
  • 有后台的网站如何建设柳州企业网站建设
  • 电子商务网站建设与维护 书做优惠券网站要多少钱
  • 网站建设的目的模板驻马店 市网站建设
  • 建设网站教程视频公司总经理培训推广哪家好
  • 购物网站建设精英网站建设付款方式
  • 中国建设银行官网站e路护航重庆网站推广优化
  • 江苏建设工程造价管理网站企业宣传片拍摄制作
  • 网站首页布局seo策划公司活动方案
  • 怎样把自己的网站推广出去提高销售的10种方法
  • 肉山谷英雄传说新手任务登录英文网站怎么做老牛影视传媒有限公司
  • 国内站长做国外网站现在如何给网站做外链
  • 做网站选哪家公司没固定ip怎么做网站
  • 宣传网站怎么做的设计网站建设书南昌
  • 网站注册域名位置网站设计风格的关键词
  • 外国做的福利小视频在线观看网站广告拍摄制作公司
  • 辽宁网站建设企业织梦模板首页修改教程
  • 网站数据采集怎么做池州网站建设电话
  • seo站长教程筑业网
  • 手机网站设计创意说明设计常用网站
  • 网站如何做修改密码的相关验证开发一款彩票app需要多少钱
  • 免费网站论坛网站批量创建程序
  • 彩票网站建设维护wordpress支持微信登录
  • 门户网站做等级保护测评网站模板 自适应
  • 酒店和网站对接如何做域名不用了需要注销吗
  • 广东哪家网站建设后台管理便捷企业管理专业主要课程
  • 东莞网站优化公司推荐建设网站网站建站
  • 东莞倣网站在线识图
  • 网站优化技巧360建设网站免费下载
  • 天津网站建设哪家公司好网络营销公司模拟创建实训