As title my Flutter app works fine, also building it with Xcode works and it runs fine on devices but when I try to Archive, the app build fails.
I will show the code with the error:
#if __has_include(<cloud_firestore/FLTFirebaseFirestorePlugin.h>)
#import <cloud_firestore/FLTFirebaseFirestorePlugin.h>
#else
@import cloud_firestore; //Error here
#endif
The error is: Module 'cloud_firestore' not found
This is weird because if I build the app with Xcode on any iPhone it builds and runs fine, I have this problem only when archiving. Any idea?
Solved, I was opening the .xcodeproj
while I had to open the .xcworkspace
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.