Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcodebuild: error #72

Open
Vjze opened this issue Oct 30, 2023 · 2 comments
Open

xcodebuild: error #72

Vjze opened this issue Oct 30, 2023 · 2 comments

Comments

@Vjze
Copy link

Vjze commented Oct 30, 2023

[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.

@warfaj
Copy link
Member

warfaj commented Oct 30, 2023

What version of the CLI are you using?

@zackbrown
Copy link
Member

zackbrown commented Oct 30, 2023

I can reproduce this on 0.10.7:

  1. cargo install pax-cli --force
  2. pax-cli new xcodetest
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants