I'm a little bit baffled by this one - I have been developing an app on my iPhone 4 and I just got an iPhone 5...I am now using the iPhone 5 to develop (for obvious reasons). When I was developing on my iPhone 4 all of my NSURLSession
code worked correctly and could access/do whatever over the network (I have both my phone and my computer connected to my home WiFi network - the obvious way to test an app). However, now that I am trying to make it work on my iPhone 5 - I am running into this networking error:
Response:(null) Error Domain=NSURLErrorDomain Code=-1001 "The operation couldn’t be completed. (NSURLErrorDomain error -1001.)" UserInfo=0x1700675c0 {NSErrorFailingURLStringKey=http://192.168.1.10/spiritmap/accessy/smackit/insertdataours.php, NSUnderlyingError=0x174244290 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1001.)", NSErrorFailingURLKey=http://192.168.1.10/spiritmap/accessy/smackit/insertdataours.php}
I have checked my apache
logs and I am not getting any errors in there, nor am I getting errors in my mysql
logs - but I still get the above error. I have verified that both my phone and computer are on the same network...I am using my computer as a "server" to test the app. I really don't think any of my code is relevant here as it was all working before I updated to iOS 8.1.2
on my "new-to-me" iPhone 5. Any suggestions for how to debug or what might be going wrong? If it's a server side problem, I am just using php
with mysql
- and as I said - it was all working before when I was testing on iOS 7.x
. Any help would be greatly appreciated. Could this be a bug with the new iOS?
UPDATE
I filed a bug with apple - I am also going to try downgrading from Xcode 6.1.1 to Xcode 6.1 - and then if need be - I would try downgrading to Xcode 6 because I know it worked with that one...I also never had any problems with Xcode 5 - so if all is fails I'll try that.
UPDATE
I am updating xcode to beta version as well as my iphone to ios 8.2 beta - hopefully the resolution to this problem has already been included in the beta version.