iOS App Bluetooth cannot connect to peripheral device - ios

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.

Related

Google Cast SDK not working on Xcode 9.4 simulator with wifi but works with ethernet

I'm trying to test an iOS app on the Xcode simulator and all networking is fine except for the Google Cast SDK can't find any Chromecasts on my network using wifi. The iMac that Xcode is running on can find the Chromecasts just fine using wifi. The same app on another computer can find them just fine on the simulator also using wifi.
I also tried the Google sample from Github and it can't find any Chromecasts either.
I already added the Simulator app to the firewall exceptions. I also tried it with the firewall off.
What else do I need to do?
Xcode 9.4.1
Thanks.
After many OSX and Cast SDK updates it now works for me.

Xcode 8.3.3 lost connection to iPhone 7 plus

This is frustrating, I recently got an iPhone 7 plus to use as a test device. Somehow, my Xcode always loose connection to it as soon as
I connect it to my Mac. Restarting my Mac will solve it.
Xcode version: 8.3.3
iOS version: 10.3.3
Luckily, I have another iPhone 6s for testing, which works fine. The iOS version is also 10.3.3. I don't want to use this one as a test device because it's my personal phone, messages and phone calls would interrupt my development.
Thanks in advance for any help : )

ReactNative - Simulator works, iPhone crashes

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.

Unable to test iOS app on iPad with Flash Builder 4.7 OSX Yosemite

After upgrading to OSX Yosemite, i'm unable to test my iOS app on my device.
Compilation and packaging works as expected but app is never installed on my device connected trough USB.
Anyone having the same problem?
Thanks
I've found the solution on another post having app installation problem on Mavericks.
Disable your device WiFi and install your application from Flash Builder. Then enable your device wifi. It work for me.
Thanks

Unable to run iOS 7.1.2 device in xcode 5.1.1

I've just updated my iPhone to iOS 7.1.2, and I can no longer run my apps through xcode 5.1.1. And I can't install apps with this iOS version too.
To solve this issue do the following:
Connect the device to your computer and open iTunes.
It will prompt you to allow the computer to access the device.
If you accept, the device should be properly recognized by Xcode too and selectable to run your app.
Still no clue why this happened in first place, after updating to iOS 7.1.2.

Resources