Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

NSString Encoding Chinese text
Hello everybody,My problem is the following.In my app I need to save text files and this should also work for chinese text.To do that I save the text file making use of NSUTF8StringEncoding with the following instruction:[gameFile writeToFile:_path atomically:YES encoding:NSUTF8StringEncoding error:&error];This works fine!The problem is when I have to read the file. I don't read the file completely but I scan each line and I read each line using NSUTF8StringEncoding.If I read a normal file (medium size) all is ok, but if I read a big file (about 9MB) I have the following error:Error Domain=NSCocoaErrorDomain Code=261 The file “KingBaseLite.txt” couldn’t be opened using text encoding Unicode (UTF-8). UserInfo={NSFilePath=/Users/giordanovicoli/Library/Developer/CoreSimulator/Devices/8BEEEF25-620C-4B29-BD4A-E31B3C169E05/data/Containers/Data/Application/D0394678-DCCC-4D3E-8F9F-3B8685C80625/Documents/KingBaseLite.txt, NSStringEncoding=4}If I read the same file with the following encoding: NSISOLatin1S
1
0
1.2k
Jun ’16
Reply to Apps can't be launched.
我不是開發人員對程式語言也不懂我只能用翻譯軟體來判斷,在此先聲明!我懷疑我的手機被他人使用開者模擬程式遠端入侵,我換過帳號、手機完全無法抵擋,現在更將我的備份資料上鎖,因為我曾經在刪除的數據中看到不屬於我發出的訊息段落,我懷疑是我認識的人,但是苦無證據而這些事情已經嚴重影響到我的生活及工作(因為它可以遮蔽我的來電),我多次跟蘋果客服反映、但是都跟我說不可能會有這種問題,我求助無門,是否有人可以幫忙並揪出這個害蟲??我不是編程語言的開發者,我聽不懂的翻譯軟件只能用於確定,事先聲明!我懷疑我的手機被別人用過打開由模擬程序入侵的末端,我改變了自己的賬號,手機完全無法抵抗的,現在我的備份數據鎖定,因為我已經看到了已刪除的數據不我的問題的消息段落,我懷疑是我認識的人,但苦於沒有這些東西的證據已經嚴重影響了我的生活和工作(因為它遮住我的電話),我一再告訴蘋果客服反映,但他告訴我不能說有這樣的問題,我已經走投無路了,如果有人可以幫助揪出這種害蟲?6月14日18點36分56秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用喪生6月14日18時36分58秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用程序沒有運行6月14日18時36分58秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用喪生6月14日18時37分01秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用程序沒有運行6月14日18時37分01秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用喪生6月14日18時37分01秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用程序沒有運行6月14日18時37分01秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用喪生6月14日18時37分03秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用程序沒有運行6月14日18時37分03秒KK-YOU跳板[58] <警告>:高優先級推送:jp.naver.line - 應用喪生6
Jun ’16
Xcode 8 don't Start
I have a big problem with Xcode 8, can not get it to start ^ _ ^, I always get the following error:Loading a plug-in failed.The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.I realized that the problem is caused by an anomaly of Python, here the log:[MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.dbg.DebuggerLLDB (/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 dlopen_preflight(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/PythonReferenced from: /Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /Syste
6
0
4.9k
Jun ’16
App crashes on launch on iOS 10
I have my app building successfully in Xcode 8 for iOS 10, but as soon as the app launches in the simulator, it crashes without breaking in Xcode. Here is the log output:2016-06-15 14:40:20.850188 Engagement[70147:1457290] bundleid: com.acstechnologies.Realm.Engagement, enable_level: 0, persist_level: 0, propagate_with_activity: 0 2016-06-15 14:40:20.850685 Engagement[70147:1457290] subsystem: com.apple.UIKit, category: HIDEvents, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0 2016-06-15 14:40:20.854881 Engagement[70147:1457258] Created DB, header sequence number = 252 2016-06-15 14:40:20.878082 Engagement[70147:1457258] Created DB, header sequence number = 252 2016-06-15 14:40:20.887804 Engagement[70147:1457258] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0 2016-06-15 14:40:2
28
0
35k
Jun ’16
Sierra Install Woes (27' iMac Late 2013)
has anyone experienced issues install MacOS Sierra via upgrade or clean install in which it seems to be hung and the timing remainig counter displays negative numbers? e.g. -21 remainig, -401 remainingHope a more experienced eye with installation errors might have an idea what is going or are the errors exepcted. It seems to hang on install and does not provided further progress update after the last line in the file. Didn't copy the whole log file. Only after it complete the download of the installer via recovery. I did let it run for about an hour and half after the last line June 15 08:12:24 and nothing occured, nor was any additional information added to the log file.'Jun 15 08:12:20 iMac storedownloadd[532]: Commerce:sending status (10.12 Developer Preview): 0.961538% (3.000000)Jun 15 08:12:20 iMac storedownloadd[532]: Commerce:ISStoreURLOperation: Starting URL operation with url=(null) / bagKey=songDownloadDoneJun 15 08:12:20 iMac storedownloadd[532]: Commerce:-[ISStoreURLOperation _runURLOperation]: _a
2
0
11k
Jun ’16
iMessage Extension: Could not attach to pid : “2581”
Hello everyone, I'm trying to debug an iMessage extension from xcode 10 on my iOS 10 phone. I changed the command line tools to xCode 10 and created an iMessage extension app without any modification. Next, I try to run the app using xCode, and I got this error:Could not attach to pid : '2686'unable to attachHere's the xCode console output:objc[2635]: Class CKPPTSubTest is implemented in both /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit (0x1b35f1670) and /Applications/MobileSMS.app/MobileSMS (0x1000f5780). One of the two will be used. Which one is undefined. 2016-06-18 09:52:58.005089 MobileSMS[2635:322943] [MC] Reading from private effective user settings. 2016-06-18 09:52:58.185146 MobileSMS[2635:322943] [MC] Reading from private effective user settings. 2016-06-18 09:52:58.402595 MobileSMS[2635:322943] [Application] Restoring application state. isComposingNew=NO groupID=-1 2016-06-18 09:52:58.402683 MobileSMS[2635:322943] [Application] => Looking up conversation with group ID: -1 2016-06-
11
0
5.1k
Jun ’16
Increases iOS app launch time in Iphone not in Ipad
Jun 20 11:47:47 iPhone com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89 [2888] <Warning>: Got a 'k' packet, killing the inferior process.Jun 20 11:47:47 iPhone com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89 [2888] <Warning>: Sending ptrace PT_KILL to terminate inferior process.Jun 20 11:47:47 iPhone com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89 [2888] <Warning>: 1 +0.000000 sec [0b48/0907]: error: ::ptrace (request = PT_THUPDATE, pid = 0x0b49, tid = 0x2803, signal = 0) err = Resource busy (0x00000010)Jun 20 11:47:47 iPhone com.apple.debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89 [2888] <Warning>: 2 +0.007919 sec [0b48/0907]: error: ::task_info ( target_task = 0x180b, flavor = TASK_BASIC_INFO, task_info_out => 0x16fdf2df8, task_info_outCnt => 10 ) err = (os/kern) invalid argument (0x00000004)Jun 20 11:47:47 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.sample.text[0x5d97][2
6
0
1.9k
Jun ’16
Xcode crashes installed after time capsule restore
I bought a new larger SSD and installed this in my macbook. Later I did a time capsule restore. Pretty much every thing is perfect except XCode will crash instantly when launching any project or the default project.I am hesitant to reinstall XCode in case it will delete preferences etc. Web searches talked about a missing certififcate. I tried download 3 certificates and adding them with the key chain but this did not work.I have just downloaded XCode 8 Beta to see if this works.I wish to be programming again ASAP but its silly XCode can break down so easily.It could be failing in this reference Library not loaded: @rpath/libswiftIOKit.dylibnThanks,ArtBelow is crash report.Process: Xcode [726]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 7.3.1 (10188.1)Build Info: IDEFrameworks-10188001000000000~3App Item ID: 497799835App External ID: 817226719Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [726]User ID: 501Date/Time: 2016-06-25 22:36:27.309 -0700
3
0
1.4k
Jun ’16
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
944
Jun ’16
Xcode 6 crash on mac os 10.12 Sierra
Process: Xcode [10508]Path: /Applications/Xcode 2.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.4 (7720)Build Info: IDEFrameworks-7720000000000000~8Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [10508]User ID: 501Date/Time: 2016-06-28 14:36:54.019 +0800OS Version: Mac OS X 10.12 (16A201w)Report Version: 12Anonymous UUID: DE573EBB-0C62-34DE-3398-FB550D3E86E2Time Awake Since Boot: 23000 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: 6E35bASSERTION FAILURE in /SourceCache/IDEFrameworks/IDEFrameworks-7720/IDEKit/CommandsAndSelection/IDECommandManager.m:72Details: Error looking up handler class for extension 'Xcode.IDEKit.CmdHandler.CaptureViewHierarchy' in plug-in 'com.apple.dt.dbg.DebuggerUI': Error Domain=DVTPlugInErrorDomain Code=2 Loading a plug
7
0
5.3k
Jun ’16
Updated enterprise app fails to download and install
We've been developing and installing an internal enterprise app for a few years now, but our latest build is refusing to install over the air for some reason. I get the standard error on my device:Unable to DownloadApp App Name QA could not be downloaded at this time.The device log when installing is:Jul 5 15:11:38 My-iPhone SpringBoard[58] <Warning>: * bad fence setup * we're setting up a potentially deferrable transaction while we are already tracking an animation fence - this will probably cause us to blow the fenceJul 5 15:11:45 My-iPhone itunesstored[897] <Warning>: LoadExternalDownloadManifestOperation: Canceling failed manifest download for replace: com.ourapp.appidqaJul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by itunesstored (pid 897) for identifier com.ourapp.appidqa with options: {}Jul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIUninstaller _uninstallBun
0
0
2.3k
Jul ’16
Error with JSON in App
So when I try retreive the JSON from my site I get an error with the Json problem, here it is Error Domain=NSCocoaErrorDomain Code=3840 Garbage at end. on this line of code let json = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableContainers) as! NSDictionaryit happens with both NSArray and NSDictionary
2
0
966
Jul ’16
"Can't bind intarray" error when performing fetch request
Hi,We've some code that's performing a fetch request with an IN predicate, like so:NSArray *remoteIDs = @[ @id1, @id2, etc ]; NSFetchRequest *fetchRequest = [NSFetchRequest fetchRequestWithEntityName:[SomeEntity entityName]]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@primaryKey IN %@, remoteIDs]; fetchRequest.predicate = predicate; fetchRequest.relationshipKeyPathsForPrefetching = @[@relationship1,@relationship2]; fetchRequest.sortDescriptors = @[ [NSSortDescriptor sortDescriptorWithKey:NSStringFromSelector(@selector(updatedAt)) ascending:NO] ]; // fetch request is executedIt's nothing complicated, and this code's been working for years.Recently we started seeing numerous instances of the following error in our app in production:Error Domain=NSCocoaErrorDomain Code=134180 An SQLite error occurred. UserInfo={NSSQLiteErrorDomain=14, NSUnderlyingException=CoreData: SQLite: error: Can't bind intarray. SQLite error code: 14}I've logged the value of the remoteIDs variable when the error oc
0
0
278
Jul ’16
Complication not updating
I have a complication not updating, but I'm not sure if it's something in the environment or something in my code.I updated to the XCode 8 beta and updated the code in my Watchkit Extension to Swift 3 syntax. Unfortunately, this is preventing me from going back to XCode 7.1 to see if I've run into some issue with the XCode beta. So one question is whether it's possible to use some sort of #Ifdef type conditional compilation to allow my code to compile under either Swift2 or Swift3, so I can try to eliminate at least one potential source of issues.Another thing I notice is that mediaremoted is crashing constantly (several times a minute) in the simulator environment. I don't think I'm using anything that would require mediaremoted, but it concerns me that something is obviously wrong and might be contributing to the issue. (The failure is coming from CoreSimulator - Device: Applie Watch, and the message is API MISUSE: Resurrection of an object). Since it explicitly mentions the watch simulator it seems it migh
1
0
723
Jul ’16
Reply to CoreBlouetooth issues
absolutly.You can see that i have a timer that dilays a new reconnect on a disconnect. and we sends a /r/n directlly after we connect to the device. thats a workaround to know when the message is encrypted on the other side due to some api bbugs on the bluetooth hardware side.keep in mind that this code work good on a ios 9.x device so that must be some logic in the new api that has been changed./ / / / / / / import Foundation import CoreBluetooth / Services & Characteristics UUIDs */ let BLEServiceUUID = CBUUID(string: 2456E1B9-26E2-8F83-E744-F34F01E9D701) let PositionCharUUID = CBUUID(string: 2456E1B9-26E2-8F83-E744-F34F01E9D703) let RX_VSC_DATA_MESSAGE_KEY_CONNSTATE = E / let RX_VSC_DATA_MESSAGE_KEY_STATE = F / let TX_VSC_STATUS_TAKE_OWNERSHIP_KEY = #TAKErn / let TX_VSC_STATUS_SEND_INIT_MESSAGE = rn / / internal let VSC_DATA_MASK_STATE_ICSCON_BLOCK: Int = 0x000003 internal let VSC_DATA_MASK_STATE_ICSCON_FAILED: Int = 0x000100 internal let VSC_DATA_MASK_STATE_ICSCON_ERRCODE: Int = 0x7F0000 internal let
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’16