Hello,below is our code block used in our app to connect to web service. Our app worked fine in iOS9. But users upgraded to iOS10, the app failed to connect to the web service.data on line 8 returns nil.error returns domain:@NSCocoaErrorDomain -code:256the url we use in this format: https://xxx.xxx.com/xxiOSService/partFinder.svc/GetLogin/ID=2451789487any idea why it only fails in iOS10?thank you!1) NSSTRING *_login = badgeTxt.text;2) NSSTRING *lab = [NSString stringWithFormat:@%@, _login];3) NSSTRING *filepath = [WcfServiceURL1 absoluteString];4) NSSTRING *test = [URL stringByAppendingString:filePath];5) NSSTRING *GetURL1 = [test stringByAppendingString:lab];6) NSURL *url = [NSURL URLWithString:GetURL1];7) NSError *error = nil;8) NSData *data = [NSData dataWithContentsOfURL: url options:NSDataReadingUncached error:&9) error];10) if (!error)11) {12) NSDictionary* json = [NSJSONSerialization13) JSONObjectWithData:data14) options:NSJSONReadingMutableContainers 15) error:&error];
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
i Have the same issue. How can i find Python version ?? save me please?2016-10-31 15:06:09.372 Xcode[11430:230967] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.dbg.DebuggerLLDB (/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /Library/Frameworks/Python.framework/Versions/2.7/Python
Topic:
App & System Services
SubTopic:
Core OS
Tags:
UIImage *image = [UIImage imageNamed:@bg.png]; NSData *imageData = UIImageJPEGRepresentation(image, 1.0); [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset]; [request addResourceWithType:PHAssetResourceTypePhoto data:imageData options:nil]; } completionHandler:^(BOOL success, NSError *error) { NSLog(@); }];This code works well with iOS 8.x. But its fails with error code -1 in iOS 9.x.The error is NSCocoaErrorDomain Code=-1 ERROR: PLXPCDictionarySetArray unable to serialize array ( { creationOptions = <null>; data = <ffd8ffe0 ………>; fileURL = <null>; type = 1; }) error Error Domain=NSCocoaErrorDomain Code=3851 Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull') UserInfo={NSDebugDescription=Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull')}Any idea about this behaviour in iOS 9..? Any help is appreciated
HI,I am trying to have IAP with hosted content within an iMessage Extension, but having trouble getting access to the contentI receive the callback to say the download has finished, and when I try and access the file, it doesn't matter what I try, when I try to access the url provided in the contentURL property of the SKDownload object, it get a permission denied error.The URL being returned is: /var/mobile/Library/Application Support/Containers/com.xxx.xxx.MessagesExtension/Library/Caches/42C53110-961D-4689-A6A7-C640609E1694.zipIf I try to copy that to the documents folder, I get:open on /var/mobile/Library/Application Support/Containers/com.xxx.xxx.MessagesExtension/Library/Caches/42C53110-961D-4689-A6A7-C640609E1694.zip: Operation not permittedError Domain=NSCocoaErrorDomain Code=513 “42C53110-961D-4689-A6A7-C640609E1694.zip” couldn’t be copied because you don’t have permission to access “B0AE2D49-76B7-49EE-81AB-FF4018F50899”. UserInfo={NSSourceFilePathErrorKey=/var/mobile/Library/Application Supp
HI,I am trying to have IAP with hosted content within an iMessage App, but having trouble getting access to the contentI receive the callback to say the download has finished, and when I try and access the file, it doesn't matter what I try, when I try to access the url provided in the contentURL property of the SKDownload object, it get a permission denied error.The URL being returned is: /var/mobile/Library/Application Support/Containers/com.xxx.xxx.MessagesExtension/Library/Caches/42C53110-961D-4689-A6A7-C640609E1694.zipIf I try to copy that to the documents folder, I get:open on /var/mobile/Library/Application Support/Containers/com.xxx.xxx.MessagesExtension/Library/Caches/42C53110-961D-4689-A6A7-C640609E1694.zip: Operation not permittedError Domain=NSCocoaErrorDomain Code=513 “42C53110-961D-4689-A6A7-C640609E1694.zip” couldn’t be copied because you don’t have permission to access “B0AE2D49-76B7-49EE-81AB-FF4018F50899”. UserInfo={NSSourceFilePathErrorKey=/var/mobile/Library/Application Support/Co
I'm crashing every time Core Data tries to do an automatic lightweight migration after making a new version of the model (let's call it Model 2.6) in my app (currently using Model 2.5). I've been working with Core Data for a while now, and I'm well aware that any time I need model changes for a new version, I have to use Editor --> Add Model Version, give that version a new identifier, and switch over to that using the Current Version popup. I'm familiar with the The model used to open the store is incompatible with the one used to create the store error, because I've made that mistake before. I believe I'm encountering a different problem, though getting that same error message.After banging my head against this for most of the weekend, I'm hoping someone out there has seen this before and can offer some sage advice.Here are my steps to trigger the issue:Reset Simulator, nuke Derived Data, clean build and save a file with the 2.5 format.In Xcode, Editor --> Add Model Version...Use that wizard to make a
HiI am using below additional code snipped for ios 10if ([NSProcessInfo instancesRespondToSelector:@selector(isOperatingSystemAtLeastVersion:)]) { UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; center.delegate = self; [center requestAuthorizationWithOptions:(UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionBadge) completionHandler:^(BOOL granted, NSError * _Nullable error){ if( !error ){ [[UIApplication sharedApplication] registerForRemoteNotifications]; NSLog(@start error: %@,[error description]); NSLog(@granted code: %d,granted); } }]; } if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) { UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIRemoteNotificationTypeBadge |UIRemoteNotificationTypeSound|UIRemoteNotificationTypeAlert) categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; NSLog(@current notifications : %@, [[UIApplication sharedAppli
Hello!New macOS app trying to allow user access to files they opened with NSOpenPanel at a later date | sessioin.I can successfully use the code below to write a bookmark at the same location that behaves as expected.I can do this AS LONG AS I do NOT use 'NSURLBookmarkCreationWithSecurityScope'.Yes I have: com.apple.security.app-sandbox==true in my entitlements fileHow do I go about understanding what is wrong? NSURLBookmarkCreationOptions bookmarkCreationOptions = (NSURLBookmarkCreationOptions)NSURLBookmarkCreationWithSecurityScope; NSURLBookmarkResolutionOptions bookmarkReadingOptions = (NSURLBookmarkResolutionOptions)(NSURLBookmarkResolutionWithoutUI|NSURLBookmarkResolutionWithoutMounting|NSURLBookmarkResolutionWithSecurityScope); self.attributedRTFString=[[NSMutableAttributedString alloc] initWithString:kMacEnactEmptyString]; if ([self.attributedRTFString readFromURL:self.documentCurrentURL options:tDictDocDefaultRTFDocAttrs documentAttributes:&myDictionary error:&myError]==YES) { NSLog(@readFromU
In the hopes of helping someone else - here's a better statement of the problem:-(BOOL) writeBookmarkForURL:(NSURL*)thisURL ofType:(NSUInteger)thisType asReadOnly:(BOOL)readOnly; { BOOL didWriteURL = NO; NSError *thisError = nil; if (readOnly) { bookmarkCreationOptions = (NSURLBookmarkCreationOptions)(NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess); } else { bookmarkCreationOptions = (NSURLBookmarkCreationOptions)(NSURLBookmarkCreationWithSecurityScope); } NSLog(@ready to: bookmarkDataWithOptions bookmarkCreationOptions:%ld,bookmarkCreationOptions); NSData*myData = [thisURL bookmarkDataWithOptions:bookmarkCreationOptions includingResourceValuesForKeys:nil relativeToURL:nil error:&thisError]; if(thisError!=nil) NSLog(@bookmarkDataWithOptions ERROR errorDesc:%@,[thisError debugDescription]); else if(myData!=nil)NSLog(@bookmarkDataWithOptions SUCCESS errorDesc:%@,[thisError debugDescription]); if(myData!=nil){ thisError=nil; NSURL*bookmarkURL = [self bookmarkURLForType:(int)thisType]; NSLog(@ready to:
Topic:
Code Signing
SubTopic:
General
Tags:
I'm relatively new to iOS and still learning many of the finer points, so this may be a silly question:I have two iOS apps which used to be kept under a local version control on my previous mac. This week, I purchased a new mac and transfered all the files over from the old one. Now I'm getting this error while compiling:Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 No current version for model at path /Users/myUser/Desktop/myApp/myApp/myApp.xcdatamodeld: UserInfo={NSFilePath=/Users/myUser/Desktop/myApp/myApp/myApp.xcdatamodeld, NSLocalizedDescription=No current version for model at path /Users/myUser/Desktop/myApp/myApp/myApp.xcdatamodeld:}The Core Data model versions show properly in the Project Navigator, but they are in red and not editable. It obviously sounds like a path issue, but if I right-click on 'myApp.xcdatamodeld' and select Show in Finder it properly takes me to the Core Data model's finder location.It's probably a simp
Does a core data database location have to be under the app's applicationDocumentsDirectory? That is how it is behaving for me.I would like to create my core data database in a folder of my choosing; however, when I attempt to create it outside of the applicationDocumentsDirectory, it fails.Works fine:databaseURL path: Users/rickschlueter/Library/Containers/com.eBetsy.eBetsy/Data/Library/Application%20Support[coordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:self.storeDataURL options:options error:&error]Fails:databaseURL path : Users/rickschlueter/Pictures/Inventory%20Databaseerror: Error Domain=NSCocoaErrorDomain Code=512 The file couldn’t be saved. UserInfo={reason=Failed to create file; code = 1}
Hi everyone,I take my responsabilities and come here to try to understand a problem.My app is released on AppStore and we are at the 10th ( at least ) version and ther is a problem is the last update i did.Here is the log i got from a friend of mine:Jan 17 17:13:13 iPhone-de-Arthur symptomsd(SymptomEvaluator)[116] <Info>: [0.006] 220 Twil com.dantes.Twil SYMPTOM_LIBNETCORE_DATA_STALL libne 00000008 000000dc -------- -------- [4 <7477696c 2e636f3a 34343300>] [3 <5477696c 00>] [2 <98716d44 716c3711 bd8bdbad 12dcb0d0>] Jan 17 17:13:13 iPhone-de-Arthur symptomsd(SymptomEvaluator)[116] <Notice>: NDFSM: auto bug capture is administratively OFF, ignoring symptom with key: 421890 Jan 17 17:13:13 iPhone-de-Arthur Twil(libsystem_trace.dylib)[220] <Notice>: subsystem: com.apple.coredata, category: error, enable_level: 0, persist_level: 0, default_ttl: 14, info_ttl: 1, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 Jan 17 17:13:13 iPh
how to use CFBundleAlternateIcons ?in my info.plist: <key>CFBundleIcons</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>Doodad.icns</string> </array> </dict> <key>CFBundleAlternateIcons</key> <dict> <key>CFBundleIconFiles</key> <array> <string>logo29x29</string> <string>logo40x40</string> <string>logo60x60</string> </array> </dict> </dict>in my code : UIApplication *app = [UIApplication sharedApplication]; BOOL reuslt = app.supportsAlternateIcons; NSLog(@%zd,reuslt); [app setAlternateIconName:@logo completionHandler:^(NSError * error) { NSLog(@%@,error); }]; [app setAlternateIconName:@logo29x29 completionHandler:^(NSError * error) { NSLog(@%@,error); }]; [app setAlternateIconName:@logo29x29@2x.png completionHandler:^(NSError * error) { NSLog(@%@,error); }]; NSLog(@name=%@,app.alternateIconName);ou
I'm having issues with the icons not found:Error Domain=NSCocoaErrorDomain Code=4 The file doesn’t exist. UserInfo={NSUnderlyingError=0x650000055f90 {Error Domain=LSApplicationWorkspaceErrorDomain Code=-105 iconName not found in CFBundleAlternateIcons entry UserInfo={NSLocalizedDescription=iconName not found in CFBundleAlternateIcons entry}}}Did anyone manage to make it work? Thanks.
I've not managed to get this to work either. I've tried a number of combinations according to the documentation (https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW14)https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW14.<key>CFBundleAlternateIcons</key> <dict> <key>AlternateIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>AltIcon</string> </array> <key>UIPrerenderedIcon</key> <false/> </dict> </dict>let application = UIApplication.shared if application.supportsAlternateIcons { if application.alternateIconName == nil { application.setAlternateIconName(AlternateIcon) { error in print(String(describing: error)) } } else { application.setAlternateIconName
Topic:
App & System Services
SubTopic:
Core OS
Tags: