Skip to content

[macOS 15 · Xcode 15] Sandbox “file-read-data” on generate_sources.sh + 4.2.0 not listed in SPM #98

@01H-W-H10

Description

@01H-W-H10

❗️ What happens

  • ObjectBox 4.2.0 does not appear in Swift Package Manager’s version list (only 4.1.0).
  • After integrating 4.2.0 manually (xcframework ZIP) and following the official Run Script Phase guide, every build fails with a sandbox error:

🔄 Reproduction

  1. macOS 15.4.1 (24E263) + Xcode 15.3.1 (16E300a)
  2. SPM → https://github.com/objectbox/objectbox-swift.git → 4.2.0 not offered.
  3. Download ObjectBox-xcframework-4.2.0.zip and extract to
    Dependencies/ObjectBox/….
  4. Add Run Script Phase (official snippet) and add these Input Files
    $(PROJECT_DIR)/Dependencies/ObjectBox/generate_sources
    $(PROJECT_DIR)/Dependencies/SourceryBin/Sourcery

Sandbox: zsh(94585) deny(1) file-read-data /…/generate_sources.sh
/bin/zsh: can't open input file /…/generate_sources

  1. Install Sourcery 1.9.2 CLI → Dependencies/SourceryBin/Sourcery
    (exec bit + quarantine cleared).
  2. Build → sandbox denial above.

🛠️ Tried / no luck

Attempt Result
chmod +x on generate_sources*, OBXCodeGen, Sourcery
xattr -dr com.apple.quarantine on whole Dependencies
Adding …/OBXCodeGen.framework/OBXCodeGen to Input Files
Using Sourcery 2.2.7 (Homebrew) instead of 1.9.2

📋 Environment

Item Value
macOS 15.4.1 (Sequoia)
Xcode 15.3.1 (16E300a)
Swift 5.10
ObjectBox 4.2.0 (manual xcframework)
Sourcery 1.9.2 CLI

📎 Full log excerpt

click to expand

🙏 Questions

  1. Why is 4.2.0 missing from the SPM version list?
  2. Is there an updated Run Script Phase example that works with Xcode 15 sandboxing?
  3. Any known incompatibility between Sourcery ≥1.9 and ObjectBox 4.2 on macOS 15?

Thanks for looking into this!

Metadata

Metadata

Labels

more info requiredNeeds more info to become actionable. Auto-closed if no response.questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    close