热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

模拟器可以运行项目,但设备无法执行此操作-Simulatorcanrunproject,butdevicecan'tdidthis

IneedYourhelp!IhaveaprojectandwhenItrytorunitinSimulatorIhavefirstandseconderr

I need Your help! I have a project and when I try to run it in Simulator I have first and second error, but app build and run all the same. But when I try to do that in my phone(Iphone 6 with iOS 10.2), app didn't build and I have all errors.

我需要你的帮助!我有一个项目,当我尝试在模拟器中运行它时,我有第一个和第二个错误,但应用程序构建和运行所有相同。但是,当我尝试在我的手机(Iphone 6与iOS 10.2)中这样做时,应用程序没有构建,我有所有错误。

1)The operation couldn’t be completed. Unable to log in with account 'my acc'. An unexpected failure occurred while logging in (Underlying error code -1009).

1)操作无法完成。无法使用“我的acc”帐户登录。登录时发生意外故障(基础错误代码-1009)。

2)No profiles for 'name app' were found: Xcode couldn't find a provisioning profile matching 'name app'.

2)没有找到“名称应用”的配置文件:Xcode找不到与“名称应用”匹配的配置文件。

3)Code signing is required for product type 'Application' in SDK 'iOS 10.2'

3)SDK“iOS 10.2”中的产品类型“应用”需要代码签名

What's wrong? What should I do? Help me pls!

怎么了?我该怎么办?帮帮我!

1 个解决方案

#1


1  

I just solved my case. Here is my situation,

我刚刚解决了我的问题。这是我的情况,

  1. I had an AppleID for development which is not my main AppleID
  2. 我有一个AppleID用于开发,这不是我的主要AppleID

  3. I didn't add that ID after changed my iPhone from 6 to 7
  4. 将我的iPhone从6更改为7后,我没有添加该ID

  5. when I tried to test my app on my iPhone Xcode gave me same error.
  6. 当我试图在我的iPhone Xcode上测试我的应用程序时给了我同样的错误。

then what I did is:

然后我做的是:

  1. checked account at Xcode Preference and made sure there is ID listed and signed in.
  2. 在Xcode Preference上查看帐户并确保列出并登录了ID。

  3. tried run my app on my iPhone, error again.
  4. 尝试在我的iPhone上运行我的应用程序,再次出错。

  5. added ID to my iPhone
  6. 我的iPhone添加了ID

  7. tried run my app, error again
  8. 尝试运行我的应用程序,再次出错

  9. restarted Xcode
  10. tried my app, went good.
  11. 试过我的应用程序,很顺利。


推荐阅读
author-avatar
yeeling610
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有