如何在没有 Apple 开发者帐户的设备上运行应用程序 [英] How do I run an app on a device without an Apple developer account

查看:39
本文介绍了如何在没有 Apple 开发者帐户的设备上运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了几个网站,其中包含有关如何完成此操作的信息,但似乎没有一个适用于 Xcode 10.1 或 iOS 12.1.我试过的那些似乎不起作用.我试过这个:

  1. 创建一个空的 swift 项目单视图应用程序"

  2. 将签约团队设置为我的个人团队 (Apple ID)

  3. 将活动方案设置为我连接的 (USB) iPhone 7 plus

  4. 按下播放按钮

我得到的是失败,退出代码为 1"和可怕的日志消息.

我的设备在活动方案下拉列表中出现红框.这是什么意思?

我正在运行配备 High Sierra 的 MacBook Air.任何帮助表示赞赏.

解决方案

  1. 您只需要拥有免费的苹果开发者帐户即可.如果您没有使用此链接创建一个:-

    1. 选择您的项目,转到常规选项卡,选择自动管理签名和团队作为您的个人团队.

    2. 运行您的项目,成功构建后.您将在 Xcode 中收到一条错误消息,指出您的应用并非来自可信赖的来源.

    3. 现在在您的设备中,转到设置",搜索设备管理",选择您的个人资料名称和信任.

    4. 再次运行您的应用.

    I've found several sites with information on how this can be done, but none that seems to apply to Xcode 10.1 or iOS 12.1. The ones I've tried don't seem to work. I've tried this:

    1. Create an empty swift project 'single view app'

    2. Set the Signing Team to my Personal Team (Apple ID)

    3. Set the active scheme to my connected (USB) iPhone 7 plus

    4. Press the Play button

    What I get is a 'Failed with exit code 1' and a horrendous log message.

    My device turns up with a red frame in the active scheme dropdown list. What does that mean?

    I'm running a MacBook Air with High Sierra. Any help is appreciated.

    解决方案

    1. You just need to have apple developer account, which is free. If you don't have that create a using this link:- https://developer.apple.com

    2. Go to Xcode -> Preferences -> Accounts, login with your developer account, and download profiles.

    1. Select your project, Go to general tab, select automatically manage signing and Team as your personal team.

    2. Run your project, After successful build. you will get an error in Xcode stating your app is not from trustworthy source.

    3. Now in your device, Go to Settings, search for "Device Managament", select Your profile name and Trust.

    4. Run your app again.

    这篇关于如何在没有 Apple 开发者帐户的设备上运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆