fix(tauri): 移除 macOSPrivateApi(未签名 dev 构建调用私有 API 导致启动 SIGTRAP 崩溃)

崩溃栈: NSBundle bundleWithIdentifier → objc2 msg_send → EXC_BREAKPOINT
窗口为标准全屏,无需私有 API;摄像头/麦克风权限由 Info.plist 声明,不受影响
This commit is contained in:
Pine
2026-08-18 01:46:54 +08:00
parent 0dd63b1558
commit d6d69aa603
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
tauri-build = { version = "2", features = [] } tauri-build = { version = "2", features = [] }
[dependencies] [dependencies]
tauri = { version = "2", features = ["macos-private-api"] } tauri = { version = "2", features = [] }
tauri-plugin-opener = "2" tauri-plugin-opener = "2"
tauri-plugin-autostart = "2" tauri-plugin-autostart = "2"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
+2 -3
View File
@@ -1,6 +1,6 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "昆明大学生创业园展播系统", "productName": "云超服昆创园OPC运营中心",
"version": "0.1.0", "version": "0.1.0",
"identifier": "com.pine.dpm", "identifier": "com.pine.dpm",
"build": { "build": {
@@ -10,10 +10,9 @@
"frontendDist": "../dist" "frontendDist": "../dist"
}, },
"app": { "app": {
"macOSPrivateApi": true,
"windows": [ "windows": [
{ {
"title": "昆明大学生创业园展播系统", "title": "云超服昆创园OPC运营中心",
"width": 1200, "width": 1200,
"height": 800, "height": 800,
"fullscreen": true, "fullscreen": true,