n

    nestserau

    3 years ago
    Guys, I’ve made a test run of my app on iOS 13 beta 1, and the network operations in my Kotlin MPP library pretty much stopped working. Is this something you are aware about, or should I provide more info for you to be able to fix it?
    Artyom Degtyarev [JB]

    Artyom Degtyarev [JB]

    3 years ago
    Hello! It sounds interesting, can you provide some details on the situation? Did you test the library on previous iOS? Any other changes except the target were made, or you just tried to rebuild for iOS 13?
    n

    nestserau

    3 years ago
    Works perfectly on iOS 12. Now I’ve built the iOS project with Xcode-beta and launched on a device with iOS 13 beta. And the behavior changed. Trying to debug it now.
    Artyom Degtyarev [JB]

    Artyom Degtyarev [JB]

    3 years ago
    Okay, I see. Please report if there will be something. One more thing, I misunderstood a little. Can you clarify, the network operations have stopped in the middle of the run, or just was unable to start properly? I mean, what part of the functionality you lost - it is not working at all, or there are some special things that broke up?
    n

    nestserau

    3 years ago
    The network operations are fired out, but I receive different results from the server on iOS 13. Going to debug it with the backend developer. I guess that’s were the problem is. Sorry if anything. It’s hard to debug MPP libraries.
    louiscad

    louiscad

    3 years ago
    If you're not receiving the same results, then I'd say you send different data (e.g. the user agent, the iOS version, on something else that changes with the iOS version), which causes the backend to reply something different too.
    n

    nestserau

    3 years ago
    Yes, definitely. Just need to understand where the problem lies exactly. Whether it’s the server that doesn’t like the iOS version name, or maybe my response gets corrupted. The latter is much worse.
    louiscad

    louiscad

    3 years ago
    println based debug may help to figure it out
    n

    nestserau

    3 years ago
    Yep, doing that, thanks mate!
    s

    Sam

    3 years ago
    Charles Proxy will let you look at the exchange between the client and server. It isn't free but you can use it for free with some nag screens and time limits.
    n

    nestserau

    3 years ago
    Found that. The problem is actually with SHA256 I use to hash the password. iOS 13 gives the result in a different format. Thinking on a fix.
    louiscad

    louiscad

    3 years ago
    So iOS 13 doesn't know how to make a SHA256 anymore?
    n

    nestserau

    3 years ago
    It does, it just wraps it up in curly braces etc. The format is messed up.
    louiscad

    louiscad

    3 years ago
    Would file it to Apple, this could break a lot of apps
    n

    nestserau

    3 years ago
    It will…
    louiscad

    louiscad

    3 years ago
    It will, or you will?
    n

    nestserau

    3 years ago
    No, I will just change my implementation slightly, then it will be okay.
    They changed the format of “description” method return value on NSData, that’s the problem.
    louiscad

    louiscad

    3 years ago
    Can you link the documentation of the symbol you're using?
    n

    nestserau

    3 years ago
    CC_SHA256
    And then NSMutableData::description
    Its output has changed