gpt4 book ai didi

vim - clang_complete 和 iOS

转载 作者:行者123 更新时间:2023-12-04 19:35:06 28 4
gpt4 key购买 nike

我最近发现了 clang_complete,并想在 MacVim 中试一试。我正在做 iOS 开发,一开始我遇到了 UIKit/UIKit.h file not found 错误,就像其他人遇到的那样。

我正在使用带有 iOS 5 SDK 的 Xcode 4.2。我已将以下内容添加到 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”。

关于vim - clang_complete 和 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8559654/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com