<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz" -->

---
title: I Built & Published My First iOS App: Here’s What I’d...
description: A computer science student recounts building and shipping their first iOS app, Lensley, a contact lens tracker built in SwiftUI to learn native mobile...
canonical: https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Built & Published My First iOS App: Here’s What I’d Never Do Again | daily.dev
og:description: A computer science student recounts building and shipping their first iOS app, Lensley, a contact lens tracker built in SwiftUI to learn native mobile...
og:url: https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz
og:image: https://api.daily.dev/og/posts/DneEjHuOz.png
og:image:alt: I Built & Published My First iOS App: Here’s What I’d Never Do Again
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I Built & Published My First iOS App: Here’s What I’d Never Do Again

**[YouTube](https://daily.dev/sources/youtube)** · 10 min read · 1 upvotes · 0 comments

## Summary

A computer science student recounts building and shipping their first iOS app, Lensley, a contact lens tracker built in SwiftUI to learn native mobile development after job postings emphasized native frameworks over Flutter. Key mistakes: using UserDefaults as a database (making later migrations painful), over-engineering architecture prematurely, and delaying monetization planning. Lessons include testing in-app purchases on real devices with sandbox accounts, considering RevenueCat for IAP handling, planning monetization from day one, and learning a language/framework thoroughly before leaning on AI to write code in it. After one year, the app earned $475 in downloads and $92 in purchases, nearly covering the $100 Apple developer fee, but the author values it primarily as a learning foundation for subsequent, more ambitious projects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=Iouhc5LHhjA>

## Questions this post answers

### why shouldn't I use UserDefaults as my app's main database in iOS development

UserDefaults is meant for small key-value settings, not for storing structured user data, because it does not support proper database migrations. Using it as a full database makes it extremely difficult to change your data structure later without breaking existing users' data, forcing a custom migration mechanism to be built from scratch after the fact.

_Developers weighing storage choices before shipping an app can compare real experiences like this on daily.dev._

### should I test in-app purchases using the local StoreKit config file or a sandbox account

In-app purchases should be tested on a real device using a sandbox account rather than relying solely on the local StoreKit configuration file, since real-device sandbox testing surfaces issues the local config can miss. Using a service like RevenueCat instead of building purchase handling manually can also simplify subscription and IAP management considerably.

_Anyone shipping app store monetization can find practical setup tradeoffs like this on daily.dev._

## Similar posts on daily.dev

- [The Biggest Mistake I Made Building My First Mobile App Wasn’t Technical](https://daily.dev/posts/the-biggest-mistake-i-made-building-my-first-mobile-app-wasn-t-technical-cskzg7gcg) · Medium · 0 upvotes · 0 comments
- [Lessons from Adopting SwiftUI in an App with 50 Million Users](https://daily.dev/posts/lessons-from-adopting-swiftui-in-an-app-with-50-million-users-7zwvviuv6) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#ios](https://daily.dev/tags/ios), [#ai-coding](https://daily.dev/tags/ai-coding), [#app-store](https://daily.dev/tags/app-store), [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I Built \u0026 Published My First iOS App: Here’s What I’d Never Do Again","url":"https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz"},"datePublished":"2026-09-09T03:33:23.297Z","dateModified":"2026-09-14T08:10:16.921Z","description":"A computer science student recounts building and shipping their first iOS app, Lensley, a contact lens tracker built in SwiftUI to learn native mobile...","image":"https://i.ytimg.com/vi/Iouhc5LHhjA/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/Iouhc5LHhjA/sddefault.jpg","isAccessibleForFree":true,"articleSection":"YouTube","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"YouTube","logo":"https://media.daily.dev/image/upload/s--W5zMumpP--/f_auto/v1725350181/logos/youtube","url":"https://daily.dev/sources/youtube"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,ai-coding,app-store,swiftui","timeRequired":"PT10M","video":{"@type":"VideoObject","name":"I Built \u0026 Published My First iOS App: Here’s What I’d Never Do Again","description":"A computer science student recounts building and shipping their first iOS app, Lensley, a contact lens tracker built in SwiftUI to learn native mobile...","thumbnailUrl":"https://i.ytimg.com/vi/Iouhc5LHhjA/sddefault.jpg","uploadDate":"2026-09-09T03:33:23.297Z","duration":"PT10M","url":"https://api.daily.dev/r/DneEjHuOz","embedUrl":"https://www.youtube.com/embed/Iouhc5LHhjA"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"YouTube","item":"https://daily.dev/sources/youtube"},{"@type":"ListItem","position":3,"name":"I Built \u0026 Published My First iOS App: Here’s What I’d Never Do Again"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/i-built-published-my-first-ios-app-here-s-what-i-d-never-do-again-dneejhuoz#faq","mainEntity":[{"@type":"Question","name":"why shouldn't I use UserDefaults as my app's main database in iOS development","acceptedAnswer":{"@type":"Answer","text":"UserDefaults is meant for small key-value settings, not for storing structured user data, because it does not support proper database migrations. Using it as a full database makes it extremely difficult to change your data structure later without breaking existing users' data, forcing a custom migration mechanism to be built from scratch after the fact. Developers weighing storage choices before shipping an app can compare real experiences like this on daily.dev."}},{"@type":"Question","name":"should I test in-app purchases using the local StoreKit config file or a sandbox account","acceptedAnswer":{"@type":"Answer","text":"In-app purchases should be tested on a real device using a sandbox account rather than relying solely on the local StoreKit configuration file, since real-device sandbox testing surfaces issues the local config can miss. Using a service like RevenueCat instead of building purchase handling manually can also simplify subscription and IAP management considerably. Anyone shipping app store monetization can find practical setup tradeoffs like this on daily.dev."}}]}
```

