google / GoogleSignIn-iOS

Enables iOS and macOS apps to sign in with Google.
https://developers.google.com/identity/sign-in/ios
Apache License 2.0
506 stars 201 forks source link

Unable to build Static Library (.a file) #344

Closed cryptrr closed 11 months ago

cryptrr commented 1 year ago

Building the objective-C target GoogleSignIn isn't creating static .a file.

Instead it is outputting .o files.

Screenshot 2023-10-24 at 6 12 10 AM

I tried changing Product type to static

products: [
    .library(
      name: "GoogleSignIn",
      type: .static,
      targets: [
        "GoogleSignIn",
      ]
    ),
    .library(
      name: "GoogleSignInSwift",
      type: .static,
      targets: [
        "GoogleSignInSwift",
      ]
    ),
  ],

Still it is creating .o files instead of .a file.

Juniorhau commented 11 months ago

Building the objective-C target GoogleSignIn isn't creating static .a file.

Instead it is outputting .o files.

Screenshot 2023-10-24 at 6 12 10 AM

I tried changing Product type to static


products: [

    .library(

      name: "GoogleSignIn",

      type: .static,

      targets: [

        "GoogleSignIn",

      ]

    ),

    .library(

      name: "GoogleSignInSwift",

      type: .static,

      targets: [

        "GoogleSignInSwift",

      ]

    ),

  ],

Still it is creating .o files instead of .a file.

mdmathias commented 11 months ago

We do not distribute GoogleSignIn as a compiled framework or as a static library. You could perhaps do this on your own by wrapping GoogleSignIn locally and following instructions from Apple.