码迷,mamicode.com
首页 > 其他好文 > 详细

IOKit找不到问题定义

时间:2014-11-07 12:52:51      阅读:226      评论:0      收藏:0      [点我收藏+]

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

 

IOKit找不到问题定义

标签:io   ar   os   sp   for   div   on   问题   bs   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!