티스토리 뷰

반응형
Launching lib/main.dart on iPhone 14 in debug mode...
main.dart:1
Xcode build done.                                           16.9s
Failed to build iOS app
Semantic Issue (Xcode): 'new' is unavailable
/Users/dean/.pub-cache/hosted/pub.dev/firebase_app_check-0.1.2/ios/Classes/FLTAppCheckProvider.m:18:55

Semantic Issue (Xcode): 'new' is unavailable
/Users/dean/.pub-cache/hosted/pub.dev/firebase_app_check-0.1.2/ios/Classes/FLTAppCheckProvider.m:22:53

Semantic Issue (Xcode): 'new' is unavailable
/Users/dean/.pub-cache/hosted/pub.dev/firebase_app_check-0.1.2/ios/Classes/FLTAppCheckProvider.m:30:57

Could not build the application for the simulator.
Error launching application on iPhone 14.
Exited

firebase app check를 설치했는데 빌드시 에러가 발생한다..

 

/Users/dean/.pub-cache/hosted/pub.dev/firebase_app_check-0.1.2/ios/Classes/FLTAppCheckProvider.m 파일에서

에러가 발생하는 18번째 줄 22번째 줄 30번째 줄에 있는

[[FIRAppCheckDebugProvider new] initWithApp:app];
를 
[[FIRAppCheckDebugProvider alloc] initWithApp:app];

이렇게 변경해주면 정상적으로 빌드가 되는 것을 확인할 수 있다.

반응형