KeychainItemWrapper Crashing for iOS8 - ios8

I'm using KeychainItemWrapper for my application using the following line of code
KeychainItemWrapper *currentUser = [[KeychainItemWrapper alloc] initWithIdentifier:#"com.example" accessGroup:nil];
[currentUser setObject:accountString forKey:CFBridgingRelease(kSecAttrAccount)];
accountString is a string containing my user information.
The code works perfectly fine with iOS7 but crashes with iOS8.
I'm not sure what i'm doing wrong., can someone please help!! I'm running the application on a simulator.
update:
Here is the crash
* Assertion failure in -[KeychainItemWrapper writeToKeychain]
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't add the Keychain Item.'

Looks like the first BETA version doesn't support Keychain Access developer APIs on the simulator. Hopefully this is brought in soon.
Update: looks like issue is fixed in Beta 2

Related

Xcode crashes running an empty app on device

Following this tutorial, http://codewithchris.com/deploy-your-app-on-an-iphone/ Xcode crashes when I run the app on my phone. On the simulator it is working. There's no warning before the crash. I tried running a completely empty app, but no luck.
I'm using Xcode 6 and an iPhone 4s with iOS 8.1.3.
The log from the Xcode crash report says this:
Application Specific Information:
ProductBuildVersion: 6C121
ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-6760/DVTFoundation/FilePaths/DVTFilePath.m:802
Details: fsrep is relative ('גÄ‮-‬‭/‬גÄ‮,‬var/folders/6g/y36l5n813bd3kch53qp4w60h0000gn/CגÄ‮-‬‭/‬גÄ‮,‬‭/‬com.apple.DeveloperTools/6.2‭/‬Xcode') parentPath must not be nil but it is.
but I don't understand it; does anyone know what this means?

Crashes after updating to XCode 6 beta

I've just upgraded to XCode 6 (iOS 8 SDK) and I am getting the following warning and error in the console that did not occur in XCode 5 (iOS 7 SDK):
2014-06-08 08:58:57.266 ColorChaos[3250:138871] SetAppThreadPriority: setpriority failed with error 45
2014-06-08 08:59:27.303 ColorChaos[3250:138871] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSSetM addObject:]: object cannot be nil'
The SetAppThreadPriority seems to be just a warning because the app continues to run, but a few seconds/touches in it crashes with the NSInvalidArgumentException error.
Has anyone else experienced anything similar after updating? The error is not occurring in my code (I don't think), it highlights the line in main.m with Thread 1: signal SIGABRT.
Thanks in advance.
EDIT: I should note I've just realised XCode 5 is still installed along side XCode 6 and I can still compile and run my code in that so it's not really an issue any more but it would still be nice to know if it can be fixed.
I was running into a similar problem. If you're running off an iOS simulator make sure it's set to iPhone 5 or above. Swift code won't run on iOS 4 which, I believe, is the default emulator device for XCode 6.

xcode5 simulator app crashes keychain-access-groups not allowed

my app crashes in the simulator.
Just installed OSX Mavericks with XCode 5.
Developed the app using Corona SDK.
I deleted my old provisioning profiles and created new ones.
my Bundle ID is something like com.company.appname
I get the following error message in the console log from the simulator:
killed testapp[pid xxxx] because its use of the keychain-access-groups entitlement is not allowed (error code -67030)
I already deleted all old project screenshots / files. Don't know what to do.
The compiled app runs fine on my iphone 3gs with iOS 6.1 though.
any help highly appreciated
roman
Corona's engineering team is looking into this. Please add your information to this post on the Corona SDK Forums
http://forums.coronalabs.com/topic/40706-app-crashes-in-xcode-simulator-ios-7-sdk/page-2

iPhone iOS 6 BonjourWeb Xcode 4.5 "Cancel Button Error

I'm working with the source code for BonjourWeb using iOS 6 and Xcode 4.5.
BonjourWeb Source code for Xcode
In BonjourWebAppDelegate.m, the setting for showCancelButton:YES in the "applicationDidFinishLaunching: application:" method causes the program to crash when the Cancel button is clicked in the app's browser with the error: 2012-10-27 13:07:45.309 BonjourWeb[1762:c07] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[NSNetService dictionaryFromTXTRecordData:]: cannot convert nil to a dictionary.'
How can I rectify this to work properly?
Thank you.
Don
Resolved. The call to the method causing the problem is not needed.

suddenly getting wait_fences: failed to receive reply: 10004003

I have an Xcode 4.2 project with ios5 targeting 4.3 and am now suddenly getting "wait_fences: failed to receive reply: 10004003" error.
It occurs on the 4.3 Simulator (don't have a 4.3 device). It does NOT occur on 5.0 simulator or device.
App runs as before and when the keyboard appears, all is good. When I tap the keyboard. I get the error. Description is displayed once in the console. Subsequent runs still crash app but error is not written to console! (So I'm assuming subsequent crashes are the same) It's suddenly started occurring and I can't see anywhere the in the code, changes could affect it.
Has anyone else experienced this same issue and or managed to resolve it?
NB: I have already read the other posts regarding this error.
Have now confirmed that it is not the code so my iOS Simulator must have been corrupted some how.

Resources