Giter Site home page Giter Site logo

Comments (8)

tapashmajumder avatar tapashmajumder commented on August 23, 2024

We are not seeing this. Can you please provide more details? Which version of SDK are you using? Did the same version of SDK work with iOS 13?

We have seen this error happen when IterableAPI .initialize is called multiple times.

from swift-sdk.

CameronPorter95 avatar CameronPorter95 commented on August 23, 2024

I've noticed it wasn't happening on 6.1.0 but it is on 6.2.10.
After more attempts I've seen that it still happens on iOS 13 as well as 14

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

Please have your customer service rep create a ticket with us. Please include all relevant details in the ticket including:

  1. When the crash is happening
  2. Is there an easy way to repro this issue on our end? Since we do not have access to your codebase.
  3. Are you using Obj-C or Swift? Or are you using React Native SDK.
  4. How are you initializing our SDK? That is, IterableAPI.initialize code..

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

Please see note above

from swift-sdk.

jpeckner avatar jpeckner commented on August 23, 2024

I had this same issue, and found that use SDK version 6.2.12-beta1 fixed it. Hope it gets fully released soon! Strike that- it worked fine after the first time I installed 6.2.12-beta1, but crashed every time I tried it afterwards. Please fix!

from swift-sdk.

tapash-majumder avatar tapash-majumder commented on August 23, 2024

Hi @CameronPorter95 @jpeckner we are taking this issue seriously. We would like to understand the problem. But we can't resolve this issue without more details from you. Please see my comment earlier regarding opening a support ticket. I am copying this here again for quick reference.

  1. We have seen this issue when IterableAPI.initialize is called multiple times. It is supposed to be initialized only once
  2. Is there an easy way to repro this issue on our end? Since we do not have access to your codebase.
  3. Are you using Obj-C or Swift? Or are you using React Native SDK.
  4. How are you initializing our SDK? That is, IterableAPI.initialize code..

Please have your customer service rep open a support ticket and provide us more details.

Thanks!

from swift-sdk.

jpeckner avatar jpeckner commented on August 23, 2024

Aha, it looks like accidentally calling IterableAPI.initialize() more than once was the issue! Thanks for clearing that up.

Going forward, I’d highly suggest refactoring the SDK so it never intentionally crashes, including this particular fatalError(). I get that reaching that line means that the SDK is in an unusable state, but that doesn’t mean it should decide to take my whole app down with it. I’d much rather that the SDK reported an error back to my app, and then gracefully shut itself down. An assertionFailure() would also be fine, since that wouldn’t crash App Store builds.

Good blog post regarding this situation in another SDK: https://www.bugsnag.com/blog/sdks-should-not-crash-apps

from swift-sdk.

tapash-majumder avatar tapash-majumder commented on August 23, 2024

@jpeckner We have already made the fatalError fix you suggested. It will take some time before we release our next version with it.

from swift-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.