【问题标题】:ARC Semantic Issue : No visible @interface for 'UIImage' declares the selectorARC 语义问题:“UIImage”没有可见的@interface 声明选择器
【发布时间】:2022-10-17 22:16:26
【问题描述】:

我是新来的。我正在尝试使用 VS Code 创建 IOS 构建并得到以下 2 个错误:

  1. ARC 语义问题 (Xcode):“UIImage”没有可见的@interface 声明选择器 'imageByPreparingForDisplay'
  2. ARC 语义问题 (Xcode):“UIImage”没有可见的@interface 声明选择器 'imageByPreparingThumbnailOfSize:'

    请帮我解决这个问题。谢谢

【问题讨论】:

  • @matt 你有解决这个问题的方法吗?谢谢
  • 你有没有找到解决这个问题的方法?

标签: ios xcode flutter


【解决方案1】:

可能是如果您使用 file_picker 或与 UIImage 相关的任何其他颤振依赖项,那么您可以将它们更新到最新版本

【讨论】:

    【解决方案2】:

    link 中提供了解决方案。

    target 'Runner' do
      use_frameworks!
      use_modular_headers!
    
      flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
    
      pod 'SDWebImage', '5.12.6'
    end
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-04
      • 1970-01-01
      • 1970-01-01
      • 2019-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-28
      相关资源
      最近更新 更多