I have published my app in TestFlight but it is crashing while startup. When I view crash logs, it say “No such module 'Flutter’”. I do know how to fix.
I have published my app in TestFlight but it is crashing while startup. When I view crash logs, it say “No such module 'Flutter’”. I do know how to fix.
This apparently a bug in XCode 13.1.
It is claimed by Flutter team to be a bug with the visual component of XCode... as evidenced by the fact that the project will still build and run from XCode.
There are many reported ways to get rid of it temporarily, such as doing Product\build , Product\Clean Build Folder, or running the project on IOS from within Android Studio...
But these are only temporary and the problem will reappear.
Just did like @Tasnuva said, and it worked in my case:
podfile.lock file and Pods folderpod install then pod updateRunner.xcworkspaceNo such module Flutter still exist, just ignore and run as usualNo such module flutter suddenly disappear after build succeedIn my case it was me not putting
install_all_flutter_pods(flutter_application_path)
in the Podfile
for target 'my_app'
I added it for the testing target but not the project...
than pod install
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'my_app' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for counter_app
flutter_application_path = '../flutter_project'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
install_all_flutter_pods(flutter_application_path)
target 'my_appTests' do
inherit! :search_paths
# Pods for testing
install_all_flutter_pods(flutter_application_path)
end
target 'my_appUITests' do
# Pods for testing
install_all_flutter_pods(flutter_application_path)
end
end