firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Cannot Build app Xcode 14.1 iOS16.1

Open Bengua27 opened this issue 3 years ago • 14 comments

Description

Cannot build my app with Xcode 14.1 and iOS 16.1 beta 1. It says cannot build module 'GameKit' in FIRGameCenterAuthProvider.m file.

Reproducing the issue

No response

Firebase SDK Version

9.6.0

Xcode Version

14.1

Installation Method

Swift Package Manager

Firebase Product(s)

Authentication

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

Bengua27 avatar Sep 18 '22 15:09 Bengua27

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Sep 18 '22 15:09 google-oss-bot

image

siburb avatar Sep 19 '22 02:09 siburb

facing the same issue

image

kushsolitary avatar Sep 19 '22 10:09 kushsolitary

same issue here, please give us a workaround

MaxMaxP avatar Sep 19 '22 10:09 MaxMaxP

Thanks for the report. I've also reproduced the same error. I'll check with the team if it's a bug on the SDK or in Xcode since it's only happening on Xcode 14.1. I've also found a ticket in Apple forum getting the same issue.

rizafran avatar Sep 19 '22 12:09 rizafran

This looks like an Apple Issue in the Xcode 14.1 beta. I recommend sticking with Xcode 14.0 until Apple resolves it.

To workaround the issue with the Xcode 14.1 beta, if you're not using the GameCenter Firebase Auth provider, you can remove the file FirebaseAuth/Sources/AuthProvider/GameCenter/FIRGameCenterAuthProvider.m after installing Firebase and rebuild.

paulb777 avatar Sep 19 '22 15:09 paulb777

Same issue. Need to use Xcode14.1 beta to build Live Activities

coolioxlr avatar Sep 20 '22 07:09 coolioxlr

just to confirm that the workaround suggested is working for now, the project is compiling. Thanks!

MaxMaxP avatar Sep 20 '22 08:09 MaxMaxP

This looks like an Apple Issue in the Xcode 14.1 beta. I recommend sticking with Xcode 14.0 until Apple resolves it.

To workaround the issue with the Xcode 14.1 beta, if you're not using the GameCenter Firebase Auth provider, you can remove the file FirebaseAuth/Sources/AuthProvider/GameCenter/FIRGameCenterAuthProvider.m after installing Firebase and rebuild.

@paulb777 Hey - how do you remove that file if it's installed via SPM?

kushsolitary avatar Sep 20 '22 09:09 kushsolitary

Works for me for now @paulb777 thanks. I will try to reinstall pod after this issue is solved by apple

yunustek avatar Sep 20 '22 09:09 yunustek

@yunustek From SPM, change the file permissions from the command line and comment out the contents of the file

paulb777 avatar Sep 20 '22 14:09 paulb777

@paulb777 thanks, that worked!

kushsolitary avatar Sep 20 '22 15:09 kushsolitary

The issue is NOT fixed with Xcode 14.1 beta 2

paulb777 avatar Sep 20 '22 21:09 paulb777

The issue is NOT fixed with Xcode 14.1 beta 2

not, still here

ivanvorobei avatar Sep 21 '22 10:09 ivanvorobei

Same problem with Xcode 14.1 beta 2 Apple is really getting into my nerves 😤

macStyle avatar Sep 22 '22 11:09 macStyle

This issue is fixed in Xcode 14.1 beta 3 🎉

kushsolitary avatar Sep 28 '22 08:09 kushsolitary

@kushsolitary Thanks for checking and sharing the news!

paulb777 avatar Sep 28 '22 13:09 paulb777