I am using SFHFKeychainUtils to use Keychain services in my application. I have written several OCUnit tests that test the functionality of this code. Everything works fine when I run unit tests from Xcode on an iOS simulator or on my device. However, now I am trying to configure the CI server, and the test does not work when it is run through the command line with error code -25291. A look at the Apple documentation tells me: there are no trust results available (errSecNotAvailable). I linked Security.framework with my unit test project, it seems from what I read on the Internet, thatβs all I need for this to work. Here is the command I invoke in the console:
/usr/bin/xcodebuild -target [Test_Target] -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/ -configuration Debug
Does anyone have any experience or suggestions for getting unit testing and Keychain Services to play well from the command line?
ios unit-testing continuous-integration ocunit sfhfkeychainutils
Kam Sheffield Apr 03 2018-12-12T00: 00Z
source share