NHD*_*aly 5 macos xcode objective-c++ osx-yosemite xcode7
在OSX Yosemite(.mm10.10.5 )上更新到Xcode 7后,我的XCTest文件现在无法编译.我收到以下错误:
In file included from /Users/.../unit_test.mm:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.h:32:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Security.framework/Headers/SecItem.h:985:49: error: expected ';' after top level declarator
extern const CFStringRef kSecUseAuthenticationUI
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Security.framework/Headers/SecItem.h:987:54: error: expected ';' after top level declarator
extern const CFStringRef kSecUseAuthenticationContext
^
...
Run Code Online (Sandbox Code Playgroud)
它抱怨所有的行看起来像这样:
extern const CFStringRef kSecUseAuthenticationUI
__OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
extern const CFStringRef kSecUseAuthenticationContext
__OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
Run Code Online (Sandbox Code Playgroud)
虽然这些声明没有问题:
extern const CFStringRef kSecUseItemList
__OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_2_0);
Run Code Online (Sandbox Code Playgroud)
看起来更新添加了在OS 10.10上不再使用XCTest编译的__MAC_10_11行和.mm文件.
有没有人知道除了升级到OS 10.11之外的解决方法?
谢谢.
| 归档时间: |
|
| 查看次数: |
248 次 |
| 最近记录: |