#Plist.info crash app

12 messages · Page 1 of 1 (latest)

untold finch
#

Hi everyone, I have a question related to the Plist.info, or the the microphone access permission on Mac. Right now, under dev environment I can get the microphone access. If I build the app on my local machine it also works. But after it goes through the tauri-action, when I open the app and click the button to request microphone access the app crashes. I am not sure how I can resolve this, does anyone have similar problem? I am still new to Tauri, so maybe I am making some stupid mistake.

dapper rain
#

Is your app signed? I wonder if the permission stuff behaves differently if not (and if the app is from another machine) 🤔

still flicker
#

@untold finch Can you please share your Info.plist content

near void
#

I have the same problem. Works in dev (without a permission), works on local build (requests a permission), doesn't work when build with GitHub Actions.

The app in not signed.

Info.plist

<?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>NSMicrophoneUsageDescription</key>
    <string>Minecraft mod needs a microphone access</string>
    <key>NSSpeechRecognitionUsageDescription</key>
    <string>Minecraft mod needs to access speech recognition</string>
</dict>
</plist

Also tried setting the Entitlements, but I'm not sure if that affects anything

// tauri.conf.json
"macOS": {
        "exceptionDomain": "",
        "frameworks": [],
        "entitlements": "./macos/App.entitlements"
      }

./macos/App.entitlements

<?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.cs.disable-library-validation</key>
    <true/>
    <key>com.apple.security.cs.allow-dyld-environment-variables</key>
    <true/>
    <key>com.apple.security.device.audio-input</key>
    <true/>
    <key>com.apple.security.device.camera</key>
    <true/>
</dict>
</plist>
still flicker
#

Mine crashes even in development mode

untold finch
#

@still flicker here is my Info.plist

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>NSMicrophoneUsageDescription</key>
    <string>This app requires microphone access to enable the voice input function.</string>
</dict>
</plist>```
#

@dapper rain it should be, I set up all env variable in Github, and everything work previously including notarization and updater.

        Info setup keychain from environment variables...
     Signing /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/.tmpNeSG0j/Quaffle.zip with identity "***"
        Info setup keychain from environment variables...
  Notarizing /Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/macos/Quaffle.app
        Info notarization started; waiting for Apple response...
    Bundling Quaffle_0.2.1_universal.dmg (/Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/dmg/Quaffle_0.2.1_universal.dmg)
     Running bundle_dmg.sh
     Signing /Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/dmg/Quaffle_0.2.1_universal.dmg with identity "***"
        Info setup keychain from environment variables...
    Bundling /Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/macos/Quaffle.app.tar.gz (/Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/macos/Quaffle.app.tar.gz)
    Finished 3 bundles at:
        /Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/macos/Quaffle.app
        /Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/dmg/Quaffle_0.2.1_universal.dmg
        /Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/macos/Quaffle.app.tar.gz (updater)

        Info 1 updater archive at:
        Info         /Users/runner/work/quaffleApp/quaffleApp/src-tauri/target/universal-apple-darwin/release/bundle/macos/Quaffle.app.tar.gz.sig
Done in 769.91s.
dapper rain
still flicker
#

I had the same issue with Speech Recognition on macOS it works fine on windows without any configs and I failed to config it for mac

untold finch
#

<@&867368061999775754> I used @near void entitlements file and tweaked my plist to ```<?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>NSMicrophoneUsageDescription</key>
<string>This app requires microphone access to enable the voice input function.</string>
<key>com.apple.security.device.audio-input</key>
<string>This app requires microphone access to enable the voice input function.</string>
</dict>
</plist>

#

Because i received this one ...