Search results for

NSCocoaErrorDomain Error Code 4

170,045 results found

Post

Replies

Boosts

Views

Activity

Why does the following code work?
Can sombody tell me why the following code works? I know that it does. Specifically, look at the 'dict' variable. It is used in the fast itteration for loop. But wait, it's also used within the completionHandler block of code, but it doesn't have a __block specifier. Why does this work? __block NSMutableArray *dumArray = [NSMutableArray arrayWithCapacity:3]; for (NSDictionary *dict in self.stuffArray) { NSURL *url = [NSURL URLWithString:urlString]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; request.timeoutInterval = kTimeoutInterval; [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) { if (data.length > 0 && connectionError == nil) { NSDictionary *message = [NSJSONSerialization JSONObjectWithData:data options:0 error:NULL]; NSDictionary *daDict = [message objectForKey:@result]; NSString *theInfo = daDict objectForKey:@“stuff”]]; NSMuta
3
0
761
Jun ’15
Reply to Request temporary one-time exemption to 64-bit deadline?
There's exactly one thing you can do:1. Submit your application, and appeal the rejection if you're rejected for not having 64-bit code. It's anyone's guess whether your appeal will be successful, but that's really the only thing you can do.If the application submission process automatically rejects your app, then you're completely out of luck and you're just going to have to do whatever you have to do.
Jun ’15
Xcode 7 bots 'Integration pending' message
Yesterday I successfully installed 10.10.4 and Server 4.1.51 along with Xcode 7 beta. Then I setup Xcode server and chose the Xcode 7 beta. I setup a simple single view iOS 9 app with one unit test and one UI test. Then I added the project to the Xcode server and created a bot to run on every commit. This worked perfectly - with each commit, the bot ran and produced a successful build with no failures. Today I installed the preview of 10.11. The installation went successfully, but now whenever I try to run my bot, I just get Integration pending... message for the integration in Xcode. I tried deleting the bot and recreating it. Still I get the same error. Why?
4
0
4.2k
Jun ’15
Bitcode and Assembly?
I work for a third party library vendor and we are pretty sure our customers will ask us for a Bitcode version of our library.We are very performance sensitive though, and we've optimized critical sections of our library in NEON assembly. When we compile to LLVM bitcode, we are assuming that NEON assembly will be encapsulated. Is that correct?We're also worried about writing code in assembly though. Bitcode seems to leave open the possibility that our application could end up running on a platform who's capabilities we did not optimize for in advance. It seems like it might be a good idea to make sure our software paths are working well. Would it also be a good idea to attempt to drop out of NEON directly and use the LLVM SIMD intrinsics? I believe Accelerate was also tried and found to be too high level for our stuff. We're also multiplatform.
19
0
30k
Jun ’15
Xcode setting ENABLE_BITCODE
I am compiling my app in the new Xode7-beta and getting these errorsld: warning: URGENT: all bitcode will be dropped because 'xxx' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future.Where in Xcode does one set this?
11
0
57k
Jun ’15
CoreLocation: startUpdateLocation is unavailable
Hi,I'm in the process of moving CoreLocation logic from my iPhone app to my WatchOS app but get compile errors for startUpdateLocation stating it's unavailable.The actual compile error reads:CoreLocation.CLLocationManager:53:14: note: 'startUpdatingLocation()' has been explicitly marked unavailable here @objc func startUpdatingLocation()What's the recommended way to get location updates for WatchOS extensions?Cheers,Kristoffer
10
0
1.8k
Jun ’15
"MKMapKit viewForAnnotation" no longer changing annotation image in iOS 9.
I've noticed that in iOS 9 the annotations on my map are no longer using the images I wish to assign them and are now just showing up as red pins. This does not happen in iOS 8 or 7. Here is the code I am using to change the annotations image:- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation{ if (annotation == mapView.userLocation) return nil; MKPinAnnotationView *annView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@pin]; UIImage *annotationImage = [UIImage imageNamed:@MyFileNameWhatever.png]; annView.image = annotationImage; annView.canShowCallout = YES; return annView; }I can't see any changes in the release notes for iOS 9, has something changed?
7
0
4.2k
Jun ’15
SIP (System Integrity Protection)
Apple's new El Capitan feature SIP (System Integrity Protection) aka rootless will have some interesting impacts that will impede workflows for administrators.- If you Netboot across subnets, you will no longer be able to use bless. Apple's view is if someone can target a machine to boot to a non 10.11 OS, they can bypass SIP. This will prevent any unathorized boot methods.- You will be able to write to certain privileged folders through the use of a package signed with a valid Apple Developer code signing certificate.More soon on SIP if I can find the right engineer.
42
0
19k
Jun ’15
Reply to Is developing extensions for Safari free?
I guess you have never built a Safar Extension or tried to load one from source? You need a developer certificate to load any extension code into Safari, which means people will now be required to pay 99 USD to load some bits of JavaScript into the browser. So no, you can’t “develop all the Safari extensions you want for free.”
Topic: Safari & Web SubTopic: General Tags:
Jun ’15
nsurlsessiond issue using 100% CPU iOS 8.3
We have an application which downloads large amounts of data (10 files with a total of 5.8GB) using NSURLSession in the background. On iOS 8.3 and iOS 8.4 beta 3 we observed the following- The download sometimes suddenly stalls at around 1.2GB. Seems to happen on fat internet conenction with an iPad Air 2.- If we force terminate the App in this situation it can't be launched again. We have found that the nsurlsessiond is using 100% CPU and that the watchdog ist killing the App just after the launch as it is not responding. Looking at the crash report the creation of the NSURLSession [NSURLSession sessionWithConfiguration:delegate:delegateQueue:] seems to be waiting on a semaphore.This might be related to this post https://devforums.apple.com/message/1128072#1128072.I've attached the crash report below.Any ideas? We have filed this as Bug rdar://21300082Jakob------------------------------------------------------------------------Incident Identifier: 32D98114-3D3C-4C26-BFB5-F2984F6084DECrashReporter Key: 601353
0
0
1.3k
Jun ’15
CoreSpotlight error (iOS9)
I'm able to add items to the CSSearchableIndex on the iOS9 simulator, but on a device I see:[com.apple.corespotlight.log.index] Hit Error index items:Error Domain=CSIndexErrorDomain Code=-1003 The operation couldn’t be completed. (CSIndexErrorDomain error -1003.)Error code translates to enum value CSIndexErrorCodeRemoteConnectionError with the comment //There was an error trying to communicate with the remote processAnyone else seeing this issue?
8
0
2.9k
Jun ’15