MAC APP- Facing error to run release app. Getting Black screen with App Sandbox YES #726
Labels
more info required
Needs more info to become actionable. Auto-closed if no response.
question
How to do something/general question
Is there an existing issue?
Build info
Flutter 3.29.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ea121f8859 (5 weeks ago) • 2025-04-11 19:10:07 +0000
Engine • revision cf56914b32
Tools • Dart 3.7.2 • DevTools 2.42.3
Xcode - 16.2
Steps to reproduce
1. After setting Xcode Build setting - App Sandbox - YES
Facing error to run release app. Getting Black screen
001-03:14:56.6179 [ERROR] Storage error "Operation not permitted" (code 1)
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: StorageException: failed to create store: Could not open database environment; please check options and file system (1: Operation not permitted) (OBX_ERROR code 10199)
#0 ObjectBoxNativeError.throwMapped (package:objectbox/src/native/bindings/helpers.dart:97)
#1 throwLatestNativeError (package:objectbox/src/native/bindings/helpers.dart:54)
#2 checkObxPtr (package:objectbox/src/native/bindings/helpers.dart:31)
#3 Store._checkStorePointer (package:objectbox/src/native/store.dart:411)
#4 new Store (package:objectbox/src/native/store.dart:230)
#5 StoreRepository.initStore (package:base_app/config/store_repository.dart:23)
#6 main (package:base_app/main.dart:14)
2. And if do Xcode Build setting - App Sandbox - NO
Release build is running and able to generate release build, But getting issue to Upload build on TestFlight for set App Sandbox YES.
Expected behavior
Mac App should run with Sandbox YES and also valid for TestFlight
Actual behavior
Getting Black screen when App Sandbox - YES
001-03:14:56.6179 [ERROR] Storage error "Operation not permitted" (code 1)
Code
import 'dart:io';
import 'package:base_app/objectbox.g.dart';
import 'package:path_provider/path_provider.dart';
import 'package:path/path.dart' as path;
import '../utils/app_utils.dart';
/// Repository to initilialize the ObjectBox Store object
class StoreRepository {
late final Store _store;
/// Initializes the ObjectBox Store object.
Future initStore() async {
}
/// Getter for the store object.
Store get store => _store;
}
Code
[Paste your code here]
Logs, stack traces
TODO Add relevant logs, a stack trace or crash report.
Logs
[Paste your logs here]
The text was updated successfully, but these errors were encountered: