使用Xamarin Studio时,iOS应用程序不会自动启动 [英] iOS app doesn't start automatically when using Xamarin Studio

查看:104
本文介绍了使用Xamarin Studio时,iOS应用程序不会自动启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能是一个简单的设置问题,但我似乎找不到设置。使用iOS项目运行Xamarin Studio 3。当我打Run(播放符号),应用程序构建和部署。但应用程序不启动,我必须手动启动。三个手机和两个iPad都一样,所以它必须是Xamarin Studio或Mac本身的一个设置。

Probably a simple settings question, but I can't seem to find the setting. Running Xamarin Studio 3 with an iOS project. When I hit Run (the play symbol), the app builds and deploys. But the app doesn't start and I have to start it manually. It's the same on three phones and two iPads so it must be a setting in Xamarin Studio or on the Mac itself.

消息如下:

等待调试器连接...应用程序已经构建和上传,或已经是最新的。

"Waiting for debugger to connect... The application has been build and uploaded, or is already up to date".

我然后手动启动应用程序,调试器连接,一切都很好。不是一个bug问题,而是我想知道的原因。 :)

I then manually have to start the app, the debugger connects and all is well. Not a bug problem, but something I would like to know the cause of. :)

谢谢

Johan

推荐答案

有新的类型的问题看起来完全相同。为了防万一,这是一个对我有用的解决方案。

There is new type of issue which looks exact the same. Just in case, here is a solution which worked well for me.

问题:
无法调试。它说错了配置配置文件!

Problem: Can't debug. It says wrong "Provisioning profile"!

你做什么:
你不断改变配置,平台身份和配置配置文件使用iOS Bundle
配置文件选项卡,因为问题说这是一个错误的配置配置文件,但没有任何帮助。

What you do: You keep changing "configuration", "platform", "identity" and "Provisioning profile" using "iOS Bundle Profile" tab, because issue says it is a wrong Provisioning profile, but nothing helps.


没有。由于某种原因,Xamarin扩展不会保存对项目文件的更改

What really happens: Nothing. For some reason Xamarin extension doesn't save changes to the project file

解决方案:
找到您的* .csproj文件并打开它在文本编辑器(我希望你正在使用记事本++)。查找和删除< CodesignKey> < CodesignProvision> 部分。保存。在Visual Studio中重新加载解决方案,如果您对结果满意 - 点击喜欢按钮:-)

Solution: Find your *.csproj file and open it in text editor (I hope you are using notepad++). Find and delete <CodesignKey> and <CodesignProvision> sections. Save. Reload solution in Visual Studio and if you satisfied with the result - hit "Like" button :-)

这篇关于使用Xamarin Studio时,iOS应用程序不会自动启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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