How do I access location data from a CLI executable? – Jailbroken device

  Kiến thức lập trình

I have this CLI tool running on my jailbroken iPhone that needs to access location data using CLLocationManager.

I’ve tried adding different keys to my entitlements file with no success.

<?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.security.personal-information.location</key>
    <true/>
    <key>com.apple.locationd.effective_bundle</key>
    <true/>
    <key>com.apple.locationd.authorizeapplications</key>
    <true/>
    <key>com.apple.locationd.preauthorized</key>
    <true/>
    <key>com.apple.private.tcc.allow.overridable</key>
        <array>
        <string>kTCCServiceLocation</string>
        </array>
</dict>
</plist>

How can I achieve this?

New contributor

Jonas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT