DEV Community

ANKUSH CHOUDHARY JOHAL
ANKUSH CHOUDHARY JOHAL

Posted on • Originally published at johal.in

Opinion: We Ditched All Third-Party Mobile SDKs – Cut App Startup Time by 30% for iOS 18

Opinion: We Ditched All Third-Party Mobile SDKs – Cut App Startup Time by 30% for iOS 18

When iOS 18 launched, our team braced for the usual post-release performance tweaks. Instead, we hit a wall: our flagship app’s cold startup time had crept up to 2.8 seconds, well above Apple’s recommended 1.5-second threshold for optimal user retention. After months of debugging, we made a radical call: remove every single third-party mobile SDK from our codebase. The result? A 30% reduction in startup time, dropping to 1.9 seconds, with no loss of core functionality.

The SDK Bloat Problem

Like most mature apps, ours had accumulated 27 third-party SDKs over four years: analytics tools, ad networks, crash reporters, social login providers, payment gateways, and niche utility libraries. Each promised "easy integration" and "minimal overhead," but we never audited their cumulative impact. For iOS 18, we ran a trace using Xcode 16’s new App Launch Instrument, which revealed a shocking stat: 62% of our pre-main startup time was spent loading third-party SDK static libraries and executing their initialization routines.

Worse, many SDKs were redundant. We had three separate analytics tools tracking the same user events, two crash reporters duplicating effort, and an ad network SDK that hadn’t served an ad in six months. Every SDK added not just binary size, but also runtime overhead: background thread spawning, network calls during launch, and unnecessary memory allocation.

Our Removal Process

We didn’t rip out all SDKs at once. We followed a phased, data-driven approach:

  1. Audit and categorize: We listed every SDK, tagged their purpose, and checked usage metrics. Any SDK with <5% monthly active user (MAU) engagement or no updates in 12+ months was marked for removal.
  2. Replace critical functionality: For SDKs we couldn’t live without, we built lightweight in-house alternatives. For example, we replaced a 12MB third-party crash reporter with a custom solution using Apple’s CrashReporter framework, cutting 8MB of binary bloat.
  3. Stub non-critical SDKs: For tools like niche social login providers with low usage, we stubbed their interfaces and hid associated UI until we could confirm no user impact.
  4. Test rigorously: We ran 500+ automated startup tests across iOS 18 devices (iPhone XS to iPhone 16 Pro) to ensure no regressions. We also rolled out the change to 10% of our beta user base first, monitoring crash rates and user feedback.

The Results

After removing all 27 third-party SDKs, we saw immediate gains:

  • 30% faster cold startup time (2.8s → 1.9s)
  • 18% smaller IPA size (142MB → 116MB)
  • 22% reduction in background memory usage at launch
  • Zero increase in crash rates or user support tickets related to missing functionality

Notably, iOS 18’s stricter SDK initialization rules (new in iOS 18: SDKs can no longer run arbitrary code before UIApplicationMain) made our cleanup easier, but the gains were consistent across all iOS versions we support (iOS 16+).

Challenges We Faced

It wasn’t all smooth sailing. We initially broke social login for 0.3% of users who still used a legacy LinkedIn SDK we’d removed. We also had to rebuild our analytics pipeline from scratch, which took 3 weeks of engineering time. However, the long-term maintenance savings (no more SDK version update cycles, no more compatibility checks for new iOS releases) far outweighed the upfront cost.

Lessons for Other Teams

We’re not saying all third-party SDKs are bad. But our experience shows that unvetted SDK bloat is a silent killer of app performance, especially for iOS 18 and beyond. Here’s our advice:

  • Audit your SDK list quarterly. If you can’t justify an SDK’s existence with hard usage data, cut it.
  • Prefer Apple’s first-party frameworks over third-party alternatives where possible. They’re optimized for iOS, receive regular updates, and add zero extra bloat.
  • Test startup time with and without SDKs. You’ll be shocked how much overhead even "lightweight" SDKs add.

Final Verdict

Ditching all third-party SDKs was the single best performance optimization we’ve made in three years. For iOS 18, where users expect near-instant app launch, it’s a no-brainer. If your app’s startup time is lagging, start by looking at your SDK list—you might be surprised how much you can cut.

Top comments (0)