First of all, you need to add an entitlement to your project using the com.apple.wifi.manager-access key. The creation of the entitlement differs from the Xcode version you are using (.xml, .entitlement), but your entitlement's content should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>YOUR_APP_BUNDLE_ID</string>
</array>
<key>com.apple.wifi.manager-access</key>
</true>
</dict>
</plist>
Second, you need to have a Jailbreak and AppSync on your iOS device in order to launch your app, this is due to the entitlement.
I had the same problem at the beginning, maybe my question can give you further information.