skip to Main Content

I am new to flutter. I am trying to create IOS build using VS Code and getting below 2 errors:

  1. ARC Semantic Issue (Xcode): No visible @interface for ‘UIImage’ declares the selector
    ‘imageByPreparingForDisplay’
  2. ARC Semantic Issue (Xcode): No visible @interface for ‘UIImage’ declares the selector
    ‘imageByPreparingThumbnailOfSize:’

Please help me to fix this. Thanks

2

Answers


  1. May be if you are using file_picker or any other flutter dependencies related to UIImage then you can update those to latest version

    Login or Signup to reply.
  2. Solution is presented in this 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search