我可以从 iOS 模拟器中访问 App Store 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8137791/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 15:24:10  来源:igfitidea点击:

Can I access the App Store from within the iOS Simulator?

iphoneiosxcodeapp-store

提问by Alaa Eldin

Within the iOS Simulator, is it possible to access the App Store?

在 iOS 模拟器中,是否可以访问 App Store?

That is, can I install the App Store application within the Simulator and download applications through it to the iOS Simulator? If so, how?

也就是说,我可以在模拟器中安装 App Store 应用程序并通过它下载应用程序到 iOS 模拟器吗?如果是这样,如何?

回答by Stephen Darlington

It's a simulatornot an emulator. Even if there was an App Store in the Simulator, none of the apps in the store would work since they are compiled for ARM CPUs while the Simulator runs x86 code.

这是模拟器不是模拟器。即使模拟器中有 App Store,商店中的应用程序也不会运行,因为它们是为 ARM CPU 编译的,而模拟器运行的是 x86 代码。

回答by Grouchal

Sorry it is not available! The simulator will only allow you to install programs from xCode. I am not sure why they restrict this - but I am also not sure why you would want to use the Simulator for this purpose.

抱歉它不可用!模拟器只允许您从 xCode 安装程序。我不知道他们为什么限制这个 - 但我也不确定你为什么要为此目的使用模拟器。

回答by Mars Robertson

Interacting with iOS Simulator: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/InteractingwiththeiOSSimulator/InteractingwiththeiOSSimulator.html

与 iOS 模拟器交互:https: //developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/InteractingwiththeiOSSimulator/InteractingwiththeiOSSimulator.html

Note:You cannot install apps from the App Store in simulation environments.

注意:您无法在模拟环境中安装来自 App Store 的应用程序。

回答by pch

You can put application in your simulator. But you cannot run it. They have restricted users to run applications. I found where the .app files are. Machintosh HD - Application - Xcode - Contents - Developer - Platforms - iPhoneSimulator.platform - Developer - SDKs - iPhoneSimulator.sdk - Applications All applications are in there but, I can't run them. However, I succeeded to install .app files. In .ipa file, there is 'payload' folder, and .app file is in there. All you need is just copy it and paste it in Applications folder. Then you can see the icon on your simulator. But, it will not work.

您可以将应用程序放入模拟器中。但是你不能运行它。他们限制用户运行应用程序。我找到了 .app 文件的位置。Machintosh HD - 应用程序 - Xcode - 内容 - 开发人员 - 平台 - iPhoneSimulator.platform - 开发人员 - SDKs - iPhoneSimulator.sdk - 应用程序 所有应用程序都在那里,但我无法运行它们。但是,我成功安装了 .app 文件。在.ipa 文件中,有'payload' 文件夹,.app 文件在那里。您所需要的只是将其复制并粘贴到 Applications 文件夹中。然后您可以在模拟器上看到该图标。但是,它不会工作。

回答by Neo

Probably wont work, but if you have an IOS device and copy an app onto your computer, you might be able to run it on IOS simulator, as you can run your own apps.

可能行不通,但如果您有 IOS 设备并将应用程序复制到您的计算机上,您也许可以在 IOS 模拟器上运行它,因为您可以运行自己的应用程序。