Google Test(gtest) iOS signing error - c++

Following this tutorial:Introduction to Google Test with Xcode 6 and C++11 i have integrated Google Test(or gtest) framework into my iOS project written in C++. But when i choose test target and press "Run" button i got this log:"Message from debugger: Terminated due to code signing error". This log appears after "Build Succeeded" popup. If anyone has thoughts of how to fix this siging error please let me know. (P.S. i have valid iOS certificate and provision profile and can upload builds to the TestFlight)

I have got rid of this issue by performing next actions:
Select Tests target as active target.
Go to Product->Scheme->Edit Scheme.
From the left menu choose Run.
Then in the right menu choose Info tab.
Change Build Configuration from Debug to Release.
After this i can run tests without "signing error":))

Related

break point not hit in ASP.NET web API remote debug in IIS

I have attached my Visual Studio 2109 debugger to the process with my web API published in IIS
But when I try to insert a break point
"the breakpoint will not be activated currently. No symbols have been loaded for this document"
Any idea please?
Regards
Another possible solution for the same type of error is that the build has "Optimize code" checked.
"Api project" > properties > Build > (select "Configuration" for the one you are debugging), make sure "optimize code" is unchecked.
If you changed it you need to deploy the project again.
The problem was that my webAPI is an ASP.NET Core 2 web API and in this case w3wp.exe is not the correct process. The process is the application itself. In may case api.exe instead w3wp.exe
thanks

I have an MFC legacy C++ that I wish to remotely debug, but the Deploy box is greyed out on the configuration. How do I enable it?

Following the steps at https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-cpp?view=vs-2019
I have completed the steps up to where I must click the Deploy checkboxes in the Configuration Manager, but they are greyed out.
This is a legacy MFC 32 bit application.
Am I missing something?
I have completed the steps up to where I must click the Deploy
checkboxes in the Configuration Manager, but they are greyed out.
1.Please make sure you've set the Debugger to launch to Remote Windows Debugger.
2.And after my check, you should configure the Deployment Directory so that the project is deployable and the Deploy Checkbox is able to click.
3.Also, please check the Configuration and Platform you selected in Project properties and Configuration Manager, they should be corresponding to work.
e.g:
If we complete the settings in this way:
In Configuration Manager,only when we choose Debug+X86(Active Configuration and Active Platform) the Deploy checkbox is available, and if we change the X86 to X64, the checkbox would be grayed.
Hope it helps:)

developer tools does not loads resources

When I run my ionic project to my mobile it was working good, and when I open developer tools it's fine.
I could able to view all console statement in my developer tool window, now when I run it again app runs well in the browser and in my mobile , I am not able to see any console statement.
What I get is
device ready has not fired after 5 seconds.
cordova.js:1223
Failed to load resource
file:///android_asset/www/build/index.js.map
could someone help me to view my console statements
This should be fixed in cordova-android 6.1.0. It has not been added to the npm-registry yet, so you can use it by placing this to your config.xml:
<engine name="android" spec="https://github.com/apache/cordova-android.git#6.1.0"/>

How to Debug Ionic WebApp?

I want to debug my ionic application in WebStorm.
I am able to run the app in browser. But how can I debug?
I tried: ionic serve --debug which doesn't seem to trigger any debugging?
How can I debug the app when it runs in browser?
With Chrome you can type chrome://inspect into your address bar
As soon as you are running your Android app, you can inspect the app when you are running it with the "ionic run android" or "ionic emulate android" command
The version of Android, however, must be higher than 4.3 I think...
According to the documentation there's a few different way's to do this. Also could you try one of these listed below since you have tried ionic serve already?
ionic run
ionic emulate
The run or emulate command will deploy the app to the specified platform devices/emulators. You can also run live reload on the specified platform device by adding the --livereload option. The live reload functionality is similar to ionic serve, but instead of developing and debugging an app using a standard browser, the compiled hybrid app itself is watching for any changes to its files and reloading the app when needed. This reduces the requirement to constantly rebuild the app for small changes.
Hope this get's you going! Let me know how it work's out for you.
I found this tool very useful, you can attach your device and get a real time inspector on your Cordova app(for iOS and Android platforms).
The browser is where I do most of my debugging for ionic. What browser are you using to do the debugging? I use Chrome and turn on DevTools. There is a source tab where you can browse your app code to find spots for breakpoints. For example, you can set a breakpoint in the code for a controller on a click event and step through the code. Then, you can use the console to execute commands to test values and inspect objects, etc. Are you unable to make this work? Or, unfamiliar w/ the DevTools? If unfamiliar, there is a resource available here. If not working, are the breakpoints not being hit?
There are a few ways to debug your ionic app.
In the browser you can catch the errors in the console.
If you are emulating your app on a simulator or a mobile device you can install the cardova plugin that displays js errors in the xcode console. So you can emulate your device and catch errors on xcode.
Here is how you add the plugin:
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
An alternative is using ionicLab. It worked for me doing the steps: Install the program and prepare all the project dependencies prior to testing. Then, click on Serve option from Testing which is under Platform menu. When the project has been executed, click on the arrow icon of the Preview bar.
As a result, Ionic will throw a Chrome window with the loaded project, so, you can use Developer Tools as it's used commonly. You ought to watch the javascript files, which you use in your project, so that you can debug them.
Simply run: ionic serve -l and inspect from browser developer options.

Class not found error for any glass api

I configure eclipse ADT for glass development successfully.
Then I create a sample project and try to develop google glass card or timelineitem.
when I compile and run, an error occurred from android tuntime
java.lang.NoClassDefFoundError: com.google.android.glass.app.Card
this error also occurring for
com.google.android.glass.timeline.TimelineManager
Error Log
How can I solve it?
You have to set your project to compile with the Glass GDK.
Make sure you're targeting 15, have the GDK downloaded as per the other answer, and then:
Select your project on the left side of the screen, open project poperties (alt-enter, or right click -> properties), go to Android tab, scroll down to Android 4.0.3, and in that section will be the Glass Development Kit Sneak Peak. Check the box next to this, hit ok and everything should start working.
EDIT:
Just to make sure, your manifest should have this line:
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" />
Make sure you are targeting API 15 and that you installed the glass development Kit.
See the Picture: