如何使Mac OS X防火墙永久允许我的iOS应用程序? [英] How do I get the Mac OS X Firewall to permanently allow my iOS app?

查看:137
本文介绍了如何使Mac OS X防火墙永久允许我的iOS应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个iOS应用,该应用可以充当telnet服务器.自然,它一开始就开始侦听连接.

I'm writing an iOS app that acts as, among other things, a telnet server. Naturally, it begins listening for connections as soon as it starts.

当我在模拟器中运行该应用程序时,Mac OS X(碰巧是在10.7.3上)提示我允许或拒绝我的应用程序接受传入的网络连接.这是Mac OS X用于所有未签名的联网应用程序的标准防火墙消息.

When I run the app in the Simulator, Mac OS X (I happen to be on 10.7.3) prompts me to Allow or Deny my application to accept incoming network connections. This is the standard Firewall message that Mac OS X uses for all unsigned, networked applications.

我厌倦了每天单击五十次或更多次允许",因此我寻求一种将应用程序永久添加到防火墙的允许应用程序列表中的方法.

I grow weary of clicking "Allow" fifty or more times a day, and so I seek a way of permanently adding my app to the Firewall's list of permitted apps.

我尝试了以下方法.

  1. 在我的应用程序运行时打开活动监视器.
  2. 选择我的应用.点击检查".
  3. 转到打开文件和端口"选项卡.第一行是我的应用程序的精确路径.复制并粘贴此路径.
  4. 打开防火墙...高级设置.
  5. 单击+(添加)按钮.
  6. 浏览到应用程序路径并选择它,从而将其添加到允许传入连接的应用程序列表中.

在最后一步,有一个重要的决定.您可以添加.app应用程序包,或在该包上显示目录,然后在其中添加"Unix可执行文件".我已经尝试过两种方法.

In the last step there's a significant decision. You could add either the .app application package, or Show Contents on that package and add the "Unix executable" within. I've tried both approaches.

有趣的是,防火墙实际上会在一段时间内停止警告您有关该应用程序的信息.但是,运行几次后,我不清楚是什么事件真正导致了此更改,但确实如此一般来说,对我来说,发生时间是半小时左右-防火墙开始再次警告该应用.

Interestingly, Firewall will in fact stop warning you about the app—for a while. After a few runs, however—it isn't clear to me what event actually causes this change, but it happens within half an hour or so for me, generally speaking—Firewall begins warning about the app again.

如何将防火墙设置为永久允许我的iOS应用?

How do I set Firewall to permanently Allow my iOS app?

自然,我可以通过禁用Mac OS X防火墙来绕过整个问题.我也可以通过切掉它避免再次踩到脚上的碎片.这些行动方针都没有向我推荐.

Naturally, I could bypass this whole problem by disabling the Mac OS X firewall. I could also avoid ever again getting a splinter in my foot by chopping it off. Neither of these courses of action recommend themselves to me.

您有什么建议?

推荐答案

经过一段时间的摸索,我发现手动将可执行文件本身添加到允许"列表中可以得到所需的结果.您没有添加.app,而是在.app的Contents文件夹内添加了"Unix"可执行文件.我相信我之前曾尝试过该文件,但没有成功,但目前可以正常工作.

After dabbling with this for some time, I found that manually adding the executable itself to the Firewall "Allow" list gives the desired result. You don't add the .app, but rather the "Unix" executable inside the .app's Contents folder. I believed I had tried this file before without success, but currently it's working.

这篇关于如何使Mac OS X防火墙永久允许我的iOS应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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