pax
pax copied to clipboard
xcodebuild: error
[Pax] π» Building xcodeproject... 2023-10-30 22:41:04.134 xcodebuild[39987:197212] Writing error result bundle to /var/folders/y2/188hpfyd2_bbprjnwclm6b9h0000gn/T/ResultBundle_2023-30-10_22-41-0004.xcresult xcodebuild: error: Could not resolve package dependencies: the package at '/Users/wjz/Rust/hello-world/.pax/pkg/pax-chassis-common/pax-swift-cartridge' cannot be accessed (Error Domain=NSCocoaErrorDomain Code=260 "The folder βpax-swift-cartridgeβ doesnβt exist." UserInfo={NSFilePath=/Users/wjz/Rust/hello-world/.pax/pkg/pax-chassis-common/pax-swift-cartridge, NSUserStringVariant=( Folder ), NSUnderlyingError=0x7fa7f4508da0 {Error Domain=NSOSStatusErrorDomain Code=-43 "fnfErr: File not found"}})
Failed to build project with xcodebuild. Aborting.
What version of the CLI are you using?
I can reproduce this on 0.10.7
:
-
cargo install pax-cli --force
-
pax-cli new xcodetest
-
cd xcodetest && pax-cli run --target=macos
. The same error message is presented.
Thanks for the report @Vjze ; we've filed this bug in our tracker and will update this issue when we resolve it.
For whoever takes this on, it looks like the published version of the CLI (as opposed to the monorepo libdev version) is failing to unpack pax-swift-cartridge
. Either it isn't getting bundled with the binary, or perhaps our recursive unpacking logic is failing (possibly not handling a symlink/etc. correctly β and we do have symlinks in pax-swift-cartridge.
)
Notice the missing pax-swift-cartridge
below; this is in xcodetest/.pax/pkg/pax-chassis-common
after getting the error above:
tree -L 2 pax-chassis-common/
pax-chassis-common/
βββ Cargo.toml
βββ Cargo.toml.orig
βββ pax-swift-common
βΒ Β βββ Package.swift
βΒ Β βββ README.md
βΒ Β βββ Sources
βΒ Β βββ Tests
βββ src
βββ core_graphics_c_bridge.rs
βββ lib.rs
5 directories, 6 files