I am trying to test an app on my iOS 4.2.1 device using XCode 4.2 and the latest iOS SDK. The application does not have any functionality that is specific to iOS 5.0. When I run on my devide it says "Build successful" and then "Finished running app on device", but nothing is installed on my device and the application never starts. While searching here, I've found several possible solutions, none of which have worked. Here's what I've tried.
Stream error occurred for : Error Domain=kCFErrorDomainCFNetwork Code=2 "The operation couldn't be completed. (kCFErrorDomainCFNetwork error 2.)" UserInfo=0x133cf0 {kCFGetAddrInfoFailureKey=8}
Any help will be greatly appreciated.
Seems stupidly simple, but I've seen this error quite a few times with the exact setup you outlined and unplugging the iPhone and plugging it back in often seemed to be what fixed the issue. Not sure if this is specific to the iPhone 3G/iOS 4.2.1 but this error seems to be cropping up fairly routinely for me with that device connected to Xcode 4.2.
Addition: This questioner had the exact same error, which was due to a network problem because of DNS issues. You may need to check whether your iPod and/or your Mac are properly set up on your network and can access the internet. Moving on to pure speculation, perhaps there is some 'phone home' required to confirm the device is registered on the developer portal as being provisioned for development that is failing due to networking not being set up correctly, resulting in the build not working?
I finally discovered the problem. In Build settings, Architecture, while I had made sure that both armv7 and armv6 were present in the Valid Architectures section, I did not check in the "Architectures" setting, which by default says "$(ARCHS_STANDARD_32_BIT)". Adding armv6 to this section solved the problem. But I still thank u for taking the time to try and help me, it is much appreciated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.