Code Monkey home page Code Monkey logo

Comments (11)

davidmurray avatar davidmurray commented on July 26, 2024

Link with CoreGraphics.framework and MobileWiFi.framework.

from wifi.

intersilindia avatar intersilindia commented on July 26, 2024

Thanks for the reply...
I have added CoreGraphics.framework now the only problem is that I am not able to add MobileWiFi.framework,I have added the header files though(Maybe I need to specify the path of private framework here,not sure)
It would be really helpful if you could provide a sample code which includes the usage of MobileWiFi.framework

from wifi.

davidmurray avatar davidmurray commented on July 26, 2024

This project uses MobileWiFi.framework which should be a good example. Similarly, my other project, AirScan, uses it too (github.com/Cykey/airscan).

To link, check out this post: http://stackoverflow.com/a/13388225
Look for the instructions at the bottom.

from wifi.

intersilindia avatar intersilindia commented on July 26, 2024

I have used the header files which you have mentioned inAirScan but it doesnt seem to work.Besides the stackoverflow link is also not helpful.
Can you please give me the link from where I can download MobileWifi.framework
Thanks...

from wifi.

davidmurray avatar davidmurray commented on July 26, 2024

MobileWiFi.framework is shipped with the iOS SDK.

It is located at this path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/PrivateFrameworks/MobileWiFi.framework/

(Remember to change "7.1" to whatever SDK you are using.)

from wifi.

intersilindia avatar intersilindia commented on July 26, 2024

I have integrated MobileWifi.framework and the code works fine now [thanks for that..:)]
I am trying to turn off the Wifi programatically using the following code snippet

WiFiManagerClientSetProperty(manager, CFSTR("AllowEnable"), kCFBooleanFalse);

But it doesnt seems to reflect,so can you please tell me what can be done inorder to achieve the above functionality using MobileWifi.framework.
Besides as an alternative I have also tried to modify Network.plist and com.apple.wifi.plist
I can read data from the above plist but cant modify it

I would really appreciate your input for the above mentioned criteria

from wifi.

davidmurray avatar davidmurray commented on July 26, 2024

Hi,

I think the issue is that your app is not properly signed using the required entitlements. When you launch the app, check the syslog for any errors regarding entitlements. The syslog can be viewed from Xcode's Organizer.

Thanks

from wifi.

intersilindia avatar intersilindia commented on July 26, 2024

screen shot 2014-07-14 at 5 26 10 pm

screen shot 2014-07-14 at 5 31 56 pm

screen shot 2014-07-14 at 4 48 17 pm

I have added the above Entitlement.plist but now I am not able to link the new plist with the project it gives the above error

SYSlog prints the following:

Jul 14 13:24:04IiPhone securityd[87] : securityd_xpc_dictionary_handler XcodeDeviceMonit[6334] copy_matching The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
Jul 14 13:24:04 iPhone XcodeDeviceMonitor[6334] : SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements))
Jul 14 13:24:07 iPhone backboardd[28] : HID: The 'Passive' connection 'preferenceSettin' access to protected services is denied.
Jul 14 13:24:11 iPhone wifid[15] : WiFi:[427017251.331721]: kern_return_t _wifi_manager_open(mach_port_t, int, int, mach_port_t, mach_port_t *, audit_token_t) Client preferenceSettin has no entitlement
Jul 14 13:24:11 iPhone preferenceSetting[6329] : WiFi:[427017251.332714]: Failed to open connection to WiFi Manager kr=2
Jul 14 13:24:11 Phone preferenceSetting[6329] : WiFi:[427017251.334952]: Failed to open connection to WiFi Manager kr=268435466
Jul 14 13:24:11 iPhone preferenceSetting[6329] : WiFi:[427017251.335626]: Failed to open connection to WiFi Manager kr=268435466
Jul 14 13:24:11 iPhone preferenceSetting[6329] : N

Also please check the entitlements.plist whether its proper or not

Thanks...

from wifi.

davidmurray avatar davidmurray commented on July 26, 2024

It seems correct to. I'm not really sure what could be causing the issues as I don't use Xcode often. Try searching on google for "Xcode ldid codesigning".

from wifi.

Sopan avatar Sopan commented on July 26, 2024

Does it work for non-jail broken devices as well ?

from wifi.

davidmurray avatar davidmurray commented on July 26, 2024

If you manage to get it signed with the proper entitlements that I think that it should work.

from wifi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.