防火墙阻止Bonjour网络调试 [英] Firewall impeding Bonjour network debugging

查看:375
本文介绍了防火墙阻止Bonjour网络调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试一个Bonjour网络例程,每次我运行它,Mac的防火墙询问你想要应用程序ProjectName接受传入的网络连接吗?

I’m trying to debug a Bonjour network routine, and every time I run it, the Mac’s firewall asks "Do you want the application ProjectName to accept incoming network connections?"

我点击允许,为其指定管理员名称和密码,然后将应用程序正确添加到防火墙的允许接收连接应用列表中...,直到下次运行。

I click "allow," give it the administrator name and password, and the app is duly added to the firewall’s list of allowed incoming-connections apps…until the next run.

调试此同步例程很麻烦,因为它。这真的是一个麻烦,必须键入每次运行的管理员和密码。当然,我可以通过运行作为管理员的Mac,但我不想妥协的安全性,以这种方式解决这个问题。

Debugging this sync routine is cumbersome as it is. It’s really a nuisance having to type in the admin and password for every run. Of course I could get around this by running the Mac as admin, but I’d rather not compromise the security that way.

Xcode有一些项目设置,防火墙?

Does Xcode have some project setting that will calm the firewall?

推荐答案

您应该对应用程序进行签名。防火墙对签名的应用程序更加宽松。

You should code sign your app. The firewall is much more lenient toward apps that are signed.

要做到这一点,你需要进入你的项目设置,在代码签名部分,你应该添加一个的配置文件作为代码签名身份。

To do that, you need to go into your Project Settings and in the Code Signing section, you should add one of your provisioning profiles as the Code Signing Identity.

有一个相当不错的过程描述此处

There's a pretty good description of the process here.

这篇关于防火墙阻止Bonjour网络调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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