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

Detox failed to start testing in my react native project #548

Closed
Milesyan opened this issue Jan 31, 2018 · 13 comments
Closed

Detox failed to start testing in my react native project #548

Milesyan opened this issue Jan 31, 2018 · 13 comments

Comments

@Milesyan
Copy link

Milesyan commented Jan 31, 2018

I'm using react native 0.52.0 and detox 7.0.1. I got the error messages as below, and I cannot find a similar issue.

The build built by detox can be opened without crash when I directly open it in the simulator, just crashed when I run detox test

2018-01-31 10:46:18.258 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x6080001db210> (parent: <RCTBridge: 0x6080000d8800>, executor: (null))
2018-01-31 10:46:18.288 [warn][tid:main][RCTBridge.m:121] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-01-31 10:46:18.315 luna[59176:11047337] === TrustKit: Proxy-ing NSURLSessionDelegate: RCTMultipartDataTask
2018-01-31 10:46:18.315 luna[59176:11047337] Swizzling Method(s) not found while swizzling class TSKNSURLSessionDelegateProxy.
2018-01-31 10:46:18.316 luna[59176:11047337] Fatal failure: Cannot swizzle -[TSKNSURLSessionDelegateProxy URLSession:task:didCompleteWithError:] in <TSKNSURLSessionDelegateProxy: 0x60800022e6e0> in /Users/Miles/repos/luna/app/node_modules/detox/ios_src/EarlGrey/EarlGrey/Additions/NSURLSession+GREYAdditions.m:77
Signal caught: Abort trap: 6
@LeoNatan
Copy link
Contributor

Hi,

Thanks for reporting.
I see you are also using TrustKit.
Could you please create a demo project with TrustKit and upload it for us?

Thanks

@paulvelzeboer
Copy link

paulvelzeboer commented Mar 27, 2018

All, did you fixed this issue because i have the same issue in my project:

2018-03-27 09:52:18.979 tradingDev[15285:187564] Swizzling Method(s) not found while swizzling class TSKNSURLSessionDelegateProxy. 2018-03-27 09:52:18.979 tradingDev[15285:187564] Fatal failure: Cannot swizzle -[TSKNSURLSessionDelegateProxy URLSession:task:didCompleteWithError:] in <TSKNSURLSessionDelegateProxy: 0x600000205e70> in /Users/NO14TY/testing/detox/mobile/node_modules/detox/ios_src/EarlGrey/EarlGrey/Additions/NSURLSession+GREYAdditions.m:77 2018-03-27 09:52:19.419 [info][tid:main][RCTCxxBridge.mm:951] Invalidating <RCTCxxBridge: 0x6080003cb4f0> (parent: <RCTBridge: 0x60c0000c9ed0>, executor: (null)) 2018-03-27 09:52:19.435 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x6040003d7610> (parent: <RCTBridge: 0x60c0000c9ed0>, executor: (null)) 2018-03-27 09:52:19.436 [warn][tid:main][RCTModuleData.mm:69] Module ReactLocalization requires main queue setup since it overrides constantsToExport but doesn't implement requiresMainQueueSetup. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.

@BenBach
Copy link

BenBach commented Apr 5, 2018

@paulvelzeboer Were you able to fix this? Same issue for me

@paulvelzeboer
Copy link

@BenBach nope still same issue... hopefully someone has a solution?

@LeoNatan
Copy link
Contributor

LeoNatan commented May 2, 2018

@paulvelzeboer In #645, I asked for an example project reproducing the issue with TrustKit. Please provide that so I can take a look.

@DanielMSchmidt
Copy link
Contributor

Hey @BenBach & @paulvelzeboer Could you create a demo project, so that we can reproduce and find the bug? It would be cool if it would be something like the smallest project possible that shows this error 👍 Thank you for helping us :)

@DanielMSchmidt DanielMSchmidt reopened this May 2, 2018
@DanielMSchmidt
Copy link
Contributor

Ah @LeoNatan two idiots one idea ✋ 🤣

@LeoNatan
Copy link
Contributor

LeoNatan commented May 2, 2018

Please don’t reopen old issues. Once the demo project exists, open a new issue.

@LeoNatan LeoNatan closed this as completed May 2, 2018
@LeoNatan
Copy link
Contributor

LeoNatan commented May 2, 2018

@DanielMSchmidt Hehe. I asked for a demo project twice, but I was never provided with one.

@Milesyan
Copy link
Author

Milesyan commented May 2, 2018

I wanted to provide one but I don't know how as I'm not an iOS developer... I'll try to do it next week.

@LeoNatan
Copy link
Contributor

LeoNatan commented May 2, 2018

I meant a React Native demo project. Please open a new issue with the project.

@LeoNatan LeoNatan closed this as completed May 2, 2018
@paulvelzeboer
Copy link

Same here i know you need a project and will discus with our developers if they can create a demo project (project we are working on now i cannot share) and will send it to you, if there is an issue already open than i can add mine or if im the first one open a new issue

@LeoNatan
Copy link
Contributor

LeoNatan commented May 2, 2018

Great, thanks

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants