objc 코드가 많은 Firebase와 Tuist를 함께 사용하면서
정말 애를 많이 먹고 있는데요...
Terminating app due to uncaught exception 'NSinvalidArgumentException', reason: '-[FIRInstallationsitem registeredInstallationWithJSONData:date:error:]: unrecognized selector sent to instance 0x281b0e5c0'
이라는 에러가 발생하더라구요.
GPT 한테 물어보니.. 라고 해서
세팅 설정을 이렇게 수정해서 해결했습니다.
setting = Settings.settings(base: ["OTHER_LDFLAGS":["-all_load -Objc"]],
https://groups.google.com/g/firebase-talk/c/6hTzxWe2wlg
iOS [FIRApp configure] crash: +[NSData gtm_dataByGzippingData:]
Hello, Michael Lehenbauer I have faced the same problem, I use cocoa pod to install Firebase. "Firbase.configure" not crash on simulator, but crashed on my device, same log as Coach Roebuck and -ObC not work for me
groups.google.com
해당 글의 마지막 내용인
을 보고 어라 혹시? 해서 수정한건데 잘 돌아가길래 일단은 이렇게 사용하고 있습니다..
Objc의 세계는 너무 어렵네요 . . . 🥹
두개의 차이점은 이렇다고 합니다.
혹시 틀린 방법이거나 잘못된 개념이라면 제발 알려주시길 바라면서 . ..
일단은 이렇게 마무리.. !!!
++)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSData gul_dataByGzippingData:error:]: unrecognized selector sent to class 0x1e6f16d20'
*** First throw call stack:
(0x195c96678 0x18df3fc80 0x195d26e84 0x195bdbd88 0x195d1c950 0x1044b7b70 0x1044b7714 0x1044c19e8 0x1044c1a34 0x1044a4a80 0x10445a474 0x10445abf8 0x10445eba4 0x10445d3fc 0x104459bb8 0x10444c480 0x1044449b8 0x106580f50 0x106582b34 0x10658a98c 0x10658b728 0x1065985f8 0x106597c2c 0x1ffcdb964 0x1ffcdba04)
libc++abi: terminating due to uncaught exception of type NSException
해당 에러 발생 시에도 동일하게 해결하였습니다.
동일하게 Firebase와 관련해서 발생하는 에러 같아요.
(Auth에 create할때 발생하였음)
'Swift' 카테고리의 다른 글
Swift, Firebase에서 Apple Login 탈퇴 구현하기 (0) | 2024.02.26 |
---|---|
Swift, Local Notification에 이미지 넣는 방법 (0) | 2024.02.23 |
Swift, FCM 사용 중 발생하는 FirebaseAppDelegateProxyEnabled 관련 에러 해결하기 (0) | 2024.02.22 |
Tuist의 의존성 관리 방법과 Ignoring duplicate libraries: '-lc++' 에러 해결하기 (0) | 2024.02.09 |
Tuist와 Signing, Tuist 에서 프로비저닝 프로파일 설정하기 (0) | 2024.02.05 |