Hi I have problems with Info.plist in MacOS applic...
# kotlin-native
a
Hi I have problems with Info.plist in MacOS application. My app must to get GPS information. I call
CLLocationManager.requestAlwaysAuthorization
on start. It works from IDEA or command line. But when I make PKG file by this and create Info.plist file. If I add into file
Copy code
<key>NSLocationUsageDescription</key>
    <string>My information</string>
application doesn’t use message, ask me any time, write info console the error
Copy code
app.kexe[31495:7080886] There was an error parsing the Info.plist for the bundle at URL <....>: NSCocoaErrorDomain - 3840
and CAN’T get gps info. If I add into file
Copy code
<key>NSLocationAlwaysUsageDescription</key>
application ask me ONE time, write info console the same error
Copy code
app.kexe[31495:7080886] There was an error parsing the Info.plist for the bundle at URL <....>: NSCocoaErrorDomain - 3840
and GETS gps info. But Launchpad ignored my app 🤯 What have I to do?
I’ve fixed it: • remove SUDO operations from the example • install applications into
~/Applications
instead of
/Applications
But I haven’t understood why it helps me