- space between ] and stringByAppendingPathComponent.
- no need to append the slash prefix, the path component will do that for you, so change it to 
<pre>
cachePath = [[pathsArray firstObject] stringByAppendingPathComponent:@"Logs"];
</pre>