Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the WiFiManagerClientCopyDevices return 0x0 ? #7

Closed
GF-Huang opened this issue Mar 21, 2014 · 16 comments
Closed

Why the WiFiManagerClientCopyDevices return 0x0 ? #7

GF-Huang opened this issue Mar 21, 2014 · 16 comments

Comments

@GF-Huang
Copy link

i use your class in my project.
and the WiFiManagerClientCopyDevices return 0x0.
help, please

image
image

@davidmurray
Copy link
Owner

Are you sure that your application has the com.apple.wifi.manager-access entitlement?

@GF-Huang
Copy link
Author

sorry, what's the meaning of "com.apple.wifi.manager-access" ?
My app is a normal app, not the cydia app, but my device was jailbreak.

@davidmurray
Copy link
Owner

Your application needs to be signed with a custom entitlement (com.apple.wifi.manager-access). I'm sure that there are plenty of tutorials that show how to do this.

@GF-Huang
Copy link
Author

oh, my god. if need to resign , how can i debug my app with xcode. But, Thank you !

@davidmurray
Copy link
Owner

Xcode isn't really meant to do jailbreak stuff. It'll cause you some trouble along the way.

@GF-Huang
Copy link
Author

great, i resign my app success !

  1. The Bulid setting set don't code sign, then build.
  2. use ldid to resign my app with "entitlements.xml"
  3. run with xcode.

but there's a new problem, my app run success and got wifi info, but xcode can't debug the program, breakpoint no trigger.

i want debug the app with xcode, can you help me ?

image

64d93d94-ab53-44b1-8067-4181e531deb1

@GF-Huang GF-Huang reopened this Mar 22, 2014
@davidmurray
Copy link
Owner

Hm, that's odd. I have no idea what's wrong. Really though, when you're building jailbreak stuff Xcode will get in your way. Perhaps you should use theos?

@GF-Huang
Copy link
Author

is there any other way to debug this kind of app ?

@GF-Huang
Copy link
Author

great, i find a good way to debug app with xcode and resign for use private framework.

image

now, set the code signing entitlements value to the path of entitlements.xml in this project.
image

bulid and enjoy it !

@davidmurray
Copy link
Owner

So everything works now?

@GF-Huang
Copy link
Author

yes, works well.

@santhuisland
Copy link

we need to jailbroke the device if i want to use this "com.apple.wifi.manager-access" in entitlements?

@davidmurray
Copy link
Owner

Yes.

@leiyong316
Copy link

I added "code signing entitlements" this error.
can you help me?
thanks

image

@davidmurray
Copy link
Owner

You can't sign your app with that entitlement when using a provisioning profile. It's not possible; Apple does not allow it.

@leiyong316
Copy link

@Cykey I found the cause of the problem, device need to jailbreak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants