在 iOS iPhone 模拟器上安装 TestFlight 应用程序 - 注册失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11942477/
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 19:43:59  来源:igfitidea点击:

Installing a TestFlight app on iOS iPhone Simulator - Registration Failed

iphoneiosregistrationsimulatortestflight

提问by emery

I'm attempting to install a TestFlight app on XCode's iOS simulator using the iPhone simulator. The link to the TestFlight app takes me to a page that says "This device will need to be registered before it can install betas."

我正在尝试使用 iPhone 模拟器在 XCode 的 iOS 模拟器上安装 TestFlight 应用程序。TestFlight 应用程序的链接将我带到一个页面,上面写着“此设备需要先注册才能安装测试版”。

There is a friendly Register button. When I click the register button, it says "Registering Device" and then it takes me to the iPhone's General settings page. If I navigate back to the TestFlight page, it says "Registration Failed."

有一个友好的注册按钮。当我单击注册按钮时,它会显示“注册设备”,然后它会将我带到 iPhone 的常规设置页面。如果我导航回 TestFlight 页面,它会显示“注册失败”。

Does anyone know of a way to install a TestFlight app on the iPhone Simulator? Thanks.

有谁知道在 iPhone 模拟器上安装 TestFlight 应用程序的方法吗?谢谢。

回答by J2theC

The app you are trying to install is an app compiled for arm architecture, which is different from the simulator (the simulator is not an emulator). The simulator only runs x86 apps compiled for it. You will need to contact the developer of the application to send you the x86 binaries, and add them directly to the application directory of the iOS simulator. The directory (on Xcode 4.5 beta 4) is /Applications/Xcode45-DP4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/Applications. Note that the simulator's sdk version has to match the version of iOS you are trying to use the simulator with.

您尝试安装的应用程序是为arm架构编译的应用程序,与模拟器不同(模拟器不是模拟器)。模拟器只运行为它编译的 x86 应用程序。您需要联系应用程序的开发人员,将 x86 二进制文件发送给您,并将它们直接添加到 iOS 模拟器的应用程序目录中。目录(在 Xcode 4.5 beta 4 上)是 /Applications/Xcode45-DP4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/Applications。请注意,模拟器的 sdk 版本必须与您尝试使用模拟器的 iOS 版本相匹配。

回答by kyleturner

If I had to guess, I would presume that since the Simulator is not a valid device, it is not able to install the TestFlight Profiles onto the device, and therefore failing registration process (when you are directed to the iPhone's Settings, it tries to install a profile on your device).

如果我不得不猜测,我会假设由于模拟器不是一个有效的设备,它无法将 TestFlight 配置文件安装到设备上,因此注册过程失败(当您被定向到 iPhone 的设置时,它会尝试在您的设备上安装配置文件)。

May I ask why you are trying to install the app via the iPhone Simulator? If the app's code exists on GitHub, you can use the GitHub for Mac app to checkout the code, and XCode to compile the project and build it to the iOS Simulator. There should not really be any reason to have to install TestFlight on the iOS Simulator.

请问您为什么要尝试通过 iPhone 模拟器安装该应用程序?如果应用程序的代码存在于 GitHub 上,您可以使用 GitHub for Mac 应用程序检出代码,并使用 XCode 编译项目并将其构建到 iOS 模拟器。真的没有任何理由必须在 iOS 模拟器上安装 TestFlight。