appwoodpecker / woodpecker-ios

woodpecker iOS
Other
210 stars 18 forks source link

Not getting response (Json view and Json body) when i am trying with on iphone 13 (IOS 15). #31

Closed gaurav02712 closed 12 months ago

gaurav02712 commented 2 years ago

Hello, I am not able to get the response (JSON text and JSON body) view when I am trying with on iPhone 13 (IOS 15) but this working file when I swift to any IOS 13 simulator.

In attaching screenshot iPhone 13 is on IOS 15 and iPhone 8 is on IOS 13.

Screenshot 2021-10-01 at 1 03 45 PM Screenshot 2021-10-01 at 1 05 45 PM

.

iTofu commented 2 years ago

+1, with iOS 15, still not working now.

iTofu commented 2 years ago

@github-xiaogang

gaurav02712 commented 2 years ago

@github-xiaogang

Didn't get it, what you wanna say.

github-xiaogang commented 2 years ago

@gaurav02712 @iTofu

Sorry for the problem, I had tried last weekend, but unfortunately some code sign problem appeared when on iOS 15 device, but it works fine with iOS 15 simulator in my app.

I'll try again in this weekend and tell you guy what I find :)

iTofu commented 2 years ago

@github-xiaogang

Didn't get it, what you wanna say.

calling the author 😂

iTofu commented 2 years ago

@gaurav02712 @iTofu

Sorry for the problem, I had tried last weekend, but unfortunately some code sign problem appeared when on iOS 15 device, but it works fine with iOS 15 simulator in my app.

I'll try again in this weekend and tell you guy what I find :)

env:

We will wait for the your good news~

github-xiaogang commented 2 years ago

Hey! @gaurav02712 @iTofu Sorry for the lately response, I had some good news for you guys! I found network hook didn't work well under iOS 15 for some reason, and if we move the hook operation before any network request, it works well again, so here's temporary solution: Put the network hook code before any code in the applicationDidFinishLaunch method

- (void)setupNetworkMonitor {
#if DEBUG
    Class clazz = NSClassFromString(@"ADHNetworkObserver");
    if (clazz) {
        SEL selector1 = NSSelectorFromString(@"sharedObserver");
        id network = [clazz performSelector:selector1];
        SEL selector2 = NSSelectorFromString(@"start");
        [network performSelector:selector2];
    }
#endif
}

image

manajay commented 2 years ago

Any update ? I still have the problem . Maybe this can help u , maybe i mean 😁 https://github.com/FLEXTool/FLEX/blob/master/Classes/Network/PonyDebugger/FLEXNetworkObserver.m

github-xiaogang commented 12 months ago

Hi, woodpecker is open source now, will be appreciate if someone help fix some bugs :) , https://github.com/appwoodpecker/woodpecker-client