Difference between 'Run' App and 'Profile' App option in android studio 3.0 - android-studio-3.0

In android studio 3.0 there are two options(Run and Profile) available to run the application.
Both are functioning like the same thing and behaviour. See below screenshot:
and
My question is what's the actual activities between the Run and Profile in android studio 3.0

As per Android studio team:
It's mostly a nice UI shortcut to open the profiler tool window and start profiling in conjunction with running the app. Clicking "Run" doesn't start the profiler, but you can still choose to profile the app later by opening the tool window.

Related

How to create IPA package on Windows from Visual Studio 2019 when successfully paired to MAC

I have read the following documentation on setting up and building iOS apps from Visual Studio 2019 on a Windows machine,
Pair to Mac for Xamarin.iOS development
Introduction to Xamarin.iOS for Visual Studio
IPA Support in Xamarin.iOS
Free provisioning for Xamarin.iOS apps
It seems there is tons of critical information missing even after spending days reading and researching on this. When I attempt to build the iOS project is succeeds and shows
Pair to Mac is not connected, so the build will be performed offline. To do a full build please connect and try again.
in the output window. This makes some sense since the documentation clearly states you must have an active connection to a MAC machine. I then open the remote device dialog and click the connect button.
I am now successfully connected to my MAC build machine that has XCode, Mono, etc installed on it. However, this is a modal dialog! No other functionality in Visual Studio is accessible via the UI while this window is open. The fact this is not mentioned anywhere is mind boggling. At this point are you suppose to run the build command from a cmd or powershell? If so, how do I know the command string VS 2019 is running behind the scenes? In general, what is the point of visual studio at all if it allows me to pair to a mac but then prevents you from using the IDE to perform any build functions?
I have figured out the solution for this and its extremely simple. I can't decide if it's stupidity on my part, a terrible and confusing way to present a UI, or a combination of both.
Just select the "X" icon in the upper right-hand corner and close the dialog and you will remain connected.
You can easily confirm that you are still paired to the mac by hovering over this icon in the visual studio toolbar

Flutter/Dart on a IOS device?

How can I run my flutter program on a IOS device?
I'm gonna use a iphone6s.
I'm using a windows 10.
I'm either using visual studio code or android studio.
Last thing, how can I use visual studio code to run my flutter program on any device?
Android-studio you just press run but visual studio code confuses me.
You cannot run on IOS from a Windows machine. Apple doesn't allow building to IOS from anything but MacOS. You can run in Visual Studio Code by opening a terminal and typing flutter run.
While you can develop an application for IOS using Windows, you can't test or deploy it unless you're using a MacOS, which I personally think is a dirty way to force any developer to buy an overpriced hardware just for this sake. But anyway there seems to be some ways around it, i'll give you some articles that are probably worth reading.
Developing and debugging Flutter apps for iOS without a Mac
How to sign Flutter apps for iOS automatically without a Mac

How to run Appium tests in Visualstudio Appcenter

I have written all the UI automation tests for my Android app in Appium with C# and MSTest. Currently these tests are being run in Browserstack.
I would like to replace browserstack with VisualStudio Appcenter but couldnt find any documentation to run my C# Appium on Appcenter. Does Appcenter support this combination?
Currently Appium Testing on VS App Center only supports tests written with Java (on both Android or iOS devices).
If this is a feature you'd like to see in future, I would recommend registering on Vistual Studio App Center and then if you look in the bottom right there is an icon to open a dialog in Intercom - you can request features here and it will be routed to the correct department before being recorded as a feature request.

Problems with my first Visual Studio iOS project

I just tried to start a simple iOS project in Visual Studio, and it's saying that it cannot find a Mac Build Host. Most frustrating of all, the Xamarin site has no information at all on what a Mac Build Host is. I've popped up the command prompt in Windows and perfectly able to ping my Mac machine, so it's definitely viewable from Windows.
I'm guessing it's got to be some kind of a background process that needs to run on the Mac, but nowhere in the Xamarin site tells me where I can get it.
Help!
<vent>
P.S. I'm seriously having second thoughts about "cross platform" and "portability" and "reuse existing C# skills" jargon from Xamarin. It was way, way easier to get my first app started in simple Objective-C. Xamarin's approach feels like "we will ship you a broken product for $999, and you can help us figure out how to make this more marketable".
</vent>
Edit: After reading everyone's posts, I think I will just use the Xamarin Studio rather than take the Visual Studio approach. It seems like the less complicated approach in the long run for someone like me. Thanks to everyone for your post!
The Xamarin docs site has instructions on how to set up your Mac to act as an iOS build host for Visual Studio. I agree this isn't very clear from the "Connect to a Xamarin.iOS Build Host" dialog, so I've filed a bug.
You can also use Xamarin Studio to develop Xamarin.iOS apps on the Mac. It uses the same project/solution format as Visual Studio, so you can share the solution with VS.
The Mac Build Host is a process which runs on the network-hosted mac you need to connect to from your Windows machine, in order to perform the final app compile and build. I have just installed iOS for Visual Studio, and I had to create a Xamarin account that was associated with the VS install. Also, I had to install Xamarin.iOS on the Mac itself, instructions here:
http://docs.xamarin.com/guides/ios/getting_started/installation/mac/
What wasn't explained properly was that I then had to close VS, open it and create a new iOS project. At this point, a wizard was initiated which used the Xamarin Bonjour service to locate our networked mac and use that as the build host. All the bits came installed with the Xamarin installer, I just had to initiate them by opening up a project.
Obviously this will be different for you using Xamarin Studio, but have you tried creating a new a project to see if this initiates a wizard? Or do you need to install the iOS on your mac as well as Windows?
I have to admit, I'm not entirely sure what is meant by "Mac Build Host" either. I would expect to find something like that if you were using Visual Studio to build with, not Xamarin Studio.
My best guess is that perhaps Xamarin Studio doesn't "see" your iOS development tools setup somehow? Can you go into the Add-in Manager and see what version of iOS development you have in there?
Sorry you're having a bad time with it so far. I've been using it for awhile and it's been fantastic for me so far.
Do you have bonjour installed on your windows machine? This is required for Xamarin studio on windows to talk to your mac build host. Also you need to set up the relationship as follows.
Section 3.1
For anyone else who might have spent a few days going around in circles the answer above that states you need to close VS, open it and create a new iOS project holds the key.
Xamarin really needs to make this much clearer!
Andreas
One further thing I've noticed is that despite my setting the Xamarin Bonjour service to start automatically, it somehow gets reset to Manual. The Xamarin plugin opens the services MMC when I launch Visual Studio and open an existing project when this occurs.
During debugging it's all too easy to stop the VS debugger before the iOS Simulator on the Mac machine has been halted. It works fine if you click on the iPhone Simulator bottom button then command-Q to close the simulator. That drops VS out of debug.
If though VS is stopped before the simulator in some cases this kills the connection and it needs VS to be closed down and restarted. Once or twice it has corrupted the iOS simulator and it comes up with an empty iPhone graphic, instead of the default Photos, Contacts Settings etc icons. In that case close and reopen it and as you start the simulator click on the iOS Simulator menu, then Reset Contents and Settings. That purges the corrupt state and it's all ok after that.
Overall it works well enough to not get in the way of development but any improvements by the Xamarin team are welcomed.

How to test iOS web application using Instruments UIAutomation

When I test native application I can choose target (application from real device listed in the choose target list; or in the case with simulator - choose Profile menu item in application project).
But how can I choose target for web application?
Do I have to choose some browser as a target in this case? Device has Safari and Chrome browsers. Chrome browser appears in the list of targets. But when I try to run script, it does not works. Chrome is just launched, but any actions are performed.
I have also tried to create XCode project that simply open web page in browser. But when I try to run the script error "target application is not the frontmost" appears.
Is there some possibility to choose applications installed on the device as a target, if they are not present in the Instruments choose target list? There is a link to the web application on device home page. Can I somehow choose it as a target? In Organizer (called from XCode) only one - native - application is displayed.
UI Automation will only work for native applications built by you with Xcode. From your question it sounds like you want to launch Mobile Safari or Chrome for iOS and manipulate that with UI Automation. That won't work. Instruments can let you connect to applications you didn't compile running on the simulator or device, but only some of the instruments work and UI Automation isn't one of them.
If your web app was wrapped in a native shell then you could use UI Automation. You might want to look into Phone Gap. It's a full fledged wrapper that tries to expose native functionality to web apps, which you wouldn't need. But the fact that it's a well supported wrapper around web pages could be a great place to start if you still wanted to try this.
UI Automation doesn't support web automation. Try Selenium web driver for iOS, helps to automate web apps on iOS Safari browser. runs on both device and on simulator.

Resources