zoukankan      html  css  js  c++  java
  • 2015 - 4- 22越狱环境搭建2

    1. DumpFrameworks.pl  配置与下载  存放路径 /usr/pl
    http://download.csdn.net/download/hongfengkt/8547245   
     
    将DumpFrameworks.pl 放入任意目录下.同样需要修改执行权限.chmod 777     名字
    在 terminal 的任意目录下 输入 : ./DumpFrameworks.pl
    等待…
    会有一个Heards 文件夹在你的主目录下. 里面包含了 Frmeworks 和 privateFrameworks 下所有的私有 API
     
    1. 安装 dpkg

      先安装MacPorts;下载地址 http://www.macports.org/

      命令行执行这句 sudo port -v selfupdate 出现错Error synchronizing MacPorts sources: command execution failed  

      结局方法:http://trac.macports.org/wiki/howto/PortTreeTarball

      打开sources.conf文件 拷贝一分用记事本打开将一下两行代码添加进去

      #rsync://rsync.macports.org/release/ports/ [default]

      http://www.macports.org/files/ports.tar.gz [default]

      然后保存 覆盖原文件 

      sudo port -v selfupdate

       执行安装dpkg语句 sudo port install dpkg

      sources.conf路径

      /opt/local/etc/macports/sources.conf

     
    sudo port install dpkg 执行后报错

    Error: 

    Error: No valid Xcode installation is properly selected.

    Error: Please use xcode-select to select an Xcode installation:

    Error:     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4

    Error: 

    Warning: xcodebuild exists but failed to execute

    Warning: Xcode does not appear to be installed; most ports will likely fail to build.

    直接执行sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer  重新指定一下路径

     
     
    2,项目中错误,以及解决方法
    ld: warning: directory not found for option '-L/Users/k-net/Library/Developer/Xcode/DerivedData/PlunginStudy-fkefeizmoxkespfxhjxpuihqqiqe/Build/Products/Release-iphonesimulator'
    ld: warning: directory not found for option '-F/Users/k-net/Library/Developer/Xcode/DerivedData/PlunginStudy-fkefeizmoxkespfxhjxpuihqqiqe/Build/Products/Release-iphonesimulator’
     
    解决以上两个警告的方法
    (targets - architectures -  去除armv64)
     
    ld: warning: ignoring file /opt/iOSOpenDev/lib/libsubstrate.dylib, missing required architecture i386 in file /opt/iOSOpenDev/lib/libsubstrate.dylib (2 slices)
    Undefined symbols for architecture i386:
      "_MSHookMessageEx", referenced from:
          _logosLocalInit() in PlunginStudy.o
      "_OBJC_CLASS_$_UIAlertView", referenced from:
          objc-class-ref in PlunginStudy.o
     
    解决方法 : 只在头文件中引入时不对的,需要再引入UIKit框架
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    需要真机调试,否则会报错误信息
  • 相关阅读:
    java中map接口hashMap以及Enty之间的用法和关系
    Collection集合总结,List和set集合的用法,HashSet和LinkedHashSetde用法
    微信小程序开发攻略
    Java闰年的计算,Calendar的用法
    Java计算计算活了多少天
    Java用代码演示String类中的以下方法的用法
    Java判断一个字符串中有多少大写字母、小写字母和数字
    Java将一个字符串的首位改为大写后边改为小写的实现,String
    Java 获取一个字符串中,另一个字符串出现的次数
    linux下重命名文件或文件夹(linux)
  • 原文地址:https://www.cnblogs.com/tian-sun/p/4447863.html
Copyright © 2011-2022 走看看