V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
lex
V2EX  ›  iDev

Mountain Lion 下的 Xcode 4.4 是不是没法跑 iOS 4.3 的模拟器?

  •  
  •   lex ·
    lexrus · 2012-07-26 22:06:56 +08:00 · 6189 次点击
    这是一个创建于 4540 天前的主题,其中的信息可能已经有所发展或是发生改变。
    http://stackoverflow.com/questions/11651773/how-to-install-simulator-sdk-4-3-to-xcode-4-4-on-mountain-lion

    貌似 Lion 里的 Xcode 4.4 还能用 iOS 4.3 模拟器,ML 里的不行。
    有没有在 ML 里跑起 4.3 模拟器的?
    9 条回复    1970-01-01 08:00:00 +08:00
    dingtianran
        1
    dingtianran  
       2012-07-27 11:39:55 +08:00
    的确是 现在只有5.1模拟器了
    lqik2004
        2
    lqik2004  
       2012-07-27 12:02:46 +08:00
    嗯,确实是没法用了。
    我打开
    ~/Library/Caches/com.apple.dt.Xcode/Downloads/eded78df8bfabaf6560841d10cf8e53766f74f28.dvtdownloadableindex

    然后发现
    <dict>
    <key>source</key>
    <string>http://adcdownload.apple.com/ios/ios_simulator__resigned/ios_43_simulator.dmg</string>
    <key>identifier</key>
    <string>Xcode.SDK.iPhoneSimulator.4.3</string>
    <key>name</key>
    <string>iOS 4.3 Simulator</string>
    <key>userInfo</key>
    <dict>
    <key>InstalledIfAllPathsArePresent</key>
    <array>
    <string>$(DEVELOPER)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk</string>
    </array>
    <key>ActivationPredicate</key>
    <string>$MAC_OS_X_VERSION < "10.8.0"</string>
    </dict>
    </dict>

    其中有一句<key>ActivationPredicate</key> <string>$MAC_OS_X_VERSION < "10.8.0"</string>

    但是如果我修改了这句话也还是不行,一旦打开xcode这个文件就会被修改回去(貌似是被替换成别的)
    yingkong1987
        3
    yingkong1987  
       2012-08-09 04:31:11 +08:00
    I've looked into it, and this is a deliberate behavior from Apple.

    Here is an (edited) extract of the cache for Xcode download locations:

    ~/Library/Caches/com.apple.dt.Xcode/Downloads/eded78df8bfabaf6560841d10cf8e53766f74f28.dvtdownloadableindex

    <dict>
    <key>source</key>
    <string>http://adcdownload.apple.com/ios/ios_simulator__resigned/ios_43_simulator.dmg</string>
    <key>identifier</key>
    <string>Xcode.SDK.iPhoneSimulator.4.3</string>
    <key>name</key>
    <string>iOS 4.3 Simulator</string>
    <key>userInfo</key>
    <dict>
    <key>InstalledIfAllPathsArePresent</key>
    <array>
    <string>$(DEVELOPER)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk</string>
    </array>
    <key>ActivationPredicate</key>
    <string>$MAC_OS_X_VERSION < "10.8.0"</string>
    </dict>
    </dict>
    Note the explicit "ActivationPredicate: $MAC_OS_X_VERSION < 10.8.0" setting, which is not present on other simulator packages.

    I tried to edit the file, but it is replaced by another version as soon as Xcode opens. And I couldn't manage a manual download of the 4.3 Simulator DMG: the ADG website throws a "Session expired" error.

    Looks like Apple had issues with the 4.3 simulator, and decided to disable it. Which sucks for people that have to support this version.

    http://stackoverflow.com/questions/11651773/how-to-install-simulator-sdk-4-3-to-xcode-4-4-on-mountain-lion

    也就说,山狮系统中无法使用4.3模拟器..楼上翻译的还行.大概意思都出来了.
    zhigang1992
        4
    zhigang1992  
       2012-08-09 16:22:45 +08:00
    ML中英还可以同时安装两个Xcode的不? 不知道行不行...
    blank_dlh
        5
    blank_dlh  
       2012-08-09 16:37:37 +08:00
    看了下4.4.1的说明,貌似已经修复了
    adow
        6
    adow  
       2012-08-17 16:44:49 +08:00
    啊我刚升级到了Moutain Lion,XCode Version 4.4.1 (4F1003),但是发现 Downloads里面只有iOS 5.0 Simulator了,4.3的没有了,居然也没有5.1的啊,这是怎么回事?
    wezzard
        7
    wezzard  
       2012-08-17 16:46:51 +08:00   ❤️ 1
    因爲5.1就是自帶的模擬器
    adow
        8
    adow  
       2012-08-17 16:53:59 +08:00
    @wezzard 真相了,原来是这样
    csx163
        9
    csx163  
       2012-08-17 16:59:26 +08:00
    请问lion不升级还能用xcode么
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   980 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:28 · PVG 05:28 · LAX 13:28 · JFK 16:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.