Once Upgraded my iOS Appium inspector stopped working - appium

All the configurations were made for mobile ios automation and was working perfectly fine.Once I upgraded my mobile iOS to latest things stopped working, I upgraded XCode, Appium desktop, Appium inspector everything to latest. Using XCode I am able to access my mobile iOS now, but Appium inspector is failing, its showing “Gathering initial app source” and keeps looping. I am unable to downgrade iOS version to older version as its against my company policy, how to get this fixed. Tried everything from internet its not working.
Appium desktop Version - 1.22.3
Appium Inspector Version - 2022.7.1
Xcode Version - 13.4.1
iOS Version - 15.6

The latest update to iOS 15.6 stopped TestProject.io working a couple of weeks ago, which has now been fixed. There was a suggestion that turning on Developer Mode on the iPhone/iPad would solve the problem. It could be the same problem with the Appium Inspector(?)
Try posting here to see if anyone else has had the problem: https://github.com/appium/appium-inspector/issues

Related

Xcode - iOS Simulator window is blank

I'm running the latest version of macOS Big Sur with Xcode 12.2 beta 3. I build my app for the simulator and it succeeds - but the simulator screen is blank. The same thing happens when I go through the menus and open Simulator manually - Xcode > Open Developer Tool > Simulator. I have tried adding a new simulator device, and running xcode-select --install.
Preferably, I would rather not have to re-install Xcode as I have limited space and would have to juggle other applications, use an external hard drive etc (I have a 128GB MacBook Air).
This is what appears when I try both methods.
I determined the problem.
There was a bug in the developer beta version I was using.
It was causing the simulator to fail to launch correctly.
I have reported this bug to Apple through Feedback Assistant, and moved to a stable version of Xcode which is now working with the simulator.
I agonised over this for ages since I moved to the MacPro M1.
App run fine on connected fysical IOS device but not in emulator...
Upgrading MacOs and Xcode fixed nothing...
Was finally on MacOS 12.3.1 and Xcode13.3.1 when I figured it out.
The only thing that finally actually worked was removing the check to run Xcode with Rosetta and to be sure downloading a new IOSXXX simulator.
Go to Applications -> right click on Xcode --> Get info --> uncheck Open using Rosetta.
Hope it helps for you!

Safari web inspector is only showing Sources, Console and Audit

After upgrading to Xcode 11.3.1, I am having problems using Safari web inspector with the iOS 12.1 simulator. Every time that I run an app inside of an iOS 12.1 simulator device, it will show up in the Safari debug menu and allow me to connect to it, but the only tabs I will see are Sources, Console and Audit.
Here is a screenshot of the inspector attached to an instance of the Safari browser inside of the simulator.
Is there any way to resolve this?
Environment:
MacOS 10.14.6 (18G95)
Xcode 11.3.1
Safari 13.1 (14609.1.20.111.8)
Simulator Version 11.3.1 (SimulatorApp-912.5.1 SimulatorKit-570.3
CoreSimulator-681.17.2)
Web Inspector engineer here...
This appears to be a bug in Web Inspector, and we are investigating the issue. Does it happen if you use a recent Safari Technology Preview to inspect your older iOS devices?
In addition to asking on SO.. it is strongly recommended to report bugs pertaining to developer tools at https://feedbackassistant.apple.com/ so that you get notifications about followup questions and when a fix has been shipped.
EDIT(May 14): The issue is fixed in our tree and the fix should be included in Safari Technology Preview 107 and the next major Safari release. Stay tuned for release notes.
I don't yet want to update my macOS from High Sierra, but I still run into this bug (even on a clean installed test system).
Elsewhere it was suggested to use Safari Technology Preview - but now it's only for Catalina an Big Slur.
Fortunately you can still download older versions using Archive.org (bless their hearts).
This is the latest I found for High Sierra (Release 80, Posted: April 12, 2019):
https://web.archive.org/web/20190420021102/https://developer.apple.com/safari/download/
I guess you can find a later one for Mojave too.
Update June 2021
For macOS Big Sur 11.4, you can download STP 125.
(This is answer is less of a fix, and more of a superior alternative I wish I had discovered much sooner.)
You can just debug iOS WebView with Chrome Dev Tools instead of Safari!!
Windows
You can follow this guide to debug iOS webview on Windows with Chrome DevTools. (Tested and works with iOS 9 and iOS 14 so far!!) Edit: not working with iOS 9 today.... not sure what changed...
Linux / Mac
I believe you can basically follow the windows guide above for linux and Mac as well. (Comments confirming/denying welcome!)
Troubleshooting any part of the guide
For any part of the guide that doesn't work (because out of date or linux/Mac), you can follow the instructions that are included directly with the tools that make this possible:
remotedebug-ios-webkit-adapter
ios-webkit-debug-proxy (used by remotedebug-ios-webkit-adapter)
Maybe try this older version Safari Technology Preview, works for me on BigSur.
I also faced the same issue after updating safari and MacOs to BigSur, for now we can use Safari Technology preview everything works fine.
I was having the same issue with my iPad (iOS version: 11.x).
I resolved the issue by using another iPad (version: 13.3.1).
I think it doesn't support older version of web browser (Safari).
You can actually right-click on the tabs to enable/disable certain tabs. After updating some of my tabs were also gone, this is how you restore them.

Appium automation on simulator and physical device stopped working after updating to Xcode 11

I was able to run automation scripts on simulators and physical devices (with varying success but at least they were working).
Now what seems to happen, on the iPhone 5 for example, it connects and the page appium.io opens, then nothing else happens.
The only error I can see in Appium is "Page 27752/0 not found. Already sent close_frame"
Nothing else has been updated except for Xcode, and I think before this I was on Xcode 9.2
This same script works fine with when automating Safari.
Version details below
MacOS 10.14.5
Appium 1.12.1
Xcode11
iPhone 5 OS 11.2.6
Apologies for any errors, I'm still new to this.
I actually don't know what to do to fix this. I've had so many problems getting automation to work with iOS that I'm reluctant to update anything at the moment. The automation works fine on Safari, just not iOS
I can't see where to attach the appium output log.
I ran into the same issue after updating to Xcode 11, seem like there is an issue with the Command Line Tools, you can roll it back to Xcode 10.2 like this:
This fixed the issue for me.

Cordova phone gap angular app not working on iOS 10.x versions

I phone gapped an angular app using and trying to deploy to iPhone, iPad running (10.3 and 10.2) it is not working
I am using
cordova 6.5.0
cordova-ios 4.3.1
Xcode - 8.3.2
If i deploy to iOS 9.3.5 app works fine perfectly.
If i deploy to 10.x version (10.2, 10.3) it doesn't work.
After logging into the app, i get a modal dialog which i am not able to click. (Cannot navigate to app unless i click ok on this modal dialog). Add ngTouch module but it didn't work. Strangely it works once in 10 times. Is there something i am missing? Or there are issues with cordova with iOS 10.3. I am struggling with this issue for last couple of days. Any pointers are greatly appreciated.
It works fine on android phone gapped version and also on web version (on safari)

What's causing my Class linkage error when deploying to the iOS Simulator?

I'm trying to run a very simple (Hello World-ish) Fire Monkey app to an iOS Simulator (Mac Mini) from Delphi-XE7 (Windows 7).
When I do this I get a "Class linkage error", and a Trouble shooting window that contains the same text as this link.
Working through this:
I've verified that my connection profile is set up
And that it's able to talk to the Platform Assistant server (/w a Passwordl.
I've verified this by turning it off and using the Test Connection button to see that it fails when it is off and works when it is on.
I've added the SDK Manager for iOS Simulator (iPhoneSimulator 8.3)
I've added the SDK Manager for iOS Device (iPhoneOS 8.3)
I've get Xcode (6.3) started on the MAC.
I've got iOS Simulator already started
What have I missed?
I'll note that I don't see Phone Simulators for iOS 7.1, 8.1, or 8.2 even though they are installed for Xcode when I add the SDK Managers - I'm wondering if that is at all related.
There is a known issue with deploying iOS 8 code from Delphi XE7. Actually, it seems to be more to do with the version of Xcode (as of 2015-04-22 the latest version is 6.3).
The latest version of XCode that works with Delphi XE7 is 5.1.1. Downgrading from Xcode 6.3 to Xcode 5.1.1 has solved my issues. Delphi had other cryptic issues with Xcode 6.0.1 and above.
I'll note that the latest version of iOS that Xcode 5.1.1 capable deploying is 7.1, which is also the oldest version (as of 2015-04-22) that the AppStore will support. However, the App store will not support any new application in 7.1. So your path is to move to XE8 and I presume they've fixed the problems talking to XCode 6.x there.

Resources