I have file in my directory.开发者_JS百科 i have imported it but still it is saying file not found..(In Xcode)
If the file is showing up in Xcode in red it means Xcode doesn't know where the file is. Right click on the file in the project window and select "get info". In the "General" tab there is a button labelled "Choose..." on the right hand side below "Name" and at the same level as "Path". Press this and you'll get a file chooser dialog so you can tell Xcode where your file is.
If the file does not appear in Xcode at all, right click the project icon at the top of the left hand tree pane and click "Add existing files to project..".
精彩评论