我最近发现了关于 clang_complete 的信息,并认为我会在 MacVim 中尝试一下。我正在做 iOS 开发,一开始我遇到了 UIKit/UIKit.h 文件未找到错误,就像其他人遇到的那样。
我将 Xcode 4.2 与 iOS 5 SDK 一起使用。我已将以下内容添加到 clang_user_options:
let g:clang_user_options='-fblocks -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000'
但是现在每当我触发自动完成时,我都会收到以下错误:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h|36 col 9 error| mac68k alignment pragma is not supported on this target
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUtilities.h|14 col 39 error| expected function body after function declarator
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h|92 col 10 error| 'CoreFoundation/CFUserNotification.h' file not found
知道如何解决这个问题吗?