title: flutter No such module 'FBSDKCoreKit' error
body: <p>I am a beginner at app development.
  I am making an app with flutter, and the following error occurred while building with ios.</p>
  <pre><code>Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
  
  Swift Compiler Error (Xcode): No such module 'FBSDKCoreKit'
  /development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:8:7
  2
  
  Could not build the application for the simulator.
  Error launching application on iPhone 12.
  Exited (sigterm)
  </code></pre>
  <p>But I never installed the facebook_auth package.
  There is no flutter_facebook_auth in my pubspec.yaml file either.</p>
  <p>But I keep getting the above error. Is there any solution?
  Thank you for reading.</p>
  <p>===============================================================</p>
  <p>I did
  <code>flutter clean</code> -&gt; <code>flutter pub get</code> -&gt; <code>cd ios</code> -&gt; <code>pod install</code> -&gt; run</p>
  <p>And following is the result</p>
  <pre><code>/Users/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:109:16: warning: unused variable 'swf' [-Wunused-variable]
          const char swf[3] = {'F', 'W', 'S'};
                     ^
      /Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:110:16: warning: unused variable 'swc' [-Wunused-variable]
          const char swc[3] = {'C', 'W', 'S'};
                     ^
      4 warnings generated.
      warning: [CP] Unable to find matching .xcframework slice in 'ios-arm64 ios-arm64_x86_64-simulator ios-arm64_x86_64-maccatalyst' for the current build architectures (arm64 x86_64 i386).
      Command CompileSwift failed with a nonzero exit code
      /Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:9:8: error: no such module 'FBSDKCoreKit'
      import FBSDKCoreKit
             ^
      /Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:9:8: error: no such module 'FBSDKCoreKit'
      import FBSDKCoreKit
             ^
      /Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:9:8: error: no such module 'FBSDKCoreKit'
      import FBSDKCoreKit
             ^
      note: Using new build system
      note: Building targets in parallel
      note: Planning build
      note: Analyzing workspace
      note: Constructing build description
      note: Build preparation complete
      warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users//Downloads/GoogleService-Info.plist (in target 'Runner' from project 'Runner')
      Result bundle written to path:
          /var/folders/ly/7jxqf41945g08nj820kfkblr0000gn/T/flutter_tools.QgWT3r/flutter_ios_build_temp_diruHeVSi/temporary_xcresult_bundle
  Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
  
  Swift Compiler Error (Xcode): No such module 'FBSDKCoreKit'
  /Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:8:7
  2
  
  Could not build the application for the simulator.
  Error launching application on iPhone 12.
  
  </code></pre>
  <p>Pod install result is fine.
  <a href="https://i.stack.imgur.com/lzCTO.jpg" rel="nofollow noreferrer">This is the part of the pod install result</a></p>
  <p>=================================================
  <code>pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:8:7 File contents: </code></p>
  <p><a href="https://i.stack.imgur.com/de478.png" rel="nofollow noreferrer">facebookauth.swift file contents</a></p>
  <p>===============================================</p>
  <p>I found following-facebook auth related- messages when i run the app on real android device</p>
  <p><a href="https://i.stack.imgur.com/OzJZc.png" rel="nofollow noreferrer">error msg when running on android device</a></p>