Xcode 10 - iPhone 拒绝启动请求
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/53213094/
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
Xcode 10 - iPhone has denied request to launch
提问by Joshua Isaac
I'm running Xcode 10
and iOS 12.1
on my iPhone 6S Plus
. The app works when running in simulator, but when running my app in Xcode
with my phone connected, i get this error:
我正在跑步Xcode 10
并iOS 12.1
在我的iPhone 6S Plus
. 该应用程序在模拟器中运行时有效,但是在Xcode
连接手机的情况下运行我的应用程序时,出现此错误:
iPhone has denied the launch request.
iPhone 拒绝了启动请求。
My iPhone is a trusted device on my mac, and i have my signing certificate. I've spent hours googling for a solution but none of them are working for me.
我的 iPhone 是我 mac 上的可信设备,我有我的签名证书。我花了几个小时在谷歌上搜索解决方案,但没有一个对我有用。
Anyone have any ideas?
谁有想法?
回答by Shailesh Dodia
回答by Wings
My solution worked: Menu Xcode - Product - Scheme - Edit scheme - Build Configuration -> [Release] (instead of Debug) + Debug executable -> [remove the cross]
我的解决方案有效:菜单 Xcode - Product - Scheme - Edit scheme - Build Configuration -> [Release](而不是 Debug)+ Debug executable -> [remove the cross]
回答by Varun P V
回答by Columbo
Try upgrading from XCode 10 to XCode 10.1. The SDKs for iOS 12.1 were added in XCode 10.1, so XCode might be having trouble communicating with your device because it's on a higher OS version than it understands.
尝试从 XCode 10 升级到 XCode 10.1。适用于 iOS 12.1 的 SDK 已添加到 XCode 10.1 中,因此 XCode 可能无法与您的设备进行通信,因为它的操作系统版本比它所理解的要高。
回答by mohamed fawzy
edit scheme > uncheck debug executable.....this works but make you lose debug capabilities.
编辑方案 > 取消选中调试可执行文件..... 这有效,但会使您失去调试功能。
what is really worked for me without losing the debug capabilities is doing the following
在不失去调试功能的情况下真正对我有用的是执行以下操作
- open keychain
- search for iphone developer certificate
- delete it (Xcode will create another one for you)
- relaunch the app Xcode will ask for your computer password type it and you are done
- 打开钥匙串
- 搜索iphone开发者证书
- 删除它(Xcode 会为你创建另一个)
- 重新启动应用程序 Xcode 将要求您输入计算机密码,然后输入即可
i found this answer thanks to Tommy Callaway on youtube video link
感谢汤米卡拉威在 youtube视频链接上找到了这个答案
回答by Truck Driver
The solution for me was to delete ALL my apple dev certs locally, then approve them during the next build process.
我的解决方案是在本地删除我所有的苹果开发证书,然后在下一个构建过程中批准它们。
But def make sure you've set the provisioning profile for your project, that's a classic..
但是请确定您已经为您的项目设置了配置文件,这是一个经典的..
回答by Gobi
In project , open your project's TARGETS. 1.Check your Provisioning Profile whethe is match Signing certificate 2.In debug their are develop profile and certificate,and in release their are distribution profile and certificate
在 project 中,打开项目的 TARGETS。1.检查您的配置文件是否匹配签名证书 2.在调试时他们是开发配置文件和证书,在发布时他们是分发配置文件和证书
3.[enter link description here][1]if you don't determine, there is a easy way to help you,xcode offer the Automatically manage signing ,just in xocode tick this option.look this here
3.[在此处输入链接描述][1]如果您不确定,有一个简单的方法可以帮助您,xcode 提供了自动管理签名,只需在 xocode 中勾选此选项。看这里
This will help: iPhone has denied the launch request
这将有所帮助:iPhone 拒绝了启动请求
回答by emraz
Select the Project> Target > Build Settings. Search PROVISIONING_PROFILE and remove whatever is there. Then run.
选择项目>目标>构建设置。搜索 PROVISIONING_PROFILE 并删除那里的任何内容。然后跑。
回答by Evan Laksana
Check you certificate in keychain if its double delete one of them > Quit XCODE > Clean > Build again ( This work to me )
检查钥匙串中的证书是否双重删除其中一个>退出XCODE>清理>再次构建(这对我有用)