In xcode(13.2.1) 'po' command is not working - ios

I added a breakpoint & try to run the 'po' command but it is not working at all. It is not working at any scope, any other controller, or any other project also. It gives me the below error.
po viewModel.scanResult.gender
error: <EXPR>:2:11: error: cannot find type '$__lldb_context' in scope
extension $__lldb_context {
^~~~~~~~~~~~~~~
error: <EXPR>:19:5: error: cannot find '$__lldb_injected_self' in scope
$__lldb_injected_self.$__lldb_wrapped_expr_1(
^~~~~~~~~~~~~~~~~~~~~
'v' also not working at all. Please see bellow code.
v viewModel.scanResult.gender
error: no variable named 'viewModel' found in this frame
Is anyone helps me out?

Related

SWIFT passing array of View to init

I used to have the following init function in Swift and it worked just fine:
init(views:[any View], locKeys:[String])
After upgrading XCode I now get the following compile error which I cannot figure out:
Expected ']' in array type
It underlines the V in View]. Looks like the syntax changed, but I cannot figure out how I get rid of that compile error.
Appreciate any insight on this matter, thanks!

Command PhaseScriptExecution failed with a nonzero exit code when using Mapbox

I have had the bellow error for some time now.
I have tried creating new projects
fixing the problem within the project
Resetting all cocoa pods and more
And yet I have still not been able to get rid of this error.
Error below:
/Users/myUsername/Desktop/MapboxMap117/Pods/Target Support Files/Pods-MapboxMap117/Pods-MapboxMap117-frameworks.sh: line 114: local: `/Users/myUsername/Desktop/MapboxMap117/Pods/Mapbox-iOS-SDK/dynamic/826E141E-8875-3C3B-A106-2B772F8A0684.bcsymbolmap': not a valid identifier
Command PhaseScriptExecution failed with a nonzero exit code
I am also getting: (dont know if it is related)
/Users/myUsername/Desktop/MapboxMap117/Pods/Target Support Files/Pods-MapboxMap117/Pods-MapboxMap117-frameworks.sh: line 114: local: `=': not a valid identifier
How can I fix this error?
Note:
It may have something to do with the code in my "mainVC" which I call "mapVC". I think this because when I get rid of all the code in there or comment it out the project does not get the error.
/Users/myUsername/Desktop/MapboxMap117/Pods/Target Support Files/Pods-MapboxMap117/Pods-MapboxMap117-frameworks.sh: line 114: local: `=': not a valid identifier
I believe the problem is likely coming from this. I have had a similar problem where I had spaces around the "=" when I got rid of the spaces it fix the problem.
Go to that location and get rid of the spaces.
build again
Problem should be solved.

What is the purpose of foundation.dart in Writing and Reading Files using path_provider plugin?

I am trying to understand how to read and write data on text files using path_provider plugin.
I've read an example on how to use it on Flutter from here. Then I saw this line of code which I don't understand:
import "package:flutter/foundation.dart";
I tried to comment it out from the code and ran "flutter run":
//import "package:flutter/foundation.dart";
And to my surprise, it ran perfectly. Although it raised some errors like:
E/DartVM (23127): 'dart:core/runtime/libintegers.dart': error: Unexpected tag 0 (Nothing) in ?, expected expression
E/DartVM (23127): ../../third_party/dart/runtime/vm/compiler/intrinsifier.cc: 153: error: Intrinsifier failed to find method ~ in class _Smi
and
E/DartVM (23237): 'dart:typed_data': error: Unexpected tag 15 (DirectPropertyGet) in ?, expected type
E/DartVM (23237): ../../third_party/dart/runtime/vm/compiler/intrinsifier.cc: 153: error: Intrinsifier failed to find method get:x in class _Float32x4
But it ran well. I don't know why. When should I use it? What method from the code did the foundation.dart was used?
I would appreciate any kind of enlightment. Thanks in advance.
[UPDATE]
I think I understand why foundation library was used in the example code. Maybe because the example code used the "required" constant from the foundation library.

error: CvANN_MLP does not name a type

I am compiling my program in opencv-3.1, but I am getting following error
error: `CvANN_MLP` does not name a type
The program is compiling properly in opencv-2.4.
I am not able to find CvANN_MLP word in any of the opencv-3.1 header files.
Can anybody tell what is the problem ?
According to Upgrade guide it was changed from CvANN_MLP to cv::ml::ANN_MLP in 3.0.

Which way to go with these bugs

Compiling Dart app to js these two errors arise:
Nº1:
InvalidStateError: Failed to call 'register' on 'Document' for type 'polymer-element': a type with that name is already registered.
Nº2:
Breaking on exception: TypeError: Object #<qE> has no method 'vL'
The object qE is created by dart2js.
How to find the solution?
There are appropriate tools to find the solution?
Thanks for advance !
I heard N1 occurs when Angular and Polymer is used in the same app. This is a known bug.
related open issues:
- duplicate polymer-element registration should not break the app
- Get error "Uncaught InvalidStateError: Failed to call 'register' on 'Document' for type 'polymer-element'
For the N2 use pub build --mode=debug so you get unmangled names and then use one of the available strategies to fix the problem (use of MirrorsUsed, #observable, #reflectable)

Resources