Xcode5: Failed to register "/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle

ぐ巨炮叔叔 提交于 2019-12-20 10:28:44

问题


My library has some type converters. I'm registering some OSX and iOS type converters, like so:

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:

xcodebuild -destination OS=${module.sdk.version},name=iPhone -workspace ${workspace} -scheme '${library.ios.scheme}'

The ${} tokens are patched in by my build system.

When building I get:

__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:   <NSThread: 0x7faca140e5c0>{name = (null), num = 1}
 [exec] Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can

How can I fix this?


回答1:


This appears to be an compiler bug, and there's not much that can be done about it.

Here is oficial answer on JetBrains Tracker:

Anton Makeev 17 Sep 2013, 19:36

build error doesn't affect compilation results - it's just a log message from xcodebuild. Simulator should work correctly after you run it at least once in Xcode 5.

and:

We will handle this output in AppCode (show it as a warning, not a n error) but we recommend filing the error to Apple as the message suggests - unfortunately we can't fix it (only hide)

and:

Build error won't go away until we implement 'hide-it-fix' or until Apple fixes it. It is harmless, though and doesn't affect build result.



来源:https://stackoverflow.com/questions/18808549/xcode5-failed-to-register-system-library-coreservices-coretypes-bundle-conten

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!