Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use script to set security and run xcodebuild #217

Merged
merged 1 commit into from
Oct 7, 2016
Merged

Conversation

imurchie
Copy link
Contributor

@imurchie imurchie commented Oct 6, 2016

People have problems with running real device tests. There is a chance that this is caused by being unable to access the private key for the certificate. See appium/appium#6955

@@ -557,7 +557,10 @@ class XCUITestDriver extends BaseDriver {
}
}


// there is no point in having `keychainPath` without `keychainPassword`
if ((caps.keychainPath && !caps.keychainPassword) || (!caps.keychainPath && caps.keychainPassword)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps more compactly:

if (!(!!caps.keychainPath ^ !!caps.keychainPassword)) {

but maybe too weird?

Copy link
Member

@jlipps jlipps Oct 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops sorry, got the polarity wrong, should just be:

if (!!caps.keychainPath ^ !!caps.keychainPassword) {

since ^ returns 1 iff the boolean operands are different, which is the case we want here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you've pretty succinctly presented my case against using something like that. ;)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, fair enough!

@imurchie imurchie merged commit 7cb4956 into master Oct 7, 2016
@imurchie imurchie deleted the isaac-exec branch October 7, 2016 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants