我有一个实施GoogleSignIn的项目。我有一段时间没有参与该项目(因为在Xcode 9之前,甚至可能是8年之前),现在它还没有建立,因为" GoogleSignIn.h无法找到"在项目桥接头文件中。
Google登录之前一直在工作,我认为这意味着我正确地创建了项目桥接标题。 (正如您在podfile中看到的那样,我确实将Google/SignIn
更改为GoogleSignIn
或其他任何更改)。 GoogleSignIn.h
似乎确实在工作区中!它就在Pods(project)/Pods(folder)/GoogleSignIn/Frameworks/GooleSignIn.framework/Headers/GoogleSignIn.h
中,因此可以读取:
#import "GIDAuthentication.h"
#import "GIDGoogleUser.h"
#import "GIDProfileData.h"
#import "GIDSignIn.h"
#import "GIDSignInButton.h"
自从回到项目后,我已经使用pod deintegrate
和pod clean
(当然还有pod install
)删除了一些Facebook pod(导致了一些构建问题)和Firebase pods(创建一些线程警告),并从Google / SignIn to
GoogleSignIn`(或其他任何更改)进行更改,我的podfile当前读取:
# Uncomment the next line to define a global platform for your project
platform :ios, '8.0'
target 'Your Song' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Your Song
pod 'RealmSwift'
pod 'RealmSearchViewController'
pod 'GoogleSignIn'
target 'Your SongTests' do
inherit! :search_paths
# Pods for testing
pod 'RealmSwift'
pod 'RealmSearchViewController'
pod 'GoogleSignIn'
pod 'KIF'
pod 'Nimble'
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
为什么它没有看到GoogleSignIn.h
?或者还有别的我做错了吗?