简体   繁体   English

模拟器可以运行项目,但设备无法执行此操作

[英]Simulator can run project, but device can't did this

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. 但是,当我尝试在手机(带有iOS 10.2的iPhone 6)中执行此操作时,应用未构建,并且出现了所有错误。

1)The operation couldn't be completed. 1)操作无法完成。 Unable to log in with account 'my acc'. 无法使用帐户“ my acc”登录。 An unexpected failure occurred while logging in (Underlying error code -1009). 登录时发生意外故障(基本错误代码-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'中的产品类型'Application'需要代码签名

What's wrong? 怎么了? What should I do? 我该怎么办? Help me pls! 请帮我!

I just solved my case. 我刚刚解决了我的案子。 Here is my situation, 这是我的情况

  1. I had an AppleID for development which is not my main AppleID 我有一个AppleID用于开发,这不是我的主要AppleID
  2. I didn't add that ID after changed my iPhone from 6 to 7 将iPhone从6更改为7后,我没有添加该ID
  3. when I tried to test my app on my iPhone Xcode gave me same error. 当我尝试在iPhone Xcode上测试我的应用程序时,出现了同样的错误。

then what I did is: 那么我所做的是:

  1. checked account at Xcode Preference and made sure there is ID listed and signed in. 在Xcode Preference中检查了帐户,并确保列出并登录了ID。
  2. tried run my app on my iPhone, error again. 尝试在iPhone上运行我的应用,再次出错。
  3. added ID to my iPhone 为我的iPhone添加了ID
  4. tried run my app, error again 尝试运行我的应用,再次出错
  5. restarted Xcode 重新启动Xcode
  6. tried my app, went good. 尝试了我的应用程序,效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在模拟器或设备中运行iOS项目 - can't run iOS project in simulator nor device 仅使用真机无法在模拟器上运行 Xcode 项目 - Can't run Xcode project on Simulator only with real device AppCode无法在模拟器和设备上运行 - AppCode can't run on simulator and device 即使我做了深度清理并重新安装 Xcode,也无法在设备上运行 Xcode 项目,钥匙串总是出错 - Can't run Xcode project on device even I did deep clean and reinstall Xcode, always error with Keychain Xcode可以构建一个项目但不能在模拟器上运行它 - Xcode can build a project but can't run it on simulator 无法在模拟器中运行应用程序 - Can't run application in Simulator 可以在ios设备中运行,但不能在ios模拟器中运行吗? - Can run in ios device but not in ios simulator? iOS Project在模拟器,物理设备上运行,但无法为“ iOS设备”构建或归档 - iOS Project runs on simulator, physical device, but can't build or archive anymore for “iOS Device” 无法在模拟器上运行ios应用-“选择具有受支持架构的目标位置才能在此设备上运行” - Can't run ios app on simulator - “choose destination with a supported architecture in order to run on this device” 无法在iOS模拟器中缩放设备窗口 - Can't scale device window in iOS Simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM