title: Xcode5: Failed to register "/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle
body: <p>My library has some type converters. I'm registering some OSX and iOS type converters, like so: </p>
  
  <p>When I compile for iOS, I'm getting some errors related to not being able to find UIKit. Here's how I compile for iOS: </p>
  
  <pre><code>xcodebuild -destination OS=${module.sdk.version},name=iPhone -workspace ${workspace} -scheme '${library.ios.scheme}'
  </code></pre>
  
  <p><em>The ${} tokens are patched in by my build system.</em></p>
  
  <p>When building I get: </p>
  
  <pre><code>__build.library.ios.simulator:
   [exec] Details:  Failed to register "/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle" with Launch Services, error code: -10811.
   [exec] Function: __RegisterUTIsIfNeeded_block_invoke
   [exec] Thread:   &lt;NSThread: 0x7faca140e5c0&gt;{name = (null), num = 1}
   [exec] Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can
  </code></pre>
  
  <p>How can I fix this? </p>