Git Product home page Git Product logo

Comments (5)

jmagman avatar jmagman commented on May 2, 2024 1

Indeed, Swift clients should use use_frameworks!. I investigated this more in flutter/flutter#25676 (comment) (mostly in the context of Swift plugins being consumed by Objective-C clients). However there's no reason not to support module maps regardless of the client language. DEFINES_MODULE=YES is the default build setting in a new vanilla Xcode Objective-C or Swift framework targets.

In any case for the sake of this GitHub Action request, --use-libraries is still a good thing to test for Objective-C clients.

from googlesignin-ios.

paulb777 avatar paulb777 commented on May 2, 2024 1

Agreed, and also --use-static-framework testing should be added since that is the more modern way to choose static linking.

from googlesignin-ios.

paulb777 avatar paulb777 commented on May 2, 2024

Here's an example that also tests --use-static-framework as well as other Apple platforms - https://github.com/firebase/firebase-ios-sdk/blob/master/.github/workflows/core.yml#L68

from googlesignin-ios.

jmagman avatar jmagman commented on May 2, 2024

https://github.com/firebase/firebase-ios-sdk/blob/04ab074265633049d5518866515e3bd7fc0de246/.github/workflows/core.yml#L78-L79
says

          # Tests are skipped since the Swift tests need modules.
          '--skip-tests --use-libraries'

"Tests are skipped since the Swift tests need modules" is the same bug in that repo as #32. I filed this GitHub Action request to validate the modules are generated for libraries when that issue is fixed, which can be done by adding an @import GoogleSignIn in the unit tests or making any of them Swift files.

from googlesignin-ios.

paulb777 avatar paulb777 commented on May 2, 2024

That's arguably not a bug since it can be argued that the decision to use modules or not should be left to the pod consumer who can specify use_frameworks! or use_frameworks! :linkage => :static to generate frameworks and modules if desired. I believe CocoaPods has always documented that Swift clients should use use_frameworks! and it was changed awhile ago so that the Podfile created by pod init has use_frameworks! on. I realize that I'm treating modules and frameworks as a synonym, and maybe that's an issue, but we haven't heard about it from Firebase clients.

from googlesignin-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.