Tests Not Passing for iOS 8
seenickcode opened this issue · 1 comments
Hello there, I'd like to get my app working for iOS 8 and it appears that while I can write to the keychain and read from it in the same run in the simulator, when I re-start my app from the simulator the value is missing.
This was not the case for the iOS 7.1 simulator.
After running your tests for iOS, the last test fails. Not sure if it's related, but here's the output to the tests.
2014-06-06 14:55:03.621 PDKeychainBindingsControlleriOSExample[11590:258171] SetAppThreadPriority: setpriority failed with error 45
Test Suite 'All tests' started at 2014-06-06 18:55:04 +0000
Test Suite '/Users/seenickcode/Library/Developer/Xcode/DerivedData/PDKeychainBindingsController-ckokylkdryveqzeykbsbwkqeawbn/Build/Products/Debug-iphonesimulator/PDKeychainBindingsControlleriOSExampleTests.octest(Tests)' started at 2014-06-06 18:55:04 +0000
Test Suite 'PDKeychainBindingsTest' started at 2014-06-06 18:55:04 +0000
Test Case '-[PDKeychainBindingsTest testStandardBindingsExists]' started.
Test Case '-[PDKeychainBindingsTest testStandardBindingsExists]' passed (0.000 seconds).
Test Case '-[PDKeychainBindingsTest testStandardBindingsTalksToKeychain]' started.
2014-06-06 14:55:04.227 PDKeychainBindingsControlleriOSExample[11590:258171] Could not store(Add) string. Error was:-34018
/Users/seenickcode/Desktop/PDKeychainBindingsController-master/PDKeychainBindingsControlleriOSExampleTests/PDKeychainBindingsTest.m:65: error: -[PDKeychainBindingsTest testStandardBindingsTalksToKeychain] : '0' should be equal to '4294933278': Failed to retrive data, status was '-34018'
/Users/seenickcode/Desktop/PDKeychainBindingsController-master/PDKeychainBindingsControlleriOSExampleTests/PDKeychainBindingsTest.m:68: error: -[PDKeychainBindingsTest testStandardBindingsTalksToKeychain] : '' should be equal to '9018C564-A3BA-44C8-AA20-65015A0E3561' retrieved string from keychain '' not equal to expected 'foo'
2014-06-06 14:55:04.230 PDKeychainBindingsControlleriOSExample[11590:258171] Could not store(Delete) string. Error was:-34018
Test Case '-[PDKeychainBindingsTest testStandardBindingsTalksToKeychain]' failed (0.005 seconds).
Test Case '-[PDKeychainBindingsTest testStandardBindingsWorksAtAll]' started.
2014-06-06 14:55:04.232 PDKeychainBindingsControlleriOSExample[11590:258171] Could not store(Add) string. Error was:-34018
2014-06-06 14:55:04.235 PDKeychainBindingsControlleriOSExample[11590:258171] Could not store(Delete) string. Error was:-34018
Test Case '-[PDKeychainBindingsTest testStandardBindingsWorksAtAll]' passed (0.005 seconds).
Test Suite 'PDKeychainBindingsTest' finished at 2014-06-06 18:55:04 +0000.
Executed 3 tests, with 2 failures (0 unexpected) in 0.010 (0.010) seconds
Test Suite '/Users/seenickcode/Library/Developer/Xcode/DerivedData/PDKeychainBindingsController-ckokylkdryveqzeykbsbwkqeawbn/Build/Products/Debug-iphonesimulator/PDKeychainBindingsControlleriOSExampleTests.octest(Tests)' finished at 2014-06-06 18:55:04 +0000.
Executed 3 tests, with 2 failures (0 unexpected) in 0.010 (0.011) seconds
Test Suite 'All tests' finished at 2014-06-06 18:55:04 +0000.
Executed 3 tests, with 2 failures (0 unexpected) in 0.010 (0.011) seconds
Thanks,
Error -34018 is a security error. Could you please try setting your entitlements as per http://stackoverflow.com/a/24103882 and/or code signing as described in https://devforums.apple.com/message/1011013#1011013 and see if you still get the issue?
Thanks,