Question: Is it possible to setup WebAPI to Self Host like Nancy.
Such that it hosts an 

> 
> /api/...
> 
> 
> 

section serving up json and xml responses and hosts a 

> 
> /content/...
> 
> 
> 

section serving up \*.jpg and \*.html and \*.js

I'm trying to create a self hosting Single Page Application with WebAPI as the backend, and the only thing I have seen that comes close is Nancy.

Is this possible with WebAPI self hosting?

Answer: 
Try this:

```
#if __has_feature(objc_arc)
/* ARC is used */
#endif

```
You can already tell you're building without ARC: were it enabled, your call to `autorelease` would result in a compiler error. This suggests that your actual problem has nothing to do with ARC, of course -- removing the `autorelease` call may be preventing an object from getting over-released, but it's also quite possibly causing a leak.

Besides that, though: in addition to the other methods that have been suggested so far, you can also find the place in Xcode where one normally controls ARC at the project- or target-wide level. Select your project in the navigator, and in the Build Settings tab, look for "Objective-C Automatic Reference Counting" under "Apple LLVM Compiler 4.2 - Language" (or use the search box at the top to look for "Automatic Reference Counting" or "ARC". If you're using a project somebody else originally set up, you may also wish to check for whether the `-fobjc-arc` or `-fno-objc-arc` flags are set at a per-file level. That's under Build Phases -> Compile Sources when your project and target are selected in Xcode.