1. I am working for the carrier.2. On July 24, I filed an eSIM Access Entitlement request through the Apple Developer Portal.3. I didn't receive any feedback from Apple, but I found out that when I create a development provisioning profile, I can add a eSIM Development to the Entitlement.4. After downloading and opening the profile, I could check the following information.<key>Entitlements</key><dict><key>com.apple.CommCenter.fine-grained</key><array><string>public-cellular-plan</string></array>...5. I executed the following code but did not get the desired result as the log.<DEVICE>iPhone XS MAXiOS 12.2<code>if #available(iOS 12.0, *) {let provision = CTCellularPlanProvisioning()let cellrequest = CTCellularPlanProvisioningRequest()let isSupportEsim = provision.supportsCellularPlan()cellrequest.address = https://rsp... // Address confirmed to download eSIM n
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have some news (progresses?)@IBAction func generateDidSelect(_ sender: Any) { let docDir = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last print(DOC: (docDir)) let absPath = URL(fileURLWithPath: docDir ?? ).appendingPathComponent(flowers.png).absoluteString //[[NSBundle mainBundle]URLForResource:@flowers withExtension:@png]; let fileURL = URL(fileURLWithPath: absPath) fileURL.startAccessingSecurityScopedResource() let size = CGSize(width: 200, height: 200) let scale = UIScreen.main.scale let isFile = fileURL.isFile() let exists = FileManager.default.fileExists(atPath: fileURL.path) print(isFILE? (isFile ? YES : NO) exists? (exists ? YES : NO) nFILE: (fileURL)) let request = QLThumbnailGenerationRequest(fileAtURL: fileURL, size: size, scale: scale, representationTypes: QLThumbnailGenerationRequestRepresentationTypeAll) //request.iconMode = YES; QLThumbnailGenerator.shared().generateRepresentations(for: request, updateHandler: { thumbnail, type, error i DispatchQueue.main.a
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hello dear developers,Allow me to share with you my nightmare with SiriKit. I'm pretty new to this. So it's possible that I have done things wrong. I would really appreciate your help to get out of this situation. I have a couple of custom intents declared with one intent definiton file.Let's kick off with Chapter 1 - Destroyed localizationsI localized my Intents by going on my Intent Definition file, and checking all my languages on the right side of the screen, including the BASE one. I translated every file. But some of the text are not beeing translated. The title, subtitle and output variable display name are translated correctly though, so it's not that disturbing. But when I upload the package to the App Store, I recieve an email warning me that the title and subtitle of my intents are NOT translated in French (at least not found), but the rest of the elements and languages are fine! What a nonsense is this? What should I do, I litteraly can see all my translations done and checked, and they work on my
I am using below code to trash an item do { try FileManager.default.trashItem(at: NSURL(fileURLWithPath: /Users/syamalacat/Downloads/Doc.docx) as URL, resultingItemURL: nil) } catch { print(error) } I dont see Downloads under xcode application to check the box in Files and Folders in System Preferences pane, but it is just throwing below errorError Domain=NSCocoaErrorDomain Code=513 “Doc” couldn’t be moved to the trash because you don’t have permission to access it. UserInfo={NSURL=file:///Users/syamalacat/Downloads/Doc.docx, NSUserStringVariant=( Trash), NSUnderlyingError=0x600000c6fed0 {Error Domain=NSOSStatusErrorDomain Code=-5000 afpAccessDenied: Insufficient access privileges for operation }}From Files and Folders , i am not able to add Downloads folder, it is greyed out Even for the first time i am not able to see user consent message Note: I am running my application from xcode itself
Hello!I'm trying to notarize a single framework. The whole process went perfectly well with 'accepted' status at the end. However when I try to staple my framework stapler ends with The staple and validate action failed! Error 73.Verbose flag shows that it's trying to remove nonexisting CoreResources folder:Could not remove existing ticket from file:XXX.framework/Contents/CodeResources because an error occurred. Error Domain=NSCocoaErrorDomain Code=4 “CodeResources” couldn’t be removed. UserInfo={NSUserStringVariant=( Remove ), NSFilePath=XXX.framework/Contents/CodeResources, NSUnderlyingError=0x7fb096934260 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}Any idea how to tackle this problem?PS: 10.15, xcode 11Thank you!
Some one can help me for this problem. Thank you!!!!!!Process: Xcode [1411]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 11.1 (15405)Build Info: IDEFrameworks-15405000000000000~13App Item ID: 497799835App External ID: 832925179Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [1411]User ID: 501Date/Time: 2019-10-17 17:00:19.702 +0200OS Version: Mac OS X 10.14.5 (18F132)Report Version: 12Anonymous UUID: 1031994E-23CB-BF39-895C-07ED5AAE0166Time Awake Since Boot: 9100 secondsSystem Integrity Protection: enabledCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYApplication Specific Information:ProductBuildVersion: 11A1027UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for parameter key 'class' of extension 'Xcode.InterfaceBuilderKit.PepperIntegration.ConfigurationList' in plug-in 'com.apple.dt.IDE.IDEI
We developing to distribute pkg files using InstallApplication MDM command for macOS, for iOS it works fine using ipa.1. So first we created test app (HelloWorld) and notarized it.psls-Mac-mini:notarised psl$ spctl -a -v HelloWorld.app HelloWorld.app: accepted source=Notarized Developer ID2. Created pkg from app file using productbuild and signed it using productsign and used Developer ID Installation: ****** certificate for same.3. Notarised pkg file as well using xcrun altool validation performed for same:psls-Mac-mini:pkg psl$ spctl -a -v --type install HelloWorldS.pkg HelloWorldS.pkg: accepted source=Notarized Developer ID4. Then stapled using pkg file using xcrun stapler staple HelloWorld.pkg, the validate action worked for same.5. The same app is distributed to device InstallApplication commmand to macOS 10.14.6 (Mojave) device which returns Acknowledge and triggers Fetch Manifest for same application:6. Log from macOS endpoint for same:default 18:25:53.678194 +0530 mdmclient Processing server request:
Our FileProvider-Extension used to work perfectly in previous iOS versions. Starting with iOS 13 we keep getting the following error randomly when accessing files (stored in the app group):Error Domain=NSCocoaErrorDomain Code=4101 Couldn’t communicate with a helper application. UserInfo={NSUnderlyingError=0x281edd1a0 {Error Domain=NSFileProviderInternalErrorDomain Code=7 A connection to the extension “com.ourdomain.ourapp.DocumentProviderFileProvider” could not be made. UserInfo={NSLocalizedDescription=A connection to the extension “com.ourdomain.ourapp.DocumentProviderFileProvider” could not be made., NSUnderlyingError=0x281edcb10 {Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.ourdomain.ourapp.DocumentProviderFileProvider.apple-extension-service UserInfo={NSDebugDescription=connection to service on pid 0 named com.ourdomain.ourapp.DocumentProviderFileProvider.apple-extension-service}}}}}Our FileProvider implements these methods:func itemChanged(at url: U
How should my code be modified to ensure that when an exception happens at the Core Data layer when adding a new item, that SwiftUI does NOT continue to show a new item? Background: When I run the below code I get an exception when adding a new item doing the context.save(), HOWEVER whilst the new item request really failed (did not save to Core Data), the UI does show a new item. It is as if the lists variable in the @FetchRequest line is not behaving dynamically. Question - How do I fix code so that the application works properly?Code: import SwiftUI struct ContentView: View { @Environment(.managedObjectContext) var context @FetchRequest(fetchRequest: List.allListFetchRequest()) var lists: FetchedResults private func addListItem() { let newList = List(context: context) newList.id = 1 newList.title = Testing 123 do { try context.save() } catch let e as NSError { print(Could not save new List. (e.debugDescription)) return } } var body: some View { NavigationView { VStack { ForEach(lists) { list in Text(List =
Hi Eskimo,Thank you for your answer.I actually have SIP disabled and not having the entitlement granted by Apple I removed it fomr the .entitlements file and added to my endpoint security info.plist.My CFBundlePackageType was $(PRODUCT_BUNDLE_PACKAGE_TYPE) and I changed it, just in case, to SYSX. Unfortunatelly the error is still there.Here the logs I can see in the console filtering for zuul that is my prototype name:default 17:08:05.468297+0000 secinitd Zuul[16986]: root path for bundle <private> of main executable <private> default 17:08:05.615951+0000 secinitd Zuul[16986]: AppSandbox request successful default 17:08:05.648643+0000 Zuul FRONTLOGGING: version 1 default 17:08:05.648670+0000 Zuul Registering, pid=16986 default 17:08:05.650254+0000 Zuul CHECKIN: pid=16986 default 17:08:05.661792+0000 Zuul CHECKEDIN: pid=16986 asn=0x0-0x1b11b1 foreground=0 default 17:08:05.660769+0000 launchservicesd CHECKIN:0x0-0x1b11b1 16986 com.xxxxxxxx.zuul default 17:08:05.662844+0000 loginwindow -[ApplicationM
Topic:
App & System Services
SubTopic:
Drivers
Tags:
Getting same kind of issue for code coverage report.Please provide the solution.Using Xcode 11.2.1.xccov[4508:118225] Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverterError: Error Domain=XCCovErrorDomain Code=0 Failed to load coverage report for scheme action 'Testing with scheme' in result bundle UserInfo={NSLocalizedDescription=Failed to load coverage report for scheme action 'Testing with scheme' in result bundle, NSUnderlyingError=0x7fd4f401f3f0 {Error Domain=NSCocoaErrorDomain Code=260 The file “action.xccovreport” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/tmp/action.xccovreport, NSUnderlyingError=0x7fd4f4022980 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}}}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I am using below piece of code to delete a fileif FileManager.default.fileExists(atPath: Path) { do { try FileManager.default.removeItem(atPath: Path) } catch { print(error) } }Path is /Library/LaunchAgents/com.example.agent.plistI am getting below errorError Domain=NSCocoaErrorDomain Code=513 “com.example.agent.plist” couldn’t be removed because you don’t have permission to access it. UserInfo={NSFilePath=/Library/LaunchAgents/com.example.agent.plist, NSUserStringVariant=( Remove), NSUnderlyingError=0x600000c76af0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}}How can i delete a file with admininistrative priveleges from swift. Is there a way i can do without involving apple scripts and shell scripts using native swift?
I'm trying to migrate a existing core data db into an app group so that it can be accessed by an apple watch.So far i have triedfunc migrateStore() { persistentContainer = NSPersistentContainer(name: Diamond_Painting_Logbook) persistentContainer.loadPersistentStores { (description, error) in if let error = error { fatalError(Could not create CoreData store: (error)) } var nURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: group.Desbrina.dpl.Diamond-Painting-Logbook.shared) nURL = nURL?.appendingPathComponent(Diamond_Painting_Logbook.sqlite) if let newURL = nURL { do { let psc = self.persistentContainer.persistentStoreCoordinator let store = psc.persistentStores[0] NSLog(7 *****************) try psc.migratePersistentStore(store, to: newURL, options: nil, withType: NSSQLiteStoreType) NSLog(8 *****************) } catch { } } } }Its throwing an error on the line.try psc.migratePersistentStore(store, to: newURL, options: nil, withType: NSSQLiteStoreType)I'm asuming its because the desti
Dear all,I want to do authorization in my app, I use ASAuthorizationSingleSignOnProvider, ASAuthorizationSingleSignOnRequest, andASAuthorizationController to complete our work. I got an error as the following.[SOServiceConnection] <SOServiceConnection: 0x283639180>: XPC connection interrupted[SOServiceConnection] XPC error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.AppSSO.service-xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.AppSSO.service-xpc was invalidated from this process.} [SOAuthorization] no SPI authorization delegateHow to I fix it. This is my sample code.do { ASAuthorizationSingleSignOnProvider *ssoProvider = [ASAuthorizationSingleSignOnProvider authorizationProviderWithIdentityProviderURL:[NSURL URLWithString:@OurURL]]; if(ssoProvider==nil) { break; } ////////////////////////////////////////////////// ASAuthorizationSingleSignOnRequest *request = [ssoProvider cr
Isn't working for me.Line that fails:scan = try (interface.scanForNetworks(withName: ssidName, includeHidden:true))Error:An error has occured while scanning networks: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.airportd was invalidated from this process. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.airportd was invalidated from this process.}codesign -d --entitlements - DerivedData/airport-bssid/Build/Products/Debug/airport-bssidExecutable=/Users/maxcoplan/Documents/workspace/airport-bssid-swift/DerivedData/airport-bssid/Build/Products/Debug/airport-bssid com.apple.security.network.client com.apple.security.network.server For some reason Apple's code formatter isn't working. Here's the raw output:Executable=/Users/maxcoplan/Documents/workspace/airport-bssid-swift/DerivedData/airport-bssid/Build/Products/Debug/airport-bssid��qq3<?xml version=1.0 encoding=UTF-8?><!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//E
Topic:
App & System Services
SubTopic:
Networking
Tags: