Re: -[NSBundle URLForResource:withExtension:subdirectory] is case-sensitive
Re: -[NSBundle URLForResource:withExtension:subdirectory] is case-sensitive
- Subject: Re: -[NSBundle URLForResource:withExtension:subdirectory] is case-sensitive
- From: "Stephen J. Butler" <email@hidden>
- Date: Sat, 17 Aug 2013 18:29:10 -0500
On Sat, Aug 17, 2013 at 6:03 PM, Rick Aurbach <email@hidden> wrote:
> I expect indexURL to be non-null (and to contain the appropriate URL).
> However, in actual devices, this function returns nil; on the IOS Simulator
> it returns a valid URL. If I change the resource name to exactly match the
> actual file name (i.e., change either the filename or the argument to
> exactly match) I get a correct result on both the actual and simulated
> devices
This is a known limitation of the Simulator. On OS X the filesystem is case
preserving, but not case sensitive. Since the Simulator runs on top of OS X
it inherits this behavior.
However, on iOS the filesystem is case sensitive. It's been this way since
the beginning; you just have to watch out for it.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden