3

MobileWifi プライベート フレームワークを使用して、すべてのアクセス ポイントを一覧表示しています。それはジェイルブレイクされた電話であり、私は iOSOpenDev を使用してコンパイルと展開を行います。Project->BuildSettings->"Code Signing Entitlements" に entitlements.xml を含めました。

XMLには

<?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>com.apple.wifi.manager-access</key>
    <true/>
</dict>
</plist>

私はまだエラーが発生します

_wifi_manager_open Client WifiTest has no entitlement 

資格を追加する正しい方法が欠けていると思います。それを機能させる方法はありますか?

編集: 以前の回答に従って、ldid を使用してアプリに署名しました。ldid は次の出力を与えました。

WifiTest
<?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>application-identifier</key>
<string>ECZNUJJL7C.com.WifiTest</string>
<key>get-task-allow</key>
<true/>
<key>keychain-access-groups</key>
<array>
    <string>ECZNUJJL7C.com.WifiTest</string>
</array>
</dict>
</plist>

私はそれがアプリに署名したと仮定しています。次に、iExplorer を使用して WifiTest.app をデバイスに直接転送しました。クラッシュします。ログが表示されます..

Sep  6 16:02:31  com.apple.launchd[1] (UIKitApplication:com.WifiTest[0x4d49][19575]) <Error>: (UIKitApplication:com.WifiTest[0x4d49]) posix_spawn("/var/mobile/Applications/CCCAA7CB-2304-4A99-8306-20234E38652F/WifiTest.app/WifiTest", ...): Permission denied


Sep  6 16:02:31  SpringBoard[19291] <Warning>: Unable to obtain a task name port right for pid 19575: (os/kern) failure


Sep  6 16:02:31  com.apple.launchd[1] (UIKitApplication:com.WifiTest[0x4d49][19575]) <Warning>: (UIKitApplication:com.WifiTest[0x4d49]) Exited with code: 1


Sep  6 16:02:31  SpringBoard[19291] <Warning>: Unable to look up event port name for pid 19575: (os/kern) successful


Sep  6 16:02:31  SpringBoard[19291] <Warning>: Unable to send activation event to <SBApplication: 0xd223be0> com.WifiTest animate statusBarOrientation = 1  activate: animationStart = 0  deactivate: : (ipc/send) invalid destination port
4

0 に答える 0