zoukankan      html  css  js  c++  java
  • ios5.1二货,手贱,解决方案

    Snow Leopard and SDK 5.1...


    You may or may not be aware that if you upgrade your device(s) to 5.1 (hastily, as we tend to do!), and you're using Snow Leopard, there's NO 5.1 SDK available. Apple are saying, download XCode 4.3.1, which of course requires Lion. Well, I for one can't upgrade to Lion as I have stuff in my environment which apparently breaks under Lion. So rather than restore my devices to 5.0.1 and all the hassle that involves, I put my hacking hat on and came up with the following solution.
    It presumes your current XCode 4.2 installation is in /Developer, and make sure XCode is NOT running.
    Download the Lion 4.3.1 XCode DMG file, and mount it so that you can see it from Finder.
    Fire up a Terminal (Applications->Utilities->Terminal) - yes we know some of you are UNIX-virgins but it's all straightforward
    Now enter the following commands into the terminal (note, your password will have to be entered after the first command):
    Code:
    sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
    sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
    sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
    sudo rm -f /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest
    cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
    sudo ln -s ./5.1\ \(9B176\) ./Latest
    Now just unmount the dmg in Finder, fire back up XCode, and your 5.1 device will now work with XCode 4.2...
    Hope that helps people!
  • 相关阅读:
    模板实现一个通用栈
    服务器开发
    objectc获取文件各项属性方法
    Visual C++ MFC 中常用宏的含义
    symbian获取中文的拼音
    sip协议的功能及其应用
    【转】MySQL分区的简单实例,用于解决大数据表的问题
    Symbian c++ 在3版中实现并动态配置开机自启动
    (转)如果你也喜欢用goto
    C++实现查找汉字拼音首字母
  • 原文地址:https://www.cnblogs.com/gsdczh/p/2441587.html
Copyright © 2011-2022 走看看