Xcode
Learn more and get better with Xcode using this list of Xcode blog posts, tutorials, tips, and tricks.
Inspect network traffic using the Xcode Simulator
Inspecting network traffic is an essential skill for app developers. Several tools allow you to monitor requests going in and out of your app, each with pros and cons. When building an app, you'll likely perform network calls to fetch data for your views. Whether you're debugging a request failure ...
Xcode Build Insights: Keep track of project compilation times
Xcode Build Insights lets you keep track of compilation times to ensure your project doesn't suddenly become slow to build. You're likely building your project tens of times per day, so compilation times that become slower can significantly impact your overall productivity. While Xcode keeps a history of your builds, ...
Solve Missing API declaration using required reason (ITMS-91053)
Apps submitted to the App Store must define API declarations using the required reasons. Apps that don't will be rejected until they do. This requirement counts for APIs declared in your app's code and third-party libraries. For the latter, you might be dependent on the library maintainers. While Apple provides ...
Symbolicate crash logs with Xcode
When you receive an unreadable crash report, you can symbolicate crash logs with the help of Xcode. As a developer, it's essential to identify symbols and ensure you can fix a crash that potentially affects many of your app's users. Many of us will benefit from an online platform like ...
Xcode Debug Console Tour: Exploring All Options
The Xcode Debug Console allows you, as a developer, to explore logs and debug issues with your apps. All your logs will be printed out, and you can interact with the LLDB debugger as soon as your app pauses manually or due to a breakpoint. Xcode 15 introduced a new ...
Localization testing in Xcode
Localization testing becomes vital if your apps are localized in multiple languages. You want to ensure your UI looks good in each language, making you repeatedly run your app in each locale. Some words are different in length depending on the language, making it crucial to verify your interfaces. Xcode ...
#Preview SwiftUI Views using Macros
Starting with Xcode 15 and Swift 5.9, you can create previews for your SwiftUI view using the new #preview Macro. The macro replaces the PreviewProvider protocol that required us to define previews within a static computed property. Swift 5.9 also introduced Macros, the concept behind this new hashtag attribute. I ...
Xcode Bookmarks: Save code landmarks & organize tasks
Xcode Bookmarks were introduced during WWDC 2023 as part of the significant Xcode 15 release. They are a new feature that allows you to save quick links to code you want to revisit. Doing so allows you to save code landmarks and organize tasks you have to fulfill. You can ...
Running Xcode on top of iPad
Using the latest Xcode 14.3 and the iPad Pro (12.9 Inch) with iOS 16.4 beta, I've been able to run Xcode on top of the iPad Simulator. Running apps from Xcode will run on this Simulator directly, and debugging works as usual. The window might be small, but reading most ...
Xcode Simulator Directories Exploration
Xcode Simulator directories allow you to find related files for your app. Unlike on a real device, you can access all folders that represent the app your building. Exploring those directories allows you to debug and optimize accordingly. Whether you're debugging storage issues, optimizing app binary size, or looking to ...
Getting started with Unit Tests in Swift
Unit tests in programming languages ensure that written code works as expected. Given a particular input, you expect the code to come with a specific output. By testing your code, you're creating confidence for refactors and releases, as you'll ensure the code works as expected after running your suite of ...
Faster StoreKit testing by syncing in-app purchase products
StoreKit testing in the Simulator allows you to speed up testing in-app purchases for your app. You can test in-app purchases in Xcode by generating a StoreKit configuration file containing the available products for your app. You'll be able to purchase products without connecting to App Store servers, without an ...