0

I just converted my iPhone app yesterday to a universal app. I made the appropriate changes, but everytime I add new png files or icons, it gives me this error:

No such file or directory (/Users/username/Library/Developer/Xcode/DerivedData/APP-exqfnpxyqlazbechywnebtxqcykj/Build/Products/Release-iphoneos/APP.app/APP)

I am not sure what is causing this. I keep following the steps described in this blog. But it doesn't work. I've even tried resarting my computer several times. Does anyone have an idea what's going wrong?

Rameez Hussain
  • 6,414
  • 10
  • 56
  • 85

1 Answers1

1

You can delete the derived data from the Orginizer window just as the link said. What you also could do is click "Clean build folder" under the "Product" menu by holding down the alt-key. And then clean the project as usual.

Mikael
  • 3,572
  • 1
  • 30
  • 43
  • Tried it now. Didn't work. Does this happen if by chance I am not following the icon-naming convention? (It doesn't show me any warnings regarding this by the way, and I think I'm following the proper names.) – Rameez Hussain Jan 24 '13 at 11:55
  • Can you see the images in your Target - Build Phases - Copy Bundle Resources? Also, can you try building the app to the simulator and your iPhone? Another thing, are the icons in your plist under "Icon files"? – Mikael Jan 24 '13 at 12:00
  • I can see the files in the location you mentioned. I tried running the app on the simulator, for both iPhone and iPad, and it works fine. But it doesn't run on the devices. – Rameez Hussain Jan 24 '13 at 12:43
  • Ok, have you tried deleting the app from your device and then build to it again? – Mikael Jan 24 '13 at 12:45
  • Yes. More times than I can count. :/ – Rameez Hussain Jan 24 '13 at 12:50
  • Ouch :)... So you have tried deleting the derived folder for your app in finder as well? – Mikael Jan 24 '13 at 12:55
  • Well. I did not. But somehow it has started working now. Crazy. Anyway, thanks a lot for your help. I will accept your answer. :) – Rameez Hussain Jan 24 '13 at 12:58
  • Thanks, glad it worked! It's always a pain when stuff like that happens. – Mikael Jan 24 '13 at 13:00