Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to getting data from mysql with php
thx for respondingi'm getting this errorError Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}all code // // ViewController.swift // 123Taxi // // Created by José Raúl Toledano Rosado on 10/10/18. // Copyright © 2018 José Raúl Toledano Rosado. All rights reserved. // import UIKit import Alamofire class ViewController: UIViewController { @IBOutlet var Email: UITextField! @IBOutlet var Contrasena: UITextField! var iconClick : Bool! override func viewDidLoad() { super.viewDidLoad() iconClick = true // Do any additional setup after loading the view, typically from a nib. } @IBAction func verlacontra(_ sender: UIButton) { let userPazzword = Contrasena.text!; if(iconClick == true) { Contrasena.isSecureTextEntry = false iconClick = false } else { Contrasena.isSecureTextEntry = true iconClick = true } } //func para mostrar ale
Oct ’18
Reply to getting data from mysql with php
this is the error that shows now Optional(<meta charset=UTF-8>{Email:Error,Password:Error}rnrnrn)Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
Oct ’18
iOS 12 Freeze application
Hello everyone I have a very strange issue with iOS 12, my application is a simple table of all the games I did in iOS, the project, I did with swift 4 for iOS 11 with XCode 9, I use a simple Storyboard with 2 view controllers with table views and also includes a Share Extension, everything works normally until iOS 11.4.1, now when I upgraded XCode 10 with iOS 12, it worked normally in the simulator and in an iPhone SE in debug mode, the problem arose when I uploaded a build to Testflight and the application was installed on an iPhone 6 Plus, the screen is completely frozen, the share extension works but the application does not I saw 2 questions related to this first and second, but without answer and that is why I also share my code:// AppDelegate.swift // MenuGames // Created by Dennis Mostajo on 7/3/18. // Copyright © 2018 MenuGames. All rights reserved. // import UIKit import Fabric import Crashlytics import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: U
0
0
2.0k
Oct ’18
Reply to AMWorkflowController running should only be done from the main thread
Quinn,This is about as simple of an example as I can provide:An ApplescriptObjC automator action project in Xcode. The Interface builder provides an Automator Path Pop Up Button that allows the user to select an existing workflow to be run. The code to implement the action is shown below.------------------------------ Applescript code for automator action ---------------------------------script Run_Workflow_on_Each_Job -- this the File's Owner in IB property parent : class AMBundleAction property pWFController : missing value -- connected to AMWorkflowController instance in IB property pWorkflow : missing value -- assigned here property pWFView : missing value -- assigned here property pWorkflowPath : -- posix path to workflow specified by user in GUI on runWithInput_fromAction_error_(input, anAction, errorRef) try -- set up workflow set paramRec to parameters() as record set pWorkflowPath to |workflowPath| of paramRec set wfURL to current application's NSURL's fileURLWithPath_isDirectory_(pWorkflowPath, fal
Oct ’18
The given data was not valid JSON swift 4.2
why is this error popping out***MC] Reading from public effective user settings. Error: Couldn't decode data into Blog: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not valid JSON., underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 Garbage*i have this JSON* {Response:false,Info:[{Estatus:Sin Conexion}]}this is the structure of my json in swift struct Blog: Decodable { let Response: String let articles: [Article] enum CodingKeys : String, CodingKey { case Response case articles = Info } } struct Article: Decodable { let Estatus: String }and this is all my code@IBActionfunc enviarDestinoAccion1(_ sender: UIButton) { let id1 = UserDefaults.standard.string(forKey: id1conductor) let id1pa = UserDefaults.standard.string(forKey: idUser) if adondevaxd.text == || adondevaxd.text == || adondevaxd.text == 123 || adondevaxd.text == abc || adondevaxd.text == . { self.displayAlert(title: Usuario, message: Debe elegir un destino) } let myURL = U
2
0
6.5k
Nov ’18
Problem with EKEventStore
HiAm having problems creating an EKEventStore to access the calendars.To simplify the problem I created an OS X project in swift 4 with one button on the view. In the View controller I have imported EventKit. There is an @IBAction, as shown below, linked to the button. The sandbox is on with access to calendar checked.@IBAction func testEK(_ sender: Any) { let eventStore = EKEventStore.init()}When the button is clicked the following appears in the debug console area2018-11-13 19:19:56.985235+0000 EKTest[6916:407014] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain Code=134070 An error occurred in the persistent store. UserInfo={Problem=request failed, insufficient permission}2018-11-13 19:19:56.985845+0000 EKTest[6916:407014] [error] error: -addPersistentStoreWithType:NSXPCStore configuration:(null) URL:file:///Users/jimgraham/Library/Calendars/Calendar%20Cache options:{ NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; NSPersistentHi
Topic: UI Frameworks SubTopic: AppKit Tags:
4
0
4k
Nov ’18
macOS missing archived-expanded-entitlements.xcent
Hi,I'm trying to export my macOS app and failing at the point where archive is about to be signed.It doesn't matter if I set automatic signing or manual with all provisioning profiles, it's same behavior.So, basically I can't export the app and distribute it as this is absolute blocker.App uses number of frameworks (I have full source for all of them) and error that I get relates to each of the frameworks embeded.One of the frameworks is SDL2 and this is error for this particular framework:[OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fe440530bc0:'/Users/developer/Library/Developer/Xcode/Archives/2018-11-20/JuliesSweetsMAC 20-11-2018, 14.57.xcarchive/Products/Applications/JuliesSweetsMAC.app/Contents/Frameworks/SDL2.framework/Versions/A'>: Error Domain=NSCocoaErrorDomain Code=4 Item at /Users/developer/Library/Developer/Xcode/Archives/2018-11-20/JuliesSweetsMAC 20-11-2018, 14.57.xcarchive/Products/Applications/JuliesSweetsMAC.app/Contents/Frameworks/SDL2.framework/Versio
3
0
2.5k
Nov ’18
Can Safari app extension communicate with XPC service
Is it possible to open a communication channel from Safari app extension to XPC service on MAC?I created Xcode project with Safari app extension and XPC service targetsI am setting up a connection to the XPC service from extension's message handler messageReceivedWithName using NSXPCConnection and got the below error.Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named mySafariAppExtn1.XPCService was invalidated.In the extension entitlements, added below keyscom.apple.security.network.clientcom.apple.security.network.servercom.apple.security.temporary-exception.mach-lookup.global-nameIs there any other IPC mechanism by which I can do the sameThanks
3
0
2.8k
Nov ’18
Use CSSearchQuery in QLPreviewingController?
When implementing a QLPreviewingController on iOS, we only get the Spotlight uniqueIdentifier but not the actual CSSearchableItem.I thought I could use CSSearchQuery with a query like thisuniqueIdentifier == (identifier)to fetch the CSSearchableItem of the selected item from Spotlight. However, I always receive an error:<CSSearchQuery:0x2826e51e0 qid=1 flag=0x0000>error:Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application.>Is it not possible to call Spotlight from a QuickLook Preview extension? Is there another way to retrieve the CSSearchableItem for the item to be previewed?
0
0
1.6k
Nov ’18
How to troubleshoot when Safari App Extension not appear in Safari Preferences?
I'm developing a Safari App Extension. Previously it worked fine. When I run the project in Xcode, and enable Allow Unsigned Extensions in Safari, I can see my extension in Safari Preferences -> Extensions page.After I merged code with one of my team member, suddenly the Extension cannot get installed.I have tried:Clean the build folder in Xcode, and run again. But no luck.Restart Xcode doesn't help either.Use command pluginkit -mAvvv -p com.apple.Safari.extension to check installed Safari extensions list. My extension is not in the list.There are some errors in Xcode output, but I can't link them with the issue I'm facing:objc[59117]: Class AMSupportURLConnectionDelegate is implemented in both /System/Library/PrivateFrameworks/EmbeddedOSInstall.framework/Versions/A/EmbeddedOSInstall (0x7fff9a2aa748) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1063e8600). One of the two will be used. Which one is undefined.objc[59117]: Class AMSupportURLSession is implemented in
12
0
5.4k
Dec ’18
Failed to start extension (Packet Tunnel Provider)
I got a weird case regarding my VPN app for MacOS, which is kind of rare but I can reproduce it.Sometime I can see those messages at the Console:com.myCompany.myApp: Unsatisfied entitlements: com.apple.security.application-groups Disallowing: com.myCompany.myApp SandboxViolation: suggestd(507) deny file-read-data /private/var/db/mds/messages/501/se_SecurityMessages Violation: deny file-read-data /private/var/db/mds/messages/501/se_SecurityMessages Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.myCompany.myAppExtension UserInfo={NSDebugDescription=connection to service named com.myCompany.myAppExtension}And my client won't connect.It seems that it's happening on OS 10.12 but not on OS 10.14.So I have 2 questions:1. How can I solve it? I don't know if it's related to application-groups somehow, but I read that maybe I need to use team ID and not $(TeamIdentifierPrefix) but I don't know if it's correct..2. How can I get this error from the app? because the
1
0
1.1k
Dec ’18
Core telephony error with Xcode 10
I upgraded our legacy app to use Blackberry Dynamics IOS SDK 5.0.0.63 to be compatible with Xcode 10.1. Even without calling on Blackberry APIs (by not using GD), I would get this error - The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.The app would work with Xcode 9.4 and Blackberry Dynamics IOS SDK 3.0.2.51. Good Dynamics (GD) was purchased by Blackberry.Is it because I have not completely upgraded the GD code that I am getting the telephony error - the app needs to have internet access for a web service call before showing a login screen and it is failing to resolve - Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.Thank you.
0
0
2.7k
Dec ’18
CXCallDirectoryExtensionContextDelegate doesn't handle errors
Hello! I know that nobody here will answer this question, but I will try.I have Call Directory Extension with default error handlercontext.delegate = self extension CallDirectoryHandler: CXCallDirectoryExtensionContextDelegate { func requestFailed(for _: CXCallDirectoryExtensionContext, withError error: Error) { // An error occurred while adding blocking or identification entries, check the NSError for details. // For Call Directory error codes, see the CXErrorCodeCallDirectoryManagerError enum in . // // This may be used to store the error details in a location accessible by the extension's containing app, so that the // app may be notified about errors which occured while loading data even if the request to load data was initiated by // the user in Settings instead of via the app itself. NSLog(Callkit error: (error.localizedDescription)) } }When I add data with unsorted numbers I have an error. In console I see next:com.apple.CallKit.CallDirectory Cannot add identification phone number *** since it is less
2
0
1.4k
Jan ’19
Error when run release (beta) build.
I set fulfill all requirements for push notifications.Enable this in iTunes connect and then create provision profiles.In Debug mode app calles: didRegisterForRemoteNotificationsWithDeviceToken.But in release app calles: didFailToRegisterForRemoteNotificationsWithError with error:Domain=NSCocoaErrorDomain Code=3000 no valid 'aps-environment' entitlement string found for applicationIn project i have xxx.entitlements with:<dict> <key>aps-environment</key> <string>production</string></dict>And my xxx.mobileprovision contains this strings:<key>Entitlements</key><dict> <key>keychain-access-groups</key> <array> <string>XXXXXXXXXX.*</string> </array> <key>get-task-allow</key> <false/> <key>application-identifier</key> <string>XXXXXXXXXXX</string> <key>com.apple.developer.team-identifier</key> <string>XXXXXXXXXXX</string> <key>aps-environment</ke
0
0
960
Feb ’19
Crash core data - NSCocoaErrorDomain Code=256
Crash occurs frequently in testflight builds, below log is reported in crashlytics for the crashFatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=256 The file ####.sqlite” couldn’t be opened. UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/D73975F3-ED76-4C7B-A30A-0C751C8471AA/Library/Application Support/####.sqlite, NSSQLiteErrorDomain=23}, [NSFilePath: /var/mobile/Containers/Data/Application/D73975F3-ED76-4C7B-A30A-0C751C8471AA/Library/Application Support/####.sqlite, NSSQLiteErrorDomain: 23]: file /Users/elanarulaj/Desktop/voxer_client/packages/sdk.swift/VoxerKit/VoxerKit/Classes/####SDK.swift, line 86I do not find any working solution in StackOverFlow
2
0
2k
Feb ’19