Launching lib/main.dart on iPhone 15 in debug mode…
Xcode build done. 26.1s
Failed to build iOS app
Swift Compiler Error (Xcode): Expressions are not allowed at the top level
/Users/jainambarbhaya/Projects/schedule/ios/Pods/FirebaseSharedSwift/FirebaseSharedSwift/Sources/third_party/FirebaseDataEncoder/FirebaseDataEncoder.swift:2613:0
Swift Compiler Error (Xcode): Consecutive statements on a line must be separated by ‘;’
/Users/jainambarbhaya/Projects/schedule/ios/Pods/FirebaseSharedSwift/FirebaseSharedSwift/Sources/third_party/FirebaseDataEncoder/FirebaseDataEncoder.swift:2613:19
Swift Compiler Error (Xcode): Consecutive declarations on a line must be separated by ‘;’
/Users/jainambarbhaya/Projects/schedule/ios/Pods/FirebaseSharedSwift/FirebaseSharedSwift/Sources/third_party/FirebaseDataEncoder/FirebaseDataEncoder.swift:288:63
Swift Compiler Error (Xcode): Expected declaration
/Users/jainambarbhaya/Projects/schedule/ios/Pods/FirebaseSharedSwift/FirebaseSharedSwift/Sources/third_party/FirebaseDataEncoder/FirebaseDataEncoder.swift:288:64
Swift Compiler Error (Xcode): Cannot find type ‘sending’ in scope
/Users/jainambarbhaya/Projects/schedule/ios/Pods/FirebaseSharedSwift/FirebaseSharedSwift/Sources/third_party/FirebaseDataEncoder/FirebaseDataEncoder.swift:288:56
Swift Compiler Error (Xcode): Cannot find ‘nonisolated’ in scope
/Users/jainambarbhaya/Projects/schedule/ios/Pods/FirebaseSharedSwift/FirebaseSharedSwift/Sources/third_party/FirebaseDataEncoder/FirebaseDataEncoder.swift:2613:0
Swift Compiler Error (Xcode): Cannot find ‘unsafe’ in scope
/Users/jainambarbhaya/Projects/schedule/ios/Pods/FirebaseSharedSwift/FirebaseSharedSwift/Sources/third_party/FirebaseDataEncoder/FirebaseDataEncoder.swift:2613:12
Could not build the application for the simulator.
Error launching application on iPhone 15.
Exited (1).
If anyone knows exact solution to this please help