Force Xcode to code sign my unit test bundle?
Force Xcode to code sign my unit test bundle?
- Subject: Force Xcode to code sign my unit test bundle?
- From: email@hidden
- Date: Thu, 20 Mar 2014 10:55:22 -0700
Is there a way to do this?
I’m using a framework that needs access to the keychain, and this fails because my test bundle isn’t code signed. If I sign it using the application’s information, all is well:
codesign --force —sign SOMEUUID --resource-rules=$BUILT_PRODUCTS_DIR/Wealthfront.app/ResourceRules.plist --entitlements $CONFIGURATION_TEMP_DIR/Wealthfront.build/Wealthfront.xcent $BUILT_PRODUCTS_DIR/WealthfrontTests.xctest
The test target’s code signing properties are the same as the app’s, but thats not getting the job done. I’ve added the above script as a Run Script phase, which works for me, but my script foo is too weak to make this work for the other engineers on my team. I hit a road block trying to find out how Xcode identifies the correct developer identity and provisioning profile to use during signing.
Thanks.
Nick |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden