简体   繁体   中英

Im getting a error when I try and compile my app

Im Getting this error: error: /Users/*****/Dropbox/*******/iPad:iPhone/******/*****/PNGs/../******.png: No such file or directory when I try and compile my app. Whats Wrong

That means it can't find a file. Try deleting and reinserting the file that Xcode cannot find.

The file path is wrong.

  1. Spot the concerned file in the ressource file list of your project
  2. Edit the path of the file by choosing the good file in the finder

In Xcode 4, you can edit the ressource path in the Utility view, at the right at the interface. Concerning Xcode 3, I don't remember :D

You also can delete the Reference of the file from your project, and add it again to the project.

The directory looks like you are testing in iOS Simulator.

  • Make sure the file exists.
  • Check the spelling in your code.
  • Perhaps just delete the file in Xcode and add it again.

在项目树中找到用红色突出显示的文件名,将其从此处删除并放置正确的文件名。

You need to make sure the file exists first. When you create the project make sure you are placing it in a directory somewhere in your file system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM