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

2012-07-26 22:06:56 +08:00
 lex
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 模拟器的?
6179 次点击
所在节点    iDev
9 条回复
dingtianran
2012-07-27 11:39:55 +08:00
的确是 现在只有5.1模拟器了
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
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
2012-08-09 16:22:45 +08:00
ML中英还可以同时安装两个Xcode的不? 不知道行不行...
blank_dlh
2012-08-09 16:37:37 +08:00
看了下4.4.1的说明,貌似已经修复了
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
2012-08-17 16:46:51 +08:00
因爲5.1就是自帶的模擬器
adow
2012-08-17 16:53:59 +08:00
@wezzard 真相了,原来是这样
csx163
2012-08-17 16:59:26 +08:00
请问lion不升级还能用xcode么

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/43542

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX