pmusolino / Wormholy

iOS network debugging, like a wizard 🧙‍♂️
MIT License
2.32k stars 184 forks source link

Is it compatible with Moya ? #27

Closed Chirag1992 closed 5 years ago

pmusolino commented 5 years ago

If it uses NSURLSession yes! I see that Moya is an abstraction layer on top of Alamofire, then YES, Wormholy works.

Chirag1992 commented 5 years ago

But it is not working.. do we have to write any code for this .. because I just integrated the sdk .

pmusolino commented 5 years ago

What version do you have integrated? Using Cocoapods?

Chirag1992 commented 5 years ago

(1.1.0) yes through cocoa pods

pmusolino commented 5 years ago

Try the new release 1.1.2, that fix the problem.

Before pod install, try to call pod repo update for updating your local specs.

Chirag1992 commented 5 years ago

still its not working after updating pod

pmusolino commented 5 years ago

The Wormholy's view appear, right?

Chirag1992 commented 5 years ago

img_a7d20135f0fb-1 I got this.. this also I got earlier also

pmusolino commented 5 years ago

What is this?

Chirag1992 commented 5 years ago

after shaking phone I got this screen

pmusolino commented 5 years ago

I think that you are using another library or there is something else in your code that uses the shake gesture. Try to fire Wormholy manually using

NotificationCenter.default.post(name: NSNotification.Name(rawValue: "wormholy_fire"), object: nil)

Please, read the Usage section in the README.

-Paolo

Chirag1992 commented 5 years ago

no its not working. I have used Moya only

pmusolino commented 5 years ago

Do you have the "debug" configuration in your project?

The screen that you posted is not Wormholy ¯_(ツ)_/¯ then, there is something that prevents Wormholy to be presented.

Chirag1992 commented 5 years ago

yes debug configuration is there in the project

pmusolino commented 5 years ago

Even if it does not work with Moya, the library must be able to appear. The fact that it does not appear to you, means that there is something that prevents it from doing so. Do you have anything in the console?

Chirag1992 commented 5 years ago

ya the screen shot I share was our screen . now wen remove the shake of our that screen. But now after shake wormhole screen is not coming. I am in debug mode only

pmusolino commented 5 years ago

It is difficult to understand why this happens. Try to make a small demo project where you can reproduce the problem, so I can investigate.