标签:io ar os sp for div on 问题 bs
Xcode511下
Undefined symbols for architecture armv7s:
"_IOMasterPort", referenced from:
getValue(NSString*) in ZHPay
"_IORegistryGetRootEntry", referenced from:
getValue(NSString*) in ZHPay
"_IORegistryEntrySearchCFProperty", referenced from:
getValue(NSString*) in ZHPay
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
查找,发现接口是在IOKit里,但是Xcode511又加不了IOKit.framework,即便强行加上去了也还是报错,
报找不到IOKit,ld: framework not found IOKit
于是放狗,放百度,
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/IOKit.framework
sudo ln -s Versions/A/IOKit .
之后又看了下Xcode6也加不了,这这.....
标签:io ar os sp for div on 问题 bs
原文地址:http://www.cnblogs.com/decwang/p/4080875.html