title: iOS - sharedApplication is unavailable in Today Extension?
body: <p>I am creating a Today extension. I have added all necessary files and getting a bunch of compile errors about</p>
  
  <ul>
  <li>openUrl is not available</li>
  <li>sharedApplication is not available</li>
  <li>init on UIAlertView is not available</li>
  </ul>
  
  <p>The files with these dependencies are built deep into my app (error handler on my networking layer, etc), and I know that they won't be used in the Today Extension, but in order to completely get rid of dependency in these files I need to refactor the entire app. Is there a way around this?</p>
  
  <p>My code is Swift so I can't use compiler macros either to avoid executing these lines of code.</p>
  
  <p>#if !TARGET_IS_TODAY_EXTENSION
   #endif</p>