-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can't run detox tests for the iOS native app #254
Comments
Our demo projects have not been maintained in quite a while, sadly. We will have to fix them at some point. Thanks for your report. In the mean time, you can test it on your own app by following the documentation. |
Hi @LeoNatan, I've browsed through the docs and didn't find any mention of dealing with native iOS apps. Say, if I'm managing dependencies via cocoapods, I can't even build with detox (CompileSwiftSources fails when external libs are encountered, e.g. Alamofire). |
Please know there is an active issue with swift which we intend to solve really soon. |
@LeoNatan Yeah, I meant for the native stuff I use cocoapods and npm for detox. What I meant by building with detox was this: |
Are you sure you have provided the correct build command in package json? E.g, with CocoaPods, you should build the workspace and not just the project. |
Right, I was building the project rather than workspace, so now able to build. No luck with the test bit (detox test --configuration ios.sim.release) though (same issue as described at the very beginning). My structure within e2e dir looks like this: |
@katnem Hey, were you able to resolve your issue? Our Swift issue has been fixed since a while ago. Please try again. |
Hi @LeoNatan , unfortunately, I don't have my old setup anymore to verify the issue. However, I've tried to run the tests for the example project that you have Error: Cannot find module 'babel-polyfill' |
Hey @katnem, I had the same issue, but it's already fixed by adding babel-polyfill. I did not get npmlog error. Environment details: (EDIT)
|
Thanks guys. I will close this issue for now. Feel free to open a new issue if you hit this. I am still not sure whether a Detox issue or an environment mishap. |
Description
I'm trying to run the detox tests for the example native iOS app and getting the following:
Error: Cannot find module 'babel-polyfill' ... Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.release ...
I've installed the 'babel-polyfill', but now getting similar error for module 'npmlog'. Installing that module didn't help.
Node, Device, Xcode and macOS Versions
The text was updated successfully, but these errors were encountered: