• IOKit找不到问题定义


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

     
  • 相关阅读:
    Pandas Dict到DataFrame Series到DataFrame 转换
    MySQL锁和事务
    MySQl创建用户和授权,mysquldump
    MySQL索引
    pymysql模块
    Navicat下载安装
    MySQL多表查询
    学习目录
    MySQL单表查询
    MySQL逻辑查询语句的执行顺序
  • 原文地址:https://www.cnblogs.com/decwang/p/4080875.html
Copyright © 2020-2023  润新知