nativeapplication

A new session could not be created. (Original error: Instruments crashed on startup)

笑着哭i 提交于 2019-12-06 23:47:34
Facing this issue while working on appium. couldnt able to launch the app in the simulator as appium server is throwing the above error. In my case I had installed appium from a different user and the owner of the Appium.app was other user than the user I was trying to run from. Changing the owner to the current user resolved the issue. I resolved this error by running ps aux | grep appium from command line, kill all appium and node processes and then restart appium. 来源: https://stackoverflow.com/questions/22248328/a-new-session-could-not-be-created-original-error-instruments-crashed-on-star

encode image to base64, get a invalid base64 string (ios using base64EncodedStringWithOptions)

末鹿安然 提交于 2019-12-03 02:24:57
Here is my code. UIImage *img = [UIImage imageNamed:@"white.jpeg"]; NSData *imageData = UIImagePNGRepresentation(img); NSString *imageString = [imageData base64EncodedStringWithOptions:0]; NSLog(@"%@", imageString); And I always get invalid base64 string which include space. iVBORw0KGgoAAAANSUhEUgAAARMAAAC3CAIAAAC MS2jAAAAHGlET1QAAAACAAAAAAAAAFwAAAAoAAAAXAAAAFsAAAMC oRdmgAAAs5JREFUeAHs1tFKI1EABFH//5NNVh02uA LQhwoCZ0zj5LbTlffInl58yCAwM8JvPz8iBMIIPDGHJcAgTMEmHOGmjMIMMcdQOAMAeacoeYMAsxxBxA4Q4A5Z6g5gwBz3IGHIPD zfMQL/fVSzDnKyr 9usEvhHn/ddf5N5/yJx7SflcSoA5KV7hz0Lgn0gPW9h3zsNO81wvdr1e/3w

Not able to start appium session

老子叫甜甜 提交于 2019-11-30 15:42:22
I am not able to start the session can you help. I have done the following steps: Started a Appium server from Appium for windows package (ran appium.exe file) Started a simulator for android Started selenium server Ran the script via TestNG I am getting the following error when I enter the follwing in the browser 127.0.0.1:4723/wd/hub: That URL did not map to a valid JSONWP resource My console shows the following error: A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information) Command

Not able to start appium session

99封情书 提交于 2019-11-29 23:06:28
问题 I am not able to start the session can you help. I have done the following steps: Started a Appium server from Appium for windows package (ran appium.exe file) Started a simulator for android Started selenium server Ran the script via TestNG I am getting the following error when I enter the follwing in the browser 127.0.0.1:4723/wd/hub: That URL did not map to a valid JSONWP resource My console shows the following error: A new session could not be created. (Original error: Requested a new