-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Swift support #277
Swift support #277
Conversation
# Conflicts: # detox/src/devices/Device.js # detox/src/devices/IosDriver.js
|
||
program | ||
.option('-r, --runner [runner]', 'Test runner (currently supports mocha)', 'mocha') | ||
.parse(process.argv); | ||
|
||
function createFile(dir, content) { | ||
try { | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should really add in prettier, these changes just obfuscate the diff.
|
||
if (os.platform() === 'darwin') { | ||
const frameworkPath = path.join(os.homedir(), '/Library/Detox'); | ||
console.log(`Removing framework binaries from ${frameworkPath}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use our default log library?
@@ -1,14 +1,18 @@ | |||
#!/bin/bash | |||
#!/bin/bash -e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@rotemmiz Is this fix likely to address app crashes on start like the below; which I started getting after an XCode 9 (and implicit Swift 3.2) upgrade? Or should I open a ticket? Just trying to avoid noise for you all if possible.
(Answering my own question - yes this is fixed with Detox 5.7.0 which was released a matter of hours after I added this comment originally!) |
Currently, users who use swift in their projects may not be able to use Detox if their swift version is different than the one shipped in Detox.framework.
From Detox@5.7.0 we will start compiling Detox.framework on the user's machine, to better support different Swift versions.
Relates to #152