Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zip: No such module 'GoogleSignInSwift' on import #9937

Closed
ionothanus opened this issue Jun 23, 2022 · 3 comments · Fixed by #9948
Closed

Zip: No such module 'GoogleSignInSwift' on import #9937

ionothanus opened this issue Jun 23, 2022 · 3 comments · Fixed by #9948
Assignees
Labels
GoogleSignIn zip Issues related to binary distribution (zip file)
Milestone

Comments

@ionothanus
Copy link

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 13.4.1
  • Firebase SDK version: 9.2.0
  • Installation method: Zip file
  • Firebase Component: Google Sign In
  • Target platform(s): iOS

[REQUIRED] Step 2: Describe the problem

I've attempted to use the new GoogleSignInSwiftSupport xcframework in Firebase.zip in version 9.2.0. I can't get the compiler to import the module GoogleSignInSwift. Additionally, attempting to import GoogleSignInSwiftSupport (as the xcframework is named) produces additional errors.

I removed all other installations of Firebase dependencies from alternate sources, cleaned my build folder, and restarted Xcode, but the issue persists. If I remove the GoogleSignInSwift import, my project builds fine (i.e., all my other imports from this installation method are working).

Steps to reproduce:

  1. Add the GoogleSignInSwiftSupport xcframework from the Firebase zip to an iOS project, along with the GoogleSignIn framework & dependencies + resources
  2. Add any other Firebase frameworks as needed
  3. Attempt to import GoogleSignInSwift in the project
  4. Build

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

The error No such module 'GoogleSignInSwift' is produced.

If instead you attempt to import GoogleSignInSwiftSupport, in addition to the error No such module 'GoogleSignInSwiftSupport', you'll also receive a handful of other errors multiple times:
Redefinition of module 'GoogleSignInSwift'
Redefinition of module 'Swift'

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Relevant Code:

import GoogleSignInSwift
@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@rizafran rizafran added zip Issues related to binary distribution (zip file) GoogleSignIn and removed needs-triage labels Jun 23, 2022
@rizafran
Copy link
Contributor

Thanks for reporting this, @ionothanus. I was able to reproduce the issue. I'll inform the engineers about this and see what we can do.

@paulb777
Copy link
Member

I've reproduced. It looks like there are various inconsistencies in the CocoaPods/Xcode/Zip Builder tooling when the module name is different from the pod name.

We can do a bit more investigation, but as it looks now, we may need to drop GoogleSignInSwiftSupport from the zip as long as its module name does not match the pod name.

Sorry about the misfire in the 9.2.0 release.

cc: @petea

@paulb777 paulb777 added this to the 9.3.0 - M118 milestone Jun 23, 2022
@paulb777 paulb777 self-assigned this Jun 24, 2022
@firebase firebase locked and limited conversation to collaborators Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
GoogleSignIn zip Issues related to binary distribution (zip file)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants