Skip to content

Commit 2af4697

Browse files
enedclaude
andcommitted
fix: resolve iOS CI sandbox errors by disabling User Script Sandboxing
- Set ENABLE_USER_SCRIPT_SANDBOXING = NO in all iOS build configurations - This fixes "Sandbox: rsync.samba deny file-write-create" errors in CI - Update macOS runners from macos-latest to macos-13 for better stability - Resolves "Failed to parse Target Device Version" and sandbox permission issues Reference: flutter/flutter#128739 Reference: CocoaPods/Xcodeproj#989 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e998f3f commit 2af4697

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
cd example && flutter build apk --debug
2828
2929
example_ios:
30-
runs-on: macos-latest
30+
runs-on: macos-13
3131
steps:
3232
- uses: actions/checkout@v4
3333
- uses: subosito/flutter-action@v2

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
flutter test
2323
2424
native_ios_tests:
25-
runs-on: macos-latest
25+
runs-on: macos-13
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: subosito/flutter-action@v2
@@ -68,7 +68,7 @@ jobs:
6868
device:
6969
- "iPhone 16 Pro"
7070
fail-fast: false
71-
runs-on: macos-latest
71+
runs-on: macos-13
7272
steps:
7373
- uses: actions/checkout@v4
7474
- uses: subosito/flutter-action@v2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@
484484
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
485485
ENABLE_NS_ASSERTIONS = NO;
486486
ENABLE_STRICT_OBJC_MSGSEND = YES;
487-
ENABLE_USER_SCRIPT_SANDBOXING = YES;
487+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
488488
GCC_C_LANGUAGE_STANDARD = gnu99;
489489
GCC_NO_COMMON_BLOCKS = YES;
490490
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -569,7 +569,7 @@
569569
DEBUG_INFORMATION_FORMAT = dwarf;
570570
ENABLE_STRICT_OBJC_MSGSEND = YES;
571571
ENABLE_TESTABILITY = YES;
572-
ENABLE_USER_SCRIPT_SANDBOXING = YES;
572+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
573573
GCC_C_LANGUAGE_STANDARD = gnu99;
574574
GCC_DYNAMIC_NO_PIC = NO;
575575
GCC_NO_COMMON_BLOCKS = YES;
@@ -627,7 +627,7 @@
627627
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
628628
ENABLE_NS_ASSERTIONS = NO;
629629
ENABLE_STRICT_OBJC_MSGSEND = YES;
630-
ENABLE_USER_SCRIPT_SANDBOXING = YES;
630+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
631631
GCC_C_LANGUAGE_STANDARD = gnu99;
632632
GCC_NO_COMMON_BLOCKS = YES;
633633
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;

0 commit comments

Comments
 (0)