Failed in deleting file in main bundle under sandbox
===

I am trying to delete a file in the main bundle of my app in code.
What I am trying is: get the file path via [[NSBundle mainBundle] pathForResource:ofType:], then try to delete it via [[NSFileManager defaultManager] removeItemAtPath:]. 

My problem is, my app is sandboxed, so I got information like this: sandboxd deny file-write-unlink ...

Is there a way to overcome this? Any idea would be appreciated.