Firebase SPM在设备上出错 – Xcode 14.2

huangapple go评论66阅读模式
英文:

Firebase SPM getting error with Device - Xcode 14.2

问题

在我的一个项目中,需要集成Google登录。因此,我使用了Firebase(9.6.0)和GoogleSignIn(7.0.0)的SPM。
Google登录在iOS模拟器中运行良好,但在设备上运行时出现错误。

错误信息:

-> 无法为iOS模拟器构建Webkit,但链接到了为macOS构建的目标文件,文件名为'GoogleSignIn',架构为x86_64

我尝试了此给定的链接中提到的解决方案,但仍然出现相同的错误。如果我使用Xcode 14运行相同的项目,那么在模拟器和设备上都可以正常工作。

是否有关于这个问题的解决方案?

英文:

In one of my project, required google login integration. So used SPM for Firebase(9.6.0) and GoogleSignIn(7.0.0).
Google sign in works well in iOS simulator but gives an error while running in device.

Error:

-> Webkit is not available for building for iOS Simulator, but linking in object file built for macOS, file 'GoogleSignIn' for architecture x86_64

Firebase SPM在设备上出错 – Xcode 14.2

I tried solutions in this given link but still the same error. If I run the same project with Xcode 14 then it works well with both simulator and device.

Is there any solution regarding this ?

答案1

得分: 1

上述问题已解决

Xcode版本14.2存在问题。因为我尝试了许多在Google上建议的方法。

但后来我尝试了使用Xcode 14.3.1运行应用程序,它在模拟器和设备上都运行完美。

英文:

Above mentioned Issue Resolved

There is an issue with Xcode version of 14.2. Because I tried so many things which is suggested on google.

But then I tried to run the app with Xcode 14.3.1 and it works perfect in both simulator and device.

huangapple
  • 本文由 发表于 2023年7月24日 20:02:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76754312.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定