gpt4 book ai didi

cocoa - 我的应用程序被拒绝。它访问 '/usr/lib/libpcap.A.dylib' 我该怎么做才能避免它?

转载 作者:行者123 更新时间:2023-12-03 16:51:35 30 4
gpt4 key购买 nike

我向 Mac OSX App Store 提交了一个简单的应用程序,但被拒绝,原因如下:

“应用程序正在以下位置创建文件、写入文件或打开文件以进行读/写访问:

'/usr/lib/libpcap.A.dylib'"

我使用一些碳代码,例如 FSMountServerVolumeSync 和 FSGetCatalogInfo。

有什么办法可以取消这个吗?

编辑:它是由 shell 脚本而不是碳引起的:/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | sed -e 's/^ *SSID://p' -e d\")"

最佳答案

由于问题是由于使用 airport 命令行实用程序造成的,如果您的目标是 Mac OS X v10.6+,我建议您使用 CoreWLAN framework获取当前无线接口(interface)的SSID:

#import <CoreWLAN/CoreWLAN.h>

CWInterface *wif = [CWInterface interface];
if (wif) {
// There's an active WiFi connection; get its SSID
NSString *currentSSID = wif.ssid;
}

关于cocoa - 我的应用程序被拒绝。它访问 '/usr/lib/libpcap.A.dylib' 我该怎么做才能避免它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6234584/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com