Build failing for iOS: Flutter - ios

Build on iOS fails and showing random error like,
Unhandled Exception: MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
Can anyone share the solution? Thanks in advance.
NB: It's working on Android well.

Related

Cannot find type 'Product' in scope - iOS build failed react-native-iap

I am getting errors while building an app in iOS, my build is getting failed due to some issue in react-native-iap, and I am unable to figure it out, anyone please help me.

Flutter beacons_plugin - Unhandled Exception: MissingPluginException(No implementation found for method startMonitoring on channel beacons_plugin)

I've run into this situation: the plugin and my code ran perfectly in Android, but in iOS these errors happened:
(Screenshot - my reputation is too low to post images. For easy reading I took the screenshot of VSCode debug console; the errors were the same while run it from Xcode)
https://user-images.githubusercontent.com/10349431/94634472-b2d42e80-0302-11eb-9dc7-fa2956511b82.png
It shows in the debug screenshot above exceptions took place while invoking method startMonitoring, but after I commented related codes it turned into other methods (e.g. stopMonitoring, addRegion, etc).
(BTW, the error messages may be as many as hundreds of lines - in the screenshot above, there were actually 381 lines of total error messages.)
My environment:
MacOS 10.15.7
iOS 12.4.8 (iPad) 13.3 (iPhone)
Android 8.0.0
Xcode 12.0.1 (12A7300)
VSCode 1.49.2
Android Studio 4.0.1 with all SDK after Android 5.1 Lollipop
Thanks for any help!
I got it... In this case, BeaconsPlugin.listenToBeacons should not be placed below addRegion or startMonitoring/stopMonitoring. It should be in the first line of all actions of this plugin in the initPlatformState scope, just like it has been in the example.
Sorry for dumb question.
This error mostly occurs when you try to Hot Reload or Hot Restart after just adding new package to your pubspec.yaml.
Just stop the running project(app) and then freshly run it again. So that the added package(which contains the implementations) also pushed to the device
please check : https://stackoverflow.com/a/60088062/11989529
and this : MissingPluginException while using plugin for flutter
the same problem

App crashes when build release with React Native 0.60: Unhandled JS Exception: null is not an object (evaluating 'n.apply')

I'm building an app with React Native 0.60.0. I tried to build to my real device and my app was crashed right at the launching.
I did not implement any code with API so I think it came from some 3rd libraries or RN 0.60.0
Oop! I found the reason of my issue. It came from Reactotron library. I will close this topic from now.

Sending uia command "target.deactivateAppForDuration()" in calabash-ios consolre returns error message

I am creating some iOS automation tests. When I call send_uia_command
:command => "target.deactivateAppForDuration(5)"
in calabash-ios console, the app goes to background, after duration background app screen is opened and I get the following error:
RuntimeError: uia action failed because: Input: target.deactivateAppForDuration(5)
. Error: VerboseError: -[UIAElementNil _prepareForAction:]: unrecognized selector sent to instance 0x17676700 deactivateAppForDuration#[native code]
eval code
eval#[native code]
What could be the issue?
Update: This error is returned only on iOS 9.
iOS 8.4.1 works fine.
Please see the Calabash iOS 0.16.3 release notes.
The short answer is that UIAutomation deactivateAppForDuration is broken on iOS 9.
There is a radar and we are tracking this issue here.
When reporting problems with Calabash, please follow this guide.

BlackBerry Packager for Android Error - An error occurred while processing your request

Today I decided to repackage, sign and publish my Android app to the Windows platform using the 'BlackBerry Packager for Android'. https://bdsc.webapps.blackberry.com/android/bpaa/app-signing-bar-creation
However it doesn't seem to work and I get the following error:
We're sorry, an error occurred while processing your request. The
information has been registered and we're working on getting this
fixed as soon as we can.
I have searched online and there seems to be no answer for this.
Has anyone experienced this issue or knows how I can resolve it?
Thanks a million,
Sarah.

Resources