Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7784881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:09:59+00:00 2026-06-01T20:09:59+00:00

After moving several JSON files from the app bundle root to within a directory

  • 0

After moving several JSON files from the app bundle root to within a directory structure (also in the app bundle) the app kept running as if the files remained in their prior location. After much head scratching and doing a clean build I remembered that the iPhone simulator had to be cleared out in order to get rid of these files in the old locations.

It’d sure be nice to have the option to force a reset of the simulator on every build. Clean-slate mode, if you will. Can this be hacked in any way? Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:10:00+00:00Added an answer on June 1, 2026 at 8:10 pm

    You can add a “New Run Script Action” to the “Pre-actions” for the “Run” step of your scheme to run AppleScript that will reset the simulator.

    First set the shell to /usr/bin/osascript

    Then enter the following in the “type a script” area:

    #!/usr/bin/env osascript
    
    tell application "iPhone Simulator"
        activate
    end tell
    
    tell application "System Events"
        tell process "iPhone Simulator"
            tell menu bar 1
                tell menu bar item "iOs Simulator"
                    tell menu "iOs Simulator"
                        click menu item "Reset Content and Settings…"
                    end tell
                end tell
            end tell
            tell window 1
                click button "Reset"
            end tell
        end tell
    end tell
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to access RegEx results after I am done moving files with this
After moving my mod_perl site from Linux hosting to FreeBSD, I have this error
I'm new to rails after moving from PHP and am having no end to
After moving a project from .NET 1.1 to .NET 2.0, MsBuild emits lots of
I have several repositories that have been converted from SVN and moving forward we
After moving to .NET 2.0+ is there ever a reason to still use the
After moving to the new server, I'm getting plenty of such notifications: A PHP
I have several files with code testing code (which uses a unittest class). Later
I have a Rails app representing a card game. There are several different types
After moving jbilling (www.jbilling.org) to tomcat 7, it does not start up anymore and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.