qpwr opened a new issue #110:
URL: https://github.com/apache/cordova-osx/issues/110
This is rather no bug report, but I'm trying to help others who stumble upon
the same issue. My app with cordova-osx 6.0.0 works perfectly fine on macOS 10,
but crashed on macOS 11 (Big Sur). The error report contained the
__CRASHING_DUE_TO_PRIVACY_VIOLATION__ flag, which is why I assumed the issue
could be due to missing NS*UsageDescription strings in the *-Info.plist file
(similar to when iOS made them mandatory).
After I included the needed strings, the app worked as expected. This is
what I added to my config.xml
```
<platform name="osx">
<!-- other stuff which is not relevant for this topic -->
<config-file parent="NSBluetoothAlwaysUsageDescription"
platform="osx" target="*-Info.plist">
<string>Reason why this app needs bluetooth goes here.</string>
</config-file>
<config-file parent="NSBluetoothPeripheralUsageDescription"
platform="osx" target="*-Info.plist">
<string>Reason why this app needs periphals goes here</string>
</config-file>
<config-file parent="NSCameraUsageDescription" platform="osx"
target="*-Info.plist">
<string>Reason why this app needs the camera goes here</string>
</config-file>
</platform>
```
Hopefully someone will find this useful.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]