In iOS 8, Apple allows us to connect to a device via Wifi direct and share wifi network credentials with it. We can do it in wifi settings page but also in an app.
I\'m
I found why it did not work well.
You need to go in your Capabilities pannel (by selecting your target) And then enable Wireless Accessory Configuration !