Parse Issue (Xcode): Module 'fluttertoast' not found - ios

i have flutter code which is used to build ios and android app, when code run in xcode using simulator, it runs fine, but when run in android studio or in visual studio code using
flutter run --flavor stg
get the following error :
Parse Issue (Xcode): Module 'fluttertoast' not found
GeneratedPluginRegistrant.m:131:8 Could not build the application for
the simulator. Error launching application on iPhone 13.
Please help :(

It's lookes likes you are opening incorrect file. you should open
open runner.xcworkspace ,it worked!
also run pod install in IOS directory.

Related

Cant take to build in iOS after zebrautility: ^0.0.38 added

I'm new to Xcode in a flutter, when I integrated zebrautility plugin in the flutter project, the android module worked fine, and print works.
When I try to run on iPhone, it always throws an error
Could not build the precompiled application for the device.
Error (Xcode): Library not found for -lZSDK_API
Error launching application on Kirubha's iPhone.
Found the issue in plugin.
Need to add '.a' extension as like ( s.vendored_libraries = 'libZSDK_API.a' )
in zebrautility.podspec

Why does xCode cannot build my flutter app with 'sqflite' not found error

I'm trying to build my Flutter app for iOS using xCode and got error:
.../ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'sqflite' not found
When I'm trying to build application with flutter with command
flutter build ios
I don't have any problem. Application build successfully.
I tried to delete Pod directory in ios folder and then install pods from scratch
flutter pub get
pod install
How to fix this problem with xCode?
XCode gives this type of Error like Module 'something' not found, when sometimes the problem is somewhere else.
So, what I did is after running flutter build ios command, I didn't try to run it in XCode. Because it was giving these errors.
So, I archived the app and tried to publish in App Store Connect. Then I found the real issue/bug on my code.
App store doesn't support transparent logo or app icon. This was the bug in my case.
So you can try to archive and publish to app store connect. It may show you the real reason.
Change your target Destination to > Any iOS Device
This work for me
"I found the solution,
In the existing project, once you guys add sqflite dependencies
Profile file in IOS folder will not generate code
we need to remove Podfile in ios
rm ios/Podfile
and run the project again, it works for me."
Credit:thanks to viroth-geek

Unable to run fresh kotlin multiplatform app on ios

Doing a fresh install of a kotlin multiplatform app I am unable to get the ios app to run. Android works just fine. My issue is Android Studio is unable to find xcode project schemes.
Following the tutorial from kotlin lang website get started it seems like it should just be able to run: https://kotlinlang.org/docs/mobile/create-first-app.html#run-on-a-different-iphone-simulated-device.
Here are my versions:
Android Studio: 4.1.1
Xcode: 12.2 (12B45b)
EDIT 1:
Here is the error mentioned in the configuration page of android studio:
Please check specified Xcode project file: can't grab Xcode schemes with /usr/bin/xcodebuild -project /Users/ommitedforbrevity/./iosApp/iosApp.xcodeproj -list
EDIT 2:
Log also shows several errors like this: TextMate bundle load error: Bundle mdx can't be registered
I confirmed that the bundled plugin TextMate Bundles is included and enabled.

Module 'flutter_local_notifications' not found in Xcode

In my app I am using flutter local notifications to push the notifications locally and the version of the package is: flutter_local_notifications: ^1.4.4+4. It is working perfectly fine on android. But it is throwing an error on Xcode saying "Module flutter_local_notifications is not found". Not sure what is causing this issue any help is appreciated.
This is my error:
fatal error: module 'flutter_local_notifications' not found
#import flutter_local_notifications;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Make your iOS version in pod file same as Xcode deployment info in Xcode refer to below images
Xcode deployment info
PodFile

IOKit/pwr_mgt/IOPMLib.h not found

I've just downloaded an open source project (Siphon link for download the source code) and I am trying to run it on the simulator, but I get this error IOKit/pwr_mgt/IOPMLib.h not found.
What's the problem?
(I've got XCode 5.1 and the app deployment target is iOS 7.1)

Resources