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
Search results for
NSCocoaErrorDomain Error Code 4
170,045 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
This bundle is invalid. Apple is not currently accepting applications built with this version of the OS. error message. Im trying to submit app to appstore. Im using xcode 6.3.2 (6D2105) (Release). How to fix it? In all setting inside xcode target is 10.10. base sdk 10.10 too. On my mac i have OSX 10.11 beta.
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.
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
Tags:
Does anyone know if it is possible to have Swift 1.2 and Swift 2 source code in the same Xcode 7 project?
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?
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.
Hi,my question is, can I upload source code that uses iOS9 specific features to github and make it public. Or is this against the NDA?Cheers
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?
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
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?
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.
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:
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
yes i checked my folder name it's still nathanwhen I try to build the project it says build failed then I got error like that
Topic:
Programming Languages
SubTopic:
Swift
Tags:
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?