A directory called ‘Resources’ inside an application bundle causes installation to fail.

Originator:eloy.de.enige
Number:rdar://16391269 Date Originated:
Status:Duplicate/11670647 Resolved:
Product:Developer Tools Product Version:Xcode Version 5.1 (5B130a) / OS X 10.9.2 (13C64)
Classification: Reproducible:Always
 
Summary:
What (I think) happens is that LaunchServices expects a bundle’s ‘Resources’ dir to contain a ‘Info.plist’. Copying the ‘Info.plits’ to the ‘Resources’ dir makes the application install and launch again.

Steps to Reproduce:
1. Create a new iOS application in Xcode.
2. Create a new directory called ‘Resources’ inside new project’s source root.
3. Add the new ‘Resources’ directory to the project as ‘a folder reference’, so that it’s copied as-is into the application bundle.
4. Try to run the application on the iOS Simulator.

Expected Results:
Either that the application simply installs, and works, or if that’s not possible at all that Xcode warns the user that a directory called ‘Resources’ is not allowed and it thusly can’t be installed.

Actual Results:
Application doesn’t get installed and Xcode shows a generic alert stating “iOS Simulator failed to install the application.” which does not help the user troubleshoot the issue at all.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!