Module 'apple_sign_in' not found

3,080

Solution 1

It was because I came to delete the Podfile and regenerate it. That had generated a lower version of iOS than that needed by apple_sign_in module as minimum supported iOS version.

Once I updated the minimum supported iOS version to the minimum required by apple_sign_in plugin, the problem was resolved.

As of apple_sign_in: ^0.1.0. we can use platform :ios, '10.0'

Solution 2

Make sure you're opening xcode from the Runner.xcworkspace and not the Runner.xcodeproj. cocoapods requires you to archive/build from this entry point. In the flutter docs they mention this but its easy to forget/overlook as the files are so similarly named and used.

Share:
3,080
erluxman
Author by

erluxman

Open for remote jobs You can also hire me through upwork https://wwwerluxman.com https://www.upwork.com/freelancers/~01ca1c56b1ce85b4dd

Updated on December 18, 2022

Comments

  • erluxman
    erluxman over 1 year

    I am using flutter with https://pub.dev/packages/apple_sign_in package for logging in with apple.

    I was able to publish the earlier version of app with apple_sign_in but now I am not being able to archive the Xcode Project for publishing.

    Note: I can still build the app and app runs but It does build when archiving.and throws the error saying

    Module 'apple_sign_in' not found enter image description here

  • Raja C
    Raja C over 3 years
    I have set ios target version to 10.0, but it still doesn't work
  • Ned
    Ned over 3 years
    @RajaC same here, posted the fix I found below.
  • krumpli
    krumpli over 3 years
    when I try to open the workspace it defaults to xcodeproj
  • Ned
    Ned over 3 years
    @krumpli In XCode File > Close Workspace > Select Runner.xcworkspace from your flutter project's /ios folder
  • Rio Weber
    Rio Weber over 3 years
    This was the answer for me, thanks. Any idea why this is this case?
  • Ned
    Ned over 3 years
    As far as I know, everything is designed around the specific Runner.xcworkspace workspace and file paths within. Runner.xcworkspace has different file paths which results in errors.