首页 > 其他 > 详细

IOKit找不到问题定义

时间:2014-11-07 12:49:46      阅读:674      评论:0      收藏:0      [点我收藏+]

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也加不了,这这.....

 

IOKit找不到问题定义

原文:http://www.cnblogs.com/decwang/p/4080875.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!