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 6008675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:51:30+00:00 2026-05-23T01:51:30+00:00

My app was building and running fine on the simulator and device, but I

  • 0

My app was building and running fine on the simulator and device, but I noticed that for some reason, I had a duplicate directory within my main directory, and some duplicate files as well. So while my main directory was /MyAppName, there were also files in /MyAppName/MyAppName.

I carefully moved any non-duplicate files out of the subdirectory, deleted the directory, and updated the paths for my Prefix Header and Info.plist files. I cleaned and built the project, however I’m still getting an error from the compiler looking in the duplicate subdirectory (which is deleted), like so:

arm-apple-darwin10-llvm-gcc-4.2: /MyAppName/MyAppName/main.m: No such file or directory

because main.m is now in /MyAppName/main.m

I don’t see a variable or setting to look for other than the Prefix Header and Info.plist files. Is there somewhere else I should look? Clearly something is still referencing the duplicate subdirectory, but I don’t see where.

  • 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-05-23T01:51:30+00:00Added an answer on May 23, 2026 at 1:51 am

    From your description of the project layout it sounds like this is an Xcode 4 project. Xcode’s project configuration still thinks that main.m is in /MyAppName/MyAppName, so you need to update the project configuration for this file and any others.

    Select main.m in the Project Navigator (left panel) and open the File Inspector (right panel). Under the Location heading on the File Inspector, click the button that looks like a small window with a document icon; this will allow you to update the project’s path for main.m. Repeat with other files. Depending on how many files you have it may be easier to just remove them from the project (using the project navigator), being sure not to delete them, and then add them back to the project again.

    You probably ended up with files at different levels of the filesystem hierarchy because when you create a new file, Xcode uses the selection in the Project Navigator to determine where to put it on disk. If you have the project selected, the file will go in the top level folder; if you have group selected, it will go in whatever folder is associated with that group, or one of its parents.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a Cordova 2.1.0 app it is building and running fine on simulator
The application that developing is running fine on Xcode simulator, but when I am
I have an app I was building and running fine under osx snow leopard
This morning I tried running a Silverlight 5 App that we have been building
My app runs just fine in the simulator, but now I have a developers
BACKGROUND: I am running a phonegap app that I am building using phonegap build
I have an ASP.NET Web Forms app that I am building and running against
I have a Rails app that has been running fine for months. The other
Currently building an app that runs on mobile phones not related to the issue
I am building an app that performs a lot of client side data downloading

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.