Forum Discussion
How do I change location on iPhone to another country or somewhere else?
If you are using a Mac and have Xcode installed, then you can apply the following trick to change location on iPhone for free. It simulates a virtual GPS location on your connected iPhone — no jailbreak, no paid software required.
Step 1: Connect your iPhone to your Mac
Use a USB cable and unlock your iPhone. You may need to tap Trust This Computer.
Step 2: Create a new project in Xcode
- Open Xcode > Create a new Xcode project.
- Choose App under iOS > click Next.
- Name your project (e.g., "LocationSpoof") and select your Team and Organization Identifier.
- Click Next and save the project anywhere.
Step3: Set up your iPhone for testing
In the project’s top bar, select your iPhone as the run target (it may appear after clicking the device dropdown).
Click the Run button to launch the empty app on your iPhone. You may have to resolve signing issues by selecting your Apple ID under Signing & Capabilities.
Step 4: Create or download a GPX file with your desired coordinates
Use a site like GPX Generator to create a GPX file. Enter the coordinates of the location you want to spoof (e.g., Paris, France), generate the file, and save it.
Step 5: Add the GPX file to your Xcode project
Drag the GPX file into the project’s navigation panel.
In the scheme toolbar at the top, go to Edit Scheme > Run > Options, and select your GPX file under Default Location.
Step 6: Run the app with the spoofed location
Hit Run again, and your iPhone will now use the coordinates from the GPX file as its simulated GPS location. You can confirm this using apps like Maps, Snapchat, or Find My.
Note: Go and use a dedicated iPhone location changer software if this trick is too complicated for you!