Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

CoreData+CloudKit Model Migration Failing
So I've been developing happily with CoreData+CloudKit for a while now, and really haven't run into any issues until this. I've migrated my model a couple of times, and it worked fine, but this was the first time I added a new entity to the model. If I run on a device (any device, iPhone, iPad, Mac via Catalyst), I get a migration error. Here's the entirety of my persistentContainer setup: public var persistentContainer: NSPersistentContainer = { let modelPath = Bundle(for: CoreDataStack.self).url(forResource: Progress, withExtension: momd)! let model = NSManagedObjectModel(contentsOf: modelPath)! let container = NSPersistentCloudKitContainer(name: Progress, managedObjectModel: model) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { print(storeDescription) fatalError(Unresolved error (error), (error.userInfo)) } }) return container }()And here's the error I'm getting:Callstacks=true}}}CoreData: annotation: : Attempting recovery from error enco
10
0
5.9k
Jun ’20
Error initializing MLMediaLibrary instance
In an application I'm developing, I followed these directions on Stack Overflow to initialize a new instance of MLMediaLibrary. Rather than get back a properly-formed instance, I get the following logged to the console:__38-[MLMediaLibraryImpl connectToService]_block_invoke connection interruptedMLMediaLibrary error obtaining remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 Couldn't communicate with a helper application. (connection to service named com.apple.MediaLibraryService) UserInfo=0x60000026a140 {NSDebugDescription=connection to service named com.apple.MediaLibraryService}So I made a new test application, copied the code from the application I'm developing and pasted it into the test application. Surprise of surprises, it works fine.I've checked the build settings, etc, to make sure the two are the same and can't figure out why the new application works, but the other doesn't. (Of note: The old application was originally an Xcode 3.2.6 project that has been upgraded numerous tim
2
0
1.5k
Jul ’15
Getting timeouts when setting 'parent' for CKRecord
I'm running into a strange case with setting the new 'parent' reference on a CKRecord. If the parent record is saved as part of the same CKModifyRecordsOperation, it works fine ... but if the parent record was saved in a different CKModifyRecordsOperation (and dependancies were set to make sure that the parent record is saved first before the other records are sent to CloudKit), then I get timeouts such as this:2016-06-26 23:42:58.365038 TestCreatePrivateZoneOnCloudKit[1916:516778] [LogFacilityCK] Got a connection error for operation <private>: <private>2016-06-26 23:42:58.365386 TestCreatePrivateZoneOnCloudKit[1916:516778] modify records error = Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.cloudd UserInfo={NSDebugDescription=connection to service named com.apple.cloudd}If I remove the 'record.parent' reference in this 2nd case, the timeouts go away.Anyone having similar issues? The architecture of my app is such that I need to save the parent record in
9
0
945
Jun ’16
Symbol not found in flat namespace with [NSBundle load]
I am having an issue with Xcode 15 when I create an archive build of my application. The general structure I something like: Main Application: Links to staticLib.a Plugins: use datatypes in staticLib.a When I build an archive build and load the bundle for the plugin, I get the following type of errors: Error Domain=NSCocoaErrorDomain Code=3588 dlopen(pluginBinary, 0x0109): symbol not found in flat namespace '_OBJC_CLASS_$_FIRST_MISSING_CLASS' This program runs fine and finds the plugins without issues if I run the program from Xcode. It also will run and find the plugins correctly if I build a release build using xcodebuild. Only if I use Archive does it fail to load these files in the flat namespace. The plugins and the main binary say they use the TWOLEVEL namespace using otool -hV on them. If I link the static library to the plugin, I get undefined behavior because both are linking to the same binary. The plugins are using: -undefined dynamic_lookup in their linker flags. Any ideas how to resolve
4
0
922
Sep ’24
Mac Permissions Issue - Likely involving Xcode
Getting Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file unexpectedly while attempting to create a small log file. Here's some background. This is a Swift app I wrote for my own use six years ago. A week ago, I made a small update to the app, which has not been changed in over two years. First time using Xcode 16.4 on this app, which required some code updates of course. The code creating this file has not been changed. Now for the first time, I'm getting this permissions error on a folder with wide-open permissions. This is the code. Worked for years under previous versions of Xcode. * if let outputURL = URL(string: file:// + logPath + /output_ + outputFormatter.string(from:Date()) + .txt){ do{ try outputString.write(to: outputURL, atomically:false, encoding: .utf8) }catch let error as NSError{ print (log write error (error) (nl) (outputString)) } }
2
0
162
Jul ’25
altool fails with "The auth server returned a bad status code"
Hi All, Trying to validate some altool credentials, produces this error message. Failed to get authorization for username '<username/>' and password with errors:( Error Domain=NSCocoaErrorDomain Code=0 Status code: 0 UserInfo={NSLocalizedDescription=Status code:0, NSLocalizedFailureReason=The auth server returned a bad status code.}) This is returned when altool is called in the following way. xcrun altool --notarization-history 0 -u <username/> -p <password/> --output-format xml macOS 11.2.3 and Xcode 12.5 Things that have been tried already. Making sure the Apple system status page shows no issues. Different networks. Checked to see if any agreements need to be activated. Recreated the app-specific password multiple times. Any other suggestions? @Quinn - Hi Quinn, it's Sam Rowlands (again) and this is with another App Wrapper customer experiencing this issue (so not me directly).
27
0
25k
May ’21
On-demand resources suddenly stopped working?
So yesterday I noticed that some of images in my app stopped appearing. All of them were placed in the on-demand resources, that is I've assigned tags to them. Up until yesterday they were working correctly but since then whenever I try to load the assets I get the error message saying: Error Domain=NSCocoaErrorDomain Code=4099 Connection invalidated to streaming unzip service. My code for loading the asset is pretty straightforward and it was working perfectly fine before: let resourceRequest = NSBundleResourceRequest(tags: [vinyl]) defer { resourceRequest.endAccessingResources() } do { if await !resourceRequest.conditionallyBeginAccessingResources() { try await resourceRequest.beginAccessingResources() } } catch { assertionFailure(Vinyl image was not available, error: (error)) } I'm obviously using it in asynchronous context, but the old method which used completion handler gives me the same error. Has anyone encountered this issue as well? I just updated my devices to iOS 15.5, maybe that update b
6
0
3.7k
Jun ’22
[PHImageManager requestImage] crash only iOS17.0
Unhandled error (NSCocoaErrorDomain, 134093) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=134093 (null) Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0xed5e0 __exceptionPreprocess 1 libobjc.A.dylib 0x2bc00 objc_exception_throw 2 CoreData 0x129c8 _PFFaultHandlerLookupRow 3 CoreData 0x11d60 _PF_FulfillDeferredFault 4 CoreData 0x11c58 _pvfk_header 5 CoreData 0x98e64 _sharedIMPL_pvfk_core_c 6 PhotoLibraryServices 0x6d8b0 -[PLInternalResource orientation] 7 PhotoLibraryServices 0x6d7bc -[PLInternalResource orientedWidth] 8 Photos 0x147e74 ___presentFullResourceAtIndex_block_invoke 9 PhotoLibraryServices 0x174ee4 __53-[PLManagedObjectContext _directPerformBlockAndWait:]_block_invoke 10 CoreData 0x208ec developerSubmittedBlockToNSManagedObjectContextPerform 11 libdispatch.dylib 0x4300 _dispatch_client_callout 12 libdispatch.dylib 0x136b4 _dispatch_lane_barrier_sync_invoke_and_complete 13 CoreData 0x207f8 -[NSManagedObjectContext performBlockAndW
6
0
2.1k
Sep ’23
Entitlement com.apple.developer.homekit.allow-setup-payload is not suported
Hello. I'm working on application for managing accessories our partner manufactures. I'm developing PoC of WAC provisioning and I chose HomeKit for that. I'm trying to add our accessory using addAndSetuppAccessories with payload(url) I took from accessory QR code. But is doesn't work. On some devices calling method produces nothing in logs, on some I receive log: [default] Failed to deserialize object of classes: {( HMAccessorySetupCompletedInfo )}, from data {length = 135, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000005b }, with error: Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'} Apart of logs my view controller appearance changes as like some modal controller is going to be presented over it. But never happens. I found that I should add com.apple.developer.homekit.allow-setup-payload entitle ment to the identifier. But Xcode 12.x doesn't see it. Please help. Thanks in advance.
0
0
754
Oct ’21
Having a problem while Testing SKAdnetwork
Hello, I have 3 questions. According to specification, it says to ignore subdomain, but if there is subdomain as follows, does it mean that SKADNetwork did not send postback? ex) test1.example.com. https://developer.apple.com/documentation/bundleresources/information_property_list/nsadvertisingattributionreportendpoint We conducted the test through the SKADNetwork test framework according to specifications, but the postback was not sent to our server. In addition, we tried to check whether SKADNetwork was working properly through advertisements directly on publisher apps and advertiser apps, but postbacks were not sent to our servers. How can I check in this case? Also, there is error log below testing with SKAdTestSession SKANTestabilitySample[14079:188474] [SKAdTestSession] Error fetching remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.storekit.configuration.xpc UserInfo={NSDebugDescription=connection to service named com.apple.storekit.configura
0
0
1.1k
Dec ’22
What is the error?
What is the error in this code? @main struct CollectionManagerApp: App { init() { do { var bo: ObjCBool = true let library = try FileManager().url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: false).appending(path: CollectionManager) let database = library.appendingPathComponent(DataBase.plist) if !FileManager().fileExists(atPath: library.absoluteString) { try FileManager().createDirectory(at: library, withIntermediateDirectories: false) } if !FileManager().fileExists(atPath: database.absoluteString) { FileManager().createFile(atPath: database.absoluteString, contents: nil) print(OK) } } catch { print(Init Error: (error)nEND) } } var body: some Scene { WindowGroup { ContentView() } } } The error: Init Error: Error Domain=NSCocoaErrorDomain Code=516 The file “CollectionManager” couldn’t be saved in the folder “Application Support” because a file with the same name already exists. UserInfo={NSFilePath=/Users/gattino09/Library/Application Support/CollectionManager
0
0
745
Jan ’23
The download failed, what are the requirements for the BackgroundDownloadExt certificate or BundleId?
xcrun backgroundassets-debug --simulate --app-install -d 00008120-0014188636D8C01E -b com.testBackGround.photos Application was installed event was sent for app identifier: (com.testBackGround.photos). WWDC Sessions Background Assets Extension container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled backgroundassets.user Extension interrupted for identifier: com.testBackGround.photos runningboardd Invalidating assertion 31-413-2850 (target:[xpcservice:413])>:1479]) from originator [osservice:413] backgroundassets.user Extension invalidated for identifier: com.testBackGround.photos backgroundassets.user Extension for app identifier com.testBackGround.photos ran for 1.1 seconds. backgroundassets.user Failed to send -[BADownloaderExtensionProxy requestDownloadsWithContentRequest:manifestURL:extensionInfo:completion:]_block_invoke for: com.testBackGround.photos error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.testBackGround.photos.Ba
2
0
1.1k
Aug ’23
Sandbox restriction Error 159: Tap to Pay integration in iOS app
Hi all, I am hope someone could assist me with the below error if you ever ran into this during Tap-to-Pay functionality integration on iOS/iPadOS devices. Pre-condition: I have received required entitlements for the Tap-to-Pay integration and created Sandbox test account to validate my development work. Used updated development profile with the new capabilities required for the Integration. When i try to test my flow, i keep receiving this error, with multiple sandbox accounts in developer portal. Error (refreshContext): proxy error handler [ Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.merchantd.transaction was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.merchantd.transaction was invalidated: failed at lookup with error 159 - Sandbox restriction.} ] I greatly appreciate if anyone faced this issue or any knowledge on how to address this error. Thanks in advance. Best
0
0
267
Jul ’25
FileProvider Testing Setup
TL:DR Can anyone provide guidance as to how to get the FileProvider testing API to work? It closes with no error and I have not been able to determine the issue despite careful attention to the documentation and signing. The Console logs seem to imply it is a Sandbox issue. Hi, Writing this as per suggested in the technical support section. I am trying to create some tests that involve controlling the calls from MacOS to the corresponding event functions in the FileProvider (e.g. fetchContents()) using the FileProviderExtension test API provided by Apple. I have thoroughly read the documentation (both online and within the API code) in order to get this to work. I have: Added the com.apple.developer.fileprovider.testing-mode entitlement to both my Main App as well as my FileProviderExtension Ensured my I have the correct account permissions, and provisioning profiles for my Main App as well as FileProviderExtension Added the line domain.testingModes = [.alwaysEnabled, .interactive] The issue: I found that set
3
0
1.2k
Apr ’24
in apple watch the app is must be arm64?
apple watch(watchOS=1.0.1)xcode=6.4my watchApp target Build Settings: Architectures=armv7 Valid Architectures=arm64 armv7 armv7srun my watch app in apple watch has the error,is the app run in apple watch must be builded with arm64?:Jul 15 09:59:05 cengruilvede-iPhone com.apple.xpc.launchd[1] (com.alibaba.aliwork.watchkitextension[1957]) <Error>: Program specified by service does not contain one of the requested architectures: 16777228:arm64Jul 15 09:59:05 cengruilvede-iPhone companionappd[106] <Warning>: plugin com.alibaba.aliwork.watchkitextension interruptedJul 15 09:59:05 cengruilvede-iPhone companionappd[106] <Warning>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 The operation couldn’t be completed. (Cocoa error 4097.) (connection to service named com.alibaba.aliwork.watchkitextension) UserInfo=0x12ea9bbb0 {NSDebugDescription=connection to service named com.alibaba.aliwork.watchkitextension}Jul 15 09:59:05 cengruilvede-iPhone companionappd[106] <Notice>:
1
0
1.4k
Jul ’15