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

Build phase - Build input files cannot be found #28

Closed
JulesMoorhouse opened this issue May 14, 2022 · 13 comments
Closed

Build phase - Build input files cannot be found #28

JulesMoorhouse opened this issue May 14, 2022 · 13 comments
Labels
help wanted Extra attention is needed

Comments

@JulesMoorhouse
Copy link

Hi,

I added the SPM, added the executable and the ui...

I assumed I didn't have to install (Aka using mint) as I used the SPM ?

Added the build phase and I'm getting this error...

error: Build input files cannot be found: '/Users/jm/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/ArgumentParser.o', '/Users/jm/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/ArgumentParserToolInfo.o' (in target 'swift-package-list' from project 'SwiftPackageList')

Any ideas ?

Thanks,

Jules.

@FelixHerrmann
Copy link
Owner

Hi Jules,

You have to install it on your machine, either manually or via Mint as described here. The package is only for reading the generated file conveniently!

Let me know if something is still unclear!

@FelixHerrmann FelixHerrmann added the help wanted Extra attention is needed label May 14, 2022
@JulesMoorhouse
Copy link
Author

Ah ok...

I needed to added export PATH="$PATH:$HOME/.mint/bin/" as mentioned in the other issue.

So the build phase now runs... but I don't seem to be getting any output.
I do have spms with licenses...

Any ideas ?

Jules.

@FelixHerrmann
Copy link
Owner

Cool, did you add the file to your project/target as described in step 6 and 7?

@JulesMoorhouse
Copy link
Author

No I mean it didn't create a file.

@JulesMoorhouse
Copy link
Author

Oh hang on, I had the first checkout checked....
Now I have the original error 🙁

@JulesMoorhouse
Copy link
Author

image

🤦‍♂️

@FelixHerrmann
Copy link
Owner

Oh hang on, I had the first checkout checked....
Now I have the original error 🙁

Hmm, what happens if you execute the command manually in your Terminal? I should generate it on your desktop.

@FelixHerrmann
Copy link
Owner

image

🤦‍♂️

This looks fine 🤔

@JulesMoorhouse
Copy link
Author

Yeah, it's in the path, so why doesn't it work when ran from the sh script Xcode creates.

If I remove the if statement and just run the two lines, it fails with the same error.

@JulesMoorhouse
Copy link
Author

it runs fine from my home folder too... hmmm

@FelixHerrmann
Copy link
Owner

Xcode provides it's own environment and the PATH variable where the mint bin folder is added is not the one from your system...

Both methods described in #27 should work, what happens when you try the second method where you create an alias to mint's swift-package-list with ln -s $HOME/.mint/bin/swift-package-list /usr/local/bin/swift-package-list?

@JulesMoorhouse
Copy link
Author

Awesome, working :)

@FelixHerrmann
Copy link
Owner

Awesome!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants