Xcode 6.3.2 - 应用安装失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30797144/
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 6.3.2 - App installation failed
提问by Paul Jarysta
Since yesterday, I try to compile my application on my iPhone, but I have this error message:
从昨天开始,我尝试在 iPhone 上编译我的应用程序,但出现以下错误消息:
App installation failed
An unknown error has occurred.
应用安装失败
出现未知错误。
That worked until now. I checked the certificates, it seems to be good.
这一直有效。我检查了证书,似乎不错。
Have you already met this problem?
您是否已经遇到过这个问题?
Thanks
谢谢
PS :That works on simulators but not on external devices (iPhone / iPad).
PS:这适用于模拟器,但不适用于外部设备(iPhone / iPad)。
Edit :It's now fix, thanks.
编辑:现在修复了,谢谢。
Go to Xcode Preferences -> Click on Accounts -> Select my AppleID -> Click on View Details -> Click on refresh icon.
转到 Xcode 首选项 -> 单击帐户 -> 选择我的 AppleID -> 单击查看详细信息 -> 单击刷新图标。
And force clean my project.
并强制清理我的项目。
It works well!
它运作良好!
回答by Nitin
this happens with me also sometimes. all certificates are fine. provisioning profiles are ok. but still error occurs. try this trick:
这有时也会发生在我身上。所有证书都很好。配置文件没问题。但仍然发生错误。试试这个技巧:
Product>Clean>force quit Xcode>reopen Xcode>clean>select device>run
if stil dont work check your code signing, your provisioning profile must contain same code signing that you have in your keychain. if still doesnt work. then delete your provisioning profile and create new one,with same code signing identities.
如果仍然不起作用,请检查您的代码签名,您的配置文件必须包含与钥匙串中相同的代码签名。如果还是不行。然后删除您的配置文件并使用相同的代码签名身份创建新的配置文件。
回答by saran
Goto product -> clean
转到产品 -> 清洁
quit xcode
退出 xcode
then open again
然后再次打开
again product -> clean
再次产品 -> 清洁
then run the app
然后运行应用程序
it will work
它会起作用
thanks
谢谢
回答by Sharukh Mastan
So I had the same issue just now. This was due to adding a new pod to my project.
所以我刚才遇到了同样的问题。这是由于在我的项目中添加了一个新的 pod。
What worked for me was deleting the existing app on the phone and hitting "clean" (Product -> Clean || shift + cmd + k) on Xcode.
对我有用的是删除手机上的现有应用程序并在 Xcode 上点击“clean”(产品 -> Clean || shift + cmd + k)。
Hope it helps!
希望能帮助到你!
回答by Nabeel Ahmed
If you are using Pod then make the framework of pod optional
如果您使用的是 Pod,则将 Pod 的框架设为可选
回答by SDS
Delete the application from device manually and Run xcode application again. It will work.
手动从设备中删除应用程序并再次运行 xcode 应用程序。它会起作用。
回答by kwahn
This keeps happening to me and it's because somehow my Apple ID gets signed out, or corrupted.
这一直发生在我身上,这是因为我的 Apple ID 不知何故被注销或损坏。
Steps to fix:
修复步骤:
- In the menu, go to
Xcode > Preferences > Accounts
- Select "Apple ID" on the left
- On the right, sign in again
- Go to general settings and make sure you have the proper Teamselected
- In the menu,
Product > Clean
- 在菜单中,转到
Xcode > Preferences > Accounts
- 选择左侧的“Apple ID”
- 在右侧,重新登录
- 转到常规设置并确保您选择了正确的团队
- 在菜单中,
Product > Clean
That should do it.
那应该这样做。
回答by toxicsun
Sometimes i'm having this issue. The reasons can be different, sometimes it can be prov. profiles. Last time i face this issue all was correct, cleaning target and restarting xcode didn't help. i just force switch off iphone and issue was resolved. So switich off iphone can be another solution.
有时我会遇到这个问题。原因可能不同,有时可能是证明。个人资料。上次我遇到这个问题时一切都是正确的,清理目标并重新启动 xcode 没有帮助。我只是强行关闭 iphone 并解决了问题。因此,关闭 iphone 可能是另一种解决方案。
xCode 7.3, iOS 7.2, iphone 4s.
xCode 7.3、iOS 7.2、iphone 4s。