I'm building an app and using alamofire to make web requests. When I attempt to make a request in iOS simulator 8.3 (any model) I get an NSURLErrorDomain code=-1005. YET, safari inside the simulator works just fine. My code and requests also work fine in all iOS 7.1 simulators. This is getting beyond frustrating for me to solve since restarting the simulator, resetting the content and settings and restarting xcode + computer has not solved the issue. Any ideas?
Related
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.
I test my app on the iOS simulator without a problem, on Android everything is fine, but when I download the app on the iPhone, it doesn't work. It gets stuck in the LaunchScreen and suddenly closes after about 10 seconds.
I have no clue why. I already tried a possible solution that was to specify the node version on the Build Phases > Bundle React Native code and images
App on Android already released but I'm facing this issue on iOS.
Debug
Same Wifi
No VPN on
Plug in your device via USB
First app development in ReactNative. I just started to load data in via API and now the App crashes on my phone - but works fine in the simulator. The only errors I have (nothing in console) are from xCode, see image:
Any help debugging / fixing this issue?
Thanks
This was an issue because I was running 8.2 in simulator and 10.2 on my phone. 10.2 does not allow you to fetch using http, only https.
I'm trying to connect to bluetooth printers using a third party libraries. Everything works fine on iPad, iPhone, iPod touch. Now i have 3 iPad Air devices and I always got the following error message:
ERROR - sock can not connect: 2
On all other devices, the connection works fine. Any idea, what I can do?
Same problem:
https://discussions.apple.com/message/30117834#30117834
I don't have 50 rep so I can't comment on your post, sorry.
What version of iOS is on your iPads? There seem to be some external accessory connection issues in iOS 9.3.1. They should be fixed in 9.3.2. I've tested the beta and it seems to be working as expected again.
I reinstalled iOS 9.3.1 with a ipsw and it worked again.
I think there may be some configure files created before iOS 9.3.1 make this bug happen.
I had the same issue recently on an iPad 4 mini running iOS 11.0.3 trying to connect to a Socket Mobile scanner in MFi-SPP mode. The bluetooth connection seemed to work properly, but as soon as the Socket Mobile SDK tried to connect I also got the ERROR - sock can not connect: 2 errors.
I ended up doing a factory restore which resolved the issue, but I never figured out what was causing it.
I was getting the same error with Socket Mobile scanner, on iPad Pro with iOS 11.0.3. Updating iPad to latest iOS version (11.3) resolved the issue.
At the same time, on another iPad running on iOS 11.1, it was working fine.
Recently upgraded from Xcode 5 to Xcode 6. iOS Simulator cannot reach the internet now, even though just a few weeks ago it could with Xcode 5. Network settings have not changed since. What's really strange is that the internet will occasionally load when trying to hit an HTTPS site. Never loads with HTTP though.
I've already tried uninstalling, reinstalling, rebooting, removing devices from the Simulator, and re-adding them. Nothing has worked.
I'm having the same issue and I recently discovered a workaround fix (which won't for all sites). It seems that sites that can be accessed via https:// work perfectly fine. It's sites that use an un-secure protocol fail and I'm given the "Safari could not open the page because the server stopped responding." message.