Closed amadeuszpolak closed 11 months ago
We're experiencing the same thing, but with 6.2.4
. In 6.2.4
the offending import is in GIDAuthentication.h
rather than GIDGoogleUser
We're experiencing the same issue - thanks @amadeuszpolak - your workaround helped.
However we're not sure why the SWIFT_PACKAGE flag is on in the first place since we're also only using the dependency from Cocoapods.
Any idea when this can be fixed for us?
Hi all. Sorry for the delay.
I'm not able to reproduce this issue. I created a new test app (iOS, Swift), and added a Podfile
like the below:
target 'Test' do
use_frameworks!
pod 'GoogleSignIn', '~> 7.0.0'
end
I then ran pod install
and opened the resulting Test.xcworkspace
. Next, I just imported GoogleSignIn
into a file, exercised GIDSignIn
a bit, added a breakpoint, and ran the app. When execution paused at the breakpoint, I ran po gid
in the console and saw output (and no crash). See below for what the file looked like:
//
// ViewController.swift
// Test
import UIKit
import GoogleSignIn
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let gid = GIDSignIn.sharedInstance
print(gid)
}
}
Could I get more detailed reproduction steps? It would be nice to also have a link to a project with this issue. Instructions like the below would help:
cd
to project XYZpod install
.xcworkspace
po someValue
It seems that the same issue can be reproduced by:
import GoogleSignIn
in the initial view controller's fileviewDidLoad
po navigationController
GoogleSignIn v6.1.0 is the latest that doesn't cause the same issue.
Hi folks, touching on this issue again.
Unfortunately, I am unable to reproduce this issue. My attempt looked like the following:
pod install
and opened the created Test.xcworkspace
GoogleSignIn
and FacebookCore
in view controller fileGIDSignIn
in view controller like below:
super.viewDidLoad()
let gid = GIDSignIn.sharedInstance
print(gid)
}
print(gid)
and ran the apppo gid
in console At this point I received output and no crash. For more context, I'm using the following versions:
I'll be closing this issue as "Can't repro" but if you continue to still encounter the error then please give reproduction steps and any other information (screenshots, stack traces, etc.) that could help me reproduce it, so we can open this up again.
Hi folks, touching on this issue again.
Unfortunately, I am unable to reproduce this issue. My attempt looked like the following:
- Create a new test app - UIKit project
- Created a pod file and added GoogleSignIn v7.0.0 as a pod.
- Ran
pod install
and opened the createdTest.xcworkspace
- Added FacebookCore from Facebook SDK for iOS as a Swift package
- Imported
GoogleSignIn
andFacebookCore
in view controller file- Exercise
GIDSignIn
in view controller like below:super.viewDidLoad() let gid = GIDSignIn.sharedInstance print(gid) }
- Added a breakpoint at
print(gid)
and ran the app
- At breakpoint: ran command
po gid
in consoleAt this point I received output and no crash. For more context, I'm using the following versions:
- cocoapods v1.11.2
- Xcode v15.0.1
- FacebookCore v16.2.1
- GoogleSignIn v7.0.0
I'll be closing this issue as "Can't repro" but if you continue to still encounter the error then please give reproduction steps and any other information (screenshots, stack traces, etc.) that could help me reproduce it, so we can open this up again.
@brnnmrls Did you try po navigationController
in the debugger at the breakpoint?
@jovandgo Yes, I did. I went ahead and added the navigation controller, I was able to see an instance and no crash. Additionally, I changed the version of FacebookCore to use v16.1.3 to follow your reproduction steps.
A suggestion would be to narrow the scope by removing the FacebookCore dependency and keeping GoogleSignIn, running the app, then running the "po" command. These steps should then be repeated by removing GoogleSignIn and keeping FacebookCore. It's unlikely but this is meant to check if the error is thrown whenever the dependencies are imported together or specific to a single one.
An additional thought refers to the initial comment on this thread where "GoogleSignIn 7.0.0 is a cocoapod dependency of my internal pod dependency. (It is not used as a SWIFT PACKAGE!)
" Could I get a bit clarification on what this may mean? Our interpretation on this was creating an app that uses a pod file to pull in GoogleSignIn v7.0.0 while Swift package manager pulls in another dependency, in this case FacebookCore. Any information would be great!
Describe the bug
While debugging in project, I have an issue with "po" commend. When trying to "po" some variable I got an error like this:
GoogleSignIn 7.0.0 is a cocoapod dependency of my internal pod dependency. (It is not used as a SWIFT PACKAGE!)
Bug can be fixed by replacing in GIDGoogleUser:
by this:
#import <GTMAppAuth/GTMAppAuthFetcherAuthorization.h>
To ReproduceExpected behavior variable should be print out
Environment