Re: Clean command fail
Re: Clean command fail
- Subject: Re: Clean command fail
- From: Jeff Evans <email@hidden>
- Date: Thu, 08 Dec 2011 23:00:26 -0800
Lowell, Thanks to you and to Marco too for his option key suggestion. Resetting the simulator cured the problem, and also showed me an explanation for the failure. The resource in question was a folder containing html files, referenced by name in an NSURLRequest. When I deleted the old resource folder I replaced it in the project with a new one bearing a new name, but neglected to change the requested name in the URLRequest. It seems that XCode somehow left the old resources in place for that reason, because they were referenced in the code, despite not being mentioned in the Resources list. But once the simulator was reset, that showed up as a compile error.
So, there is a cure for zombie resources.
Jeff
On Dec 8, 2011, at 9:54 PM, lowell wrote:
> There's a little mystery in that there is no Library folder at /Users/jeff, but if I click the link button at the right of the default location in preferences, lo, the Derived Data folder appears!
Yeah, Apple started hiding the user-level Library folder in 10.7. You can set the Finder to display all hidden files (defaults write com.apple.finder AppleShowAllFiles -bool YES) or you can just change the folder's visibility attribute directly (SetFile -a v ~/Library) if you want to always have it accessible in the Finder.
> But what really throws me is this: If I then Clean, Build and Run, the old resources are back again. I can't figure out where they are coming from; they are no longer in any findable location; I deleted them but they live on like zombies..
I wonder if maybe those resources are somehow being left behind in the simulator or on the device when you clean/build/run. When you clean a project, it leaves the bundle in the simulator environment alone, and it replaces it if anything changes the next time the app is launched; maybe something is interfering with that? If so, maybe resetting the simulator, if you haven't already, might help. gl
--lowell
--
If this email is spam, report it to
https://support.onlymyemail.com/view/report_spam/MTAxOTYyOjEzNjI1MDU1NjE6amV2YW5zQGFycy1ub3ZhLmNvbTpkZWxpdmVyZWQ
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden