iPhone Simulator not getting launch - xcode4

My requirement is to run the target file which makes the simulator launch and run the script from the terminal.
I am able to execute the build file successfully from the terminal using (xcodebuild -project MyPro. xcodeproj -target "MyPro copy" -configuration "Debug" -sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk) but the simulator is not getting launched.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator
for xcode 4

you can launch it from within xcode without any problem,simply select iphone/ipad simulator in the upper left corner and click play

Related

Android Terminal does not recognise firebase command

I have this weird situation where I am not able to run firebase commands from android studio. I can run such commands in terminal but not in the terminal inside android studio.
As an example if I run firebase login in terminal, I can login but if run it in android studio I get this error: zsh: command not found: firebase.
See below an image to prove this case.
I tried to run the following command and got the following in terminal
MyMac:my_folder myuser$ which firebase
/Users/myuser/.nvm/versions/node/v17.0.1/bin/firebase
MyMac:my_folder myuser$ readlink $(which firebase)
../lib/node_modules/firebase-tools/lib/bin/firebase.js
If I do the same in Android I get nothing. I suspect it is a matter of Android studio not finding the right path to the firebase files?
Any help?
I am on a macOS Ventura and using Android Studio Electric Eel
Thanks so much!!
How did you install firebase tools (locally or globally)?
if you have globally installed firebase-cli,
I suggest you to look into environment PATH variables for both nodejs and firebase tools.
if you have installed locally as a dependancy,
here is a installation guide to install firebase-cli on macOS.
Eitherway, I suggest you to Invalidate cache and restart your Android studio before running the terminal again.

Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1

Hi Im still having an issue when running my basic script using Appium.
The issue is Unable to launch WebDriveragent because of xcodebuild failure.
Tried executing the Carthage bootstrap --platform iOS,tvOS' but returns an error
platform iOS,tvOS
IntelliJ Error
I've tried to backtrack the issue by going to my webdriveragent and entering
./Scripts/bootstrap.sh -d
but still it produce an issue
Bootstrap Issue
so I tried to use
carthage bootstrap --use-xcframeworks --platform iOS --no-use-binaries;
it does not return any issue
Appium Server Issue
Im using
MacOS = BigSur 11.5
Appium = 1.17
Xcode = 12.5.1
Carthage version = 0.38.0
Sorry I'm really new to iOS world. Followed all tutorial in the web. Manage to connect an app (IntegrationApp.app) and it works in iOS Real device and simulator but when I tried to connect Appium to real device and simulator it fails
Also tried to reinstall Carthage and even the whole Appium (tried the whole process)
Steps I did
Install Appium desktop and Appium doctor
Open the location of Appium and look for webdriveragent
Open terminal and set it to the location of webdriveragent
code I use is : mkdir -p Resources/WebDriverAgent.bundle
./Scripts/bootstrap.sh -d (didn't work so tried other which stated above)
Open the WebDriverAgent file in Xcode and set the necessary field (Build success)
Tried to open IntegrationApp.app in iOS device(real and simulator)(Success)
Tried to open Appium inspector and set the following:
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability("platformName", "iOS");
cap.setCapability("platformVersion", "14.5");
cap.setCapability("deviceName", "iPhone 12");
cap.setCapability(CapabilityType.BROWSER_NAME, "safari");
// cap.setCapability("app");
URL url = new URL("http://127.0.0.1:4723/wd/hub");
IOSDriver driver = new IOSDriver(url, cap);
Manage to solve this problem (Though it has another issue on real device - still has answers here)
Download new Appium version v1.18.3
Tried to setup again but after creating the Resource Directory (mkdir -p Resource/WebDriverAgent.bundle). instead using ./Source/bootstrap.sh -d I used
sudo ./Source/bootsrap.sh -d
I'm using a company provided macbook air. And I also run the
sudo carthage bootstrap --use-xcframeworks --platform iOS --no-use-binaries;
And this is a good read to https://www.mutuallyhuman.com/blog/webdriveragent-getting-started-with-automated-ios-testing/

VSCode hangs when attempting to build dotnet project

I had been using Visual Studio Code with a netcore 3.1 project without any issues.
After being away for about a week, I tried to continue development. However, when I run the build task from VSCode, the terminal shows
> Executing task: dotnet build /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary <
and hangs indefinitely. Running dotnet build from the console works fine.
How can I use VSCode for debugging again?
This was a general issue with the terminal, and not specific to dotnet.
A temporary fix was to run vscode from the terminal (instead of clicking the desktop icon).
After system upgrades and restarting this problem disappeared.

Unable to determine device. when i tray to load simulator in xcode 8.2.1

[![image show all window for simulator][The error i got when i launch simulator. i think accidentally i removed some of folder or directory from ~library/Developer folder. ]][i installed new xcode8.2.1 using latest Macox/Osx reboot system/simulator/xcode multiple time]
i Just Download new Xcode 8.2.1.xip extrect it ,than quit xcode and restart my mac mini it solved automatically.

WIll the iphone simulator run a naked command line?

Does the iphone simulator require a bundle? I tried to run it on a plain executable and got
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain
Code=1 UserInfo=0x1002336c0 "Unknown error."
using the open source iphonesim driver.
You need to give it the path of the bundle with the .app suffix that XCode generates. By default this is in the "build" subdirectory of an iphone project. Also, there is currently a bug in the project that requires you to use the absolute path.

Resources