我最近發現了關於clang_complete,並認爲我會在MacVim中試一試。我在做iOS開發,並且在開始時我得到了UIKit/UIKit.h文件未找到的錯誤,像其他人一樣經歷過。clang_complete和iOS
我正在使用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
不知道如何解決這個問題?
試圖將-m32添加到clang_user_options,它告訴我未知的參數。 – 2011-12-21 12:50:13
哦......也許試試「-triple i386-apple-macosx10.7.0」? – servn 2011-12-21 17:41:49