-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XCode archive error 'No such module flutter_downloader' when using AppDelegate.swift #269
Comments
I'm closing this issue since the problem wasn't this plugin. Some flavor and runner configurations got messed up, but now everything works fine. |
Hi @JHBitencourt , how do you fix that? Could you show the code? |
I was facing the same issue, tried to fix but no luck... @JHBitencourt Can you share with me the right config which fixed the issue? |
Target iOS 9.0 to fix it. |
thanks @sunkaigoon , I changed all of the targets to iOS 9.0, but still no luck... Will other configure need to be set too? |
Try to recreate ios project
|
@tronghuy5555 @batteryfull as I said my problem was because I have custom schemes, and my prod scheme was pointing to the build configuration of other one in the archive phase. So neither changing target to iOS 9.0 or recreating ios project would work. And this last one is not indicated if you have custom configurations. |
Many thanks, @hnvn and @JHBitencourt on your advise and update. But setting targets to iOS 9.0, re-create ios project but the error still present. I was using a custom scheme for different flavours and worked fine previously. Again thank you all! |
I have faced this kind of issue when I customize Xcode project with many flavours (build target). In my case, I recreate a simpler project to make sure the plugin work and compare the Xcode project setting of the working project with my original project line-to-line, it will point you out how to correct the project setting. |
I have faced the same issue, made Product->Clean and Product->Build, its fixed the problem for me |
Any update on this. I am also facing "No such module 'flutter_downloader'" issue. I tried every step mentioned in the thread but nothing worked. |
Open xcworkspace instead of xcodeproj and it will work fine |
I am also facing "No such module 'flutter_downloader'" issue (debug mode is fine). |
flutter/flutter#43986 (comment) |
None of the above solutions worked for me so this is how I solved mine:
|
@nivla360 Thanks it worked for me. |
Also check if your iOS Deployment Target matches the Podfile |
@nivla360 Worked for me! I had to do some pod updates stuff as well, but right after building, it worked! I opened the ios folder instead on step 4, but there shouldn't be much of a difference. |
Also had to restart Xcode. |
This solved my problem. Thank you. |
I can't archive the project with XCode if I use
AppDelegate.swift
as stated in the docs.Both
flutter run --release
andflutter build ios
work.XCode:
Version 11.3.1 (11C504)
AppDelegate.swift
:flutter doctor -v
:The text was updated successfully, but these errors were encountered: