Coding

[Xcode 15] Firebase SDK An attribute list cannot appear here 오류 - flutter에서 해결하기

여우별동산 2023. 9. 25.

안녕하세요. IT 전문 블로거 여우별동산입니다.

iOS 17이 출시되면서 Xcode의 버전도 15로 업데이트되었습니다.

업데이트 이후 앱을 빌드하려는데 계속 다음과 같은 오류가 발생했습니다.


오류 살펴보기

/Users/sajinbangit/myniceflutterapp/ios/Pods/FirebaseFirestore/Firestore/Source/API/FIRFirestoreSettings.mm:33:1
An attribute list cannot appear here

Xcode에서 실행해도 동일한 오류 발생


오류 해결하기

cloud_firestore가 최신 버전이 아니었기 때문에 발생한 오류였습니다.

 

플러터에서는 아래의 명령어로 최신 버전으로 업그레이드할 수 있습니다.

flutter pub upgrade --major-versions

 

플러그인이 업그레이드되면서 코드에 변경이 있을 수 있습니다.

저는 해당 오류는 해결되었지만 코드 변경 등 여러 이슈로 또 다른 오류가 발생하였는데요.

그 오류에 대한 해결 방법은 제가 해결 방법을 알아내면 포스팅해드리겠습니다... 🤦🏻‍♂️


참고자료

위의 방법으로도 해결이 되지 않으셨나요?

아래 글에 다른 방법들이 나와 있습니다.

https://github.com/dpa99c/cordova-plugin-firebasex/issues/830

 

iOS 17/Xcode 15 build issues · Issue #830 · dpa99c/cordova-plugin-firebasex

Has anyone tried building an app with this plugin for iOS 17 yet? It seems that the plugin needs to be updated for iOS17. There are following problems within the Firebase Pods folder: In the xcconf...

github.com

 

댓글