Use Charles to Rewrite Responses While Developing iOS Apps
You don’t need a backend (right now)
4 min readFeb 8, 2021
Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12, and Swift 5.3
Prerequisites:
- Be able to produce a “Hello, World!” iOS application (guide HERE) However, the implementation for this uses my network manager, my API builder and a snippet to parse data
Terminology
Charles: A HTTP proxy for development
A warning
Be careful because many guides instruct developers to turn off the mac proxy, but using this simulator this prevents the developer seeing the data from their target App!
The original App: The original App makes a network call and prints the following to the console:
{
error = "user not found";
}
We are going to change that response!
Step-by step instructions to change a response
- Download Charles. It has a…