简体   繁体   English

iOS:无法在iOS8中导入CoreWLAN框架

[英]iOS : Unable to import CoreWLAN framework in iOS8

I am trying to Import CoreWLAN framework for wireless network development. 我正在尝试导入CoreWLAN框架以进行无线网络开发。 I got reference pdf from mac developer site as https://developer.apple.com/library/mac/documentation/Networking/Reference/CoreWLANFrameworkRef/CoreWLANFrameworkRef.pdf 我从Mac开发人员站点获得了参考pdf,网址为https://developer.apple.com/library/mac/documentation/Networking/Reference/CoreWLANFrameworkRef/CoreWLANFrameworkRef.pdf

But I am unable to Import CoreWLAN frame in Project. 但是我无法在Project中导入CoreWLAN框架。

Statement @import CoreWLAN; 声明@import CoreWLAN; gives Error -- Module CoreWLAN not found 给出错误-找不到模块CoreWLAN

Since this question is tagged with the iOS tag, you're presumably trying to import CoreWLAN for an iOS project, which isn't possible. 由于此问题带有iOS标签,因此您可能正在尝试为iOS项目导入CoreWLAN,这是不可能的。

You can use the SystemConfiguration framework if all you're trying to do is access the name of the currently connected network. 如果您要做的只是访问当前连接的网络的名称,则可以使用SystemConfiguration框架。 See the Apple Documentation for more. 有关更多信息 ,请参阅Apple文档

CoreWlan isn't available for iOS, it's a Cocoa Framework. CoreWlan不适用于iOS,它是一个Cocoa框架。 If you need the same functionality on iOS, please have a look at the NEHotspotConfigurationManager . 如果您在iOS上需要相同的功能,请查看NEHotspotConfigurationManager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM