Hey All, i am getting this error, when i try to pic a picture from library and camera with the help of UIImagePickerController. Anyone have any solution for this? **2022-11-22 12:17:56.241155+0530 ---[10745:2313612] [core] Error returned from daemon: Error Domain=com.apple.accounts Code=7 (null) 2022-11-22 12:17:56.245411+0530 ---[10745:2313614] [PAAccessLogger] Failed to log access with error: access= accessor:<> identifier:---kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 7261 named com.apple.privacyaccountingd UserInfo={NSDebugDescription=connection to service with pid 7261 named com.apple.privacyaccountingd}**
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Oh blah, I shoulda scrolled down )-: The above is my response to your first post. The following is in response to your subsequent ones. I'm sorry I already tried to shorten it up - and failed :-D Thank you for reading through! The former approach only works when you’re installing the agent yourself, because you control the entire launchd property list. Use the latter approach if you’re using SMAppService to install your agent. I was actually using SMAppService.agent(plistName: )the whole time, I just took the information about the Bundle Identifier in AppSandboxLoginItemXPCDemo because I couldn't make the way with just the groups work. That was what I originally tried but never worked and I thought this is the way to do it. Or am I using this wrong? I'm copying the plist file with a build phase to Destination Wrapper into Contents/Library/LaunchAgents. This is the SMAppService way or do I have to do something different? Or is this mixed way between AppService and LoginItem? instead of using a command line tar
Topic:
Code Signing
SubTopic:
General
Tags:
Well - I think I found my problem and wow it's a weird one. After reading all the sample code related to XPC again and adding my teamID again to the bundle identifier (XXXXXXXXX.com.myapp.helper) I saw Xcode replacing the first character of the teamID with a dash - It always did that and I put that to Xcode weirdness Because bundle Identifiers are reverse dns format this should obviously not start with a digit - well unlucky situation here Well now this is a problem. My TeamIdentifier starts with a 4. My bundleID 4T9XXXXXX.com.myapp.helper gets immediately after submitting the textfield replaced with -T9XXXXXX.com.myapp.helper. When I build the App and check its contents Info.plist - the bundleidentifer is the wrong one with a dash. I think this took me all over the place because I ignored it for year when I saw it. After setting the Product Name and bundle Identifiers manually, it took some tries of changing the plist but after some tries it did stick. after reviewing again AppSandboxLoginitemXPCDemo readme
Topic:
Code Signing
SubTopic:
General
Tags:
I built an app which hosts a CMIOExtension. The app works, and it can activate the extension. The extension loads in e.g. Photo Booth and shows the expected video (a white horizontal line which moves down the picture). I have a couple of questions about this though. The sample Camera Extension is built with a CMIOExtension dictionary with just one entry, CMIOExtensionMachServiceName which is $(TeamIdentifierPrefix)$(PRODUCT_BUNDLE_IDENTIFIER) This Mach service name won't work though. When attempting to activate the extension, sysextd says that the extensions has an invalid mach service name or is not signed, the value must be prefixed with one of the App Groups in the entitlement. So in order to get the sample extension to activate from my app, I have to change its CMIOExtensionMachServiceName to .com.mycompany.my-app-group. Is this to be expected? The template CMIOExtension generates its own video using a timer. My app is intended to capture video from a source, filter that video, then feed it to the CMIOExt
it can read the files before I replace container in xcode . Has anyone encountered the same problem? and any solution? Error: Error Domain=NSCocoaErrorDomain Code=257 The file “Documents” couldn’t be opened because you don’t have permission to view it. UserInfo={NSUserStringVariant=( Folder ), NSFilePath=/var/mobile/Containers/Data/Application/97D816A0-8B58-4E33-8455-3F19E0A9FBAA/Documents, NSUnderlyingError=0x281e650b0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}}
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Files and Storage
iOS
Xcode Cloud
Organizer Window
I'm also having problem with Replace Container on real device. Even when I tried to create new iOS application to test it, when I replace the container, the application crashes. Easy way to replicate problem: Step 1: In Xcode, using project template, create new iOS application with CoreData support. Step 2: Build application and run it on real device with iOS 17. Step 3: Download Container for this application using Xcode. {menu - Window - Devices and Simulator). Step 4: Replace Container (the same container previously downloaded) using Xcode {menu - Window - Devices and Simulator). Step 5: Run application again on real device = crash/error. Errors: error: Failed to create directory: NSCocoaErrorDomain (513) CoreData: Unhandled exception finding default Directory URL '+[NSPersistentContainer defaultDirectoryURL] Could not conjure up a useful location for writing persistent stores.' My system configuration for development: Xcode 15.0.1 (also tested with Xcode 15.1 beta 3 with same error) iOS 17.1.2, i
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
2 versions 1 works 1 doesn't. UIViewRepresentable to show a PDF @AppStorage(DefaultsKey.userActiveBook.rawValue) var activeBook : URL = Bundle.main.url(forResource: BookPlaceHolder, withExtension: pdf)! func makeUIView(context: Context) -> PDFView { do { let pdfData = try Data(contentsOf: activeBook) pdfView.document = PDFDocument(data: pdfData) //<---- is nil ... } catch let Error { print(Error) } } fails with Error Domain=NSCocoaErrorDomain Code=260 The file “BookPlaceHolder.pdf” couldn’t be opened because there is no such file. func makeUIView(context: Context) -> PDFView { do { let pdfData = try Data(contentsOf: Bundle.main.url(forResource: BookPlaceHolder, withExtension: pdf)!) pdfView.document = PDFDocument(data: pdfData) ... } catch let Error { print(Error) } } Works perfectly. What is it with using @AppStorage to access the exact same URL causing the discrepancies ?
This problem is not repaired in Xcode 15.1 beta 3! This is a serious error that can be easily provoked: in the Window menu, select Device and Simulators, Download Container... and immediately Replace Container... with the one you just downloaded. When the app tries to access the file in .../Library/Application Support, the following error message appears: Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=513 Du hast nicht die Zugriffsrechte, um die Datei „Application Support“ im Ordner „Library“ zu sichern. UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/F2ACE0F7-9446-46B7-8B82-AD269E62C2A1/Library/Application Support, NSUnderlyingError=0x2812861c0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}} Unfortunately this problem prevents us from testing and further developing our app.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I notice that once I open a second ModelContainer on same URL as the document that's open in the DocumentGroup, then all saves to the DocumentGroup's model container fail with: Error saving the database Error Domain=NSCocoaErrorDomain Code=134020 The model configuration used to open the store is incompatible with the one that was used to create the store. UserInfo={NSAffectedObjectsErrorKey= (entity: Blah; id: 0x60000026e0c0 ; data: { id = 91E56F61-CFE0-42E4-9EA9-EAD4256B64AB; imageData = nil; name = Untitled Blah; })} I will assume that this is just not a good idea right now, and conclude that Document based SwiftData apps do not work well with multiple scenes.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
NSStoreModelVersionHashesDigest = DJ2WYYwgxZ0ODDxWSCU/qENUGNTyxR4QfG8zLErpzQrvMoo9u19pSVjC7jzbUm0QLzGhFtKR3E0LRQvO9u6WXQ==; NSStoreModelVersionHashesVersion = 3; NSStoreModelVersionIdentifiers = ( 1.0.0 ); NSStoreType = SQLite; NSStoreUUID = FC5CF467-5684-4C95-8C0E-49698D0A8648; _NSAutoVacuumLevel = 2; }, reason=The model used to open the store is incompatible with the one used to create the store}}, reason=Failed to open the store} with userInfo { NSUnderlyingError = Error Domain=NSCocoaErrorDomain Code=134100 The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store. UserInfo={metadata={n NSPersistenceFrameworkVersion = 1337;n NSStoreModelVersionChecksumKey = /mv+MJ232k6TtgLWF/6u6Xvt1IOs/ezBTew3e5ULc+E=;n NSStoreModelVersionHashes = {n CloudSyncModelA = {length = 32, bytes = 0x3987992e 6ee680c6 e8bb9511 266ac8b2 ... 97ac3feb daf3a616 };n CloudSyncModelB = {length = 32, bytes = 0xd2664c00 d176a085 d0cb6b7f 7fdd3661 ..
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134100) CoreData: error: userInfo: CoreData: error: metadata : { NSPersistenceFrameworkVersion = 1337; NSStoreModelVersionChecksumKey = /mv+MJ232k6TtgLWF/6u6Xvt1IOs/ezBTew3e5ULc+E=; NSStoreModelVersionHashes = { CloudSyncModelA = {length = 32, bytes = 0x3987992e 6ee680c6 e8bb9511 266ac8b2 ... 97ac3feb daf3a616 }; CloudSyncModelB = {length = 32, bytes = 0xd2664c00 d176a085 d0cb6b7f 7fdd3661 ... 60f1b0b2 a9d0444e }; CloudSyncModelC = {length = 32, bytes = 0xca91943c 6571aedb 07473eaa 154207d1 ... 66bb77c1 6283438e }; }; NSStoreModelVersionHashesDigest = DJ2WYYwgxZ0ODDxWSCU/qENUGNTyxR4QfG8zLErpzQrvMoo9u19pSVjC7jzbUm0QLzGhFtKR3E0LRQvO9u6WXQ==; NSStoreModelVersionHashesVersion = 3; NSStoreModelVersionIdentifiers = ( 1.0.0 ); NSStoreType = SQLite; NSStoreUUID = FC5CF467-5684-4C95-8C0E-49698D0A8648; _NSAutoVacuumLevel = 2; } CoreData: error: reason : The model used to open the store is incompatibl
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
CoreData: error: URL: file:///private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application%20Support/default.store CoreData: error: : Attempting recovery from error encountered during addPersistentStore: 0x283fe4030 Error Domain=NSCocoaErrorDomain Code=512 The file couldn’t be saved. UserInfo={reason=Failed to create file; code = 2} CoreData: error: During recovery, parent directory path reported as missing CoreData: error: Recovery attempt while adding (type: SQLite, url: file:///private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application%20Support/default.store) was successful! CoreData: error: Could not materialize Objective-C class named Array from declared attribute value type Array of attribute named images CoreData: error: (1) I/O error for database at /private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application Support/default.store. SQLite error code:1, 'no such ta
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
Well if i launch from fresh install i get CoreData: error: Failed to stat path '/private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application Support/default.store', errno 2 / No such file or directory. CoreData: error: Executing as effective user 501 CoreData: error: Failed to statfs file; errno 2 / No such file or directory. CoreData: error: Logging status information for directory path: /private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application Support CoreData: error: Executing as effective user 501 CoreData: error: Information for / CoreData: error: File Device ID: 0 CoreData: error: Device ID: 838860801 CoreData: error: File Size: 544 bytes CoreData: error: File inode: 2 CoreData: error: File user ID: 0 CoreData: error: File group ID: 0 CoreData: error: File Permissions: CoreData: error: d CoreData: error: 755 CoreData: error: component is not a symbolic link CoreData: error: component is readable CoreData: error: com
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
We have an app that among other things installs a Personal VPN. This has been working fine for many years but recently we have gotten reports from customers that they are getting an error when installing the VPN. This has only started happening on iOS/iPadOS 17. I hadn't been able to reproduce the issue myself until I tried on an iPad with iPadOS 17.1.1 installed and this actually ties in with one of the customer reports. When I get the error I see the following: Xcode debug console: Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} Failed to save configuration [App Name]: Error Domain=NEConfigurationErrorDomain Code=10 permission denied UserInfo={NSLocalizedDescription=permission denied} Fai
What's happened to Xcode 14.3 on M1 Macs? Distributing Enterprise and Ad Hoc apps is broken! I can successfully archive an app, as usual, but when I come to distribute it I see an unhelpful error message: The operation couldn’t be completed. (AppThinning.StubError error 1.) Digging around in the logs reveals this in IDEDistribution.verbose.log: 023-04-17 12:16:50 +0000 Output: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22] /Applications/Xcode.app/Contents/SharedFrameworks/AppThinning.framework/Resources/ipatool:4135: warning: assigned but unused variable - prev /Library/Ruby/Gems/2.6.0/gems/CFPropertyList-3.0.5/lib/cfpropertylist/rbCFPropertyList.rb:83: warning: assigned but unused variable - temp /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:65:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle' (mach-o file, b