How to fix "No such module 'FirebaseDatabaseUI'" in Swift 4?

时间:2019-02-18 00:50:53

标签: ios firebase firebase-realtime-database swift4 firebaseui

I installed FirebaseDatabaseUI via Cocoapods, closed the .xcodeproj then opened the .xcodeworkspace, but whenever I try to import it within my code, it keeps saying No such module 'FirebaseDatabaseUI'

Supposing it might be a dependency issue, I decided to install the FirebaseUI full bundle by pod 'FirebaseUI', but achieved no success at all. As can be seen in the screenshot I took of my code, FirebaseDatabaseUI is the only FirebaseUI library in which is occurring the issue. code Can someone tell me what might be wrong?

1 个答案:

答案 0 :(得分:1)

实际上,所有子规范(如数据库,Firestore,Auth ...)都隐式属于FirebaseUI。您只看到FirebaseDatabaseUI收到错误警告,因为您将其放在首位,如果将其他FirebaseXYZUI放在首位,它也会显示该错误。

要解决该错误,只需import FirebaseUI并删除所有其他FirebaseXYZUI。
希望这会有所帮助。