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

dockutil 3.0.0 build issue #122

Closed
chenrui333 opened this issue Mar 7, 2022 · 8 comments
Closed

dockutil 3.0.0 build issue #122

chenrui333 opened this issue Mar 7, 2022 · 8 comments

Comments

@chenrui333
Copy link
Contributor

chenrui333 commented Mar 7, 2022

👋 trying to build the latest release, but run into some build issue. The error log is as below:

build error
$ $ xcodebuild -arch arm64 -project dockutil.xcodeproj -scheme dockutil -configuration Release CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO SYMROOT=build
...
dockutil-3.0.0/dockutil/DockUtil.swift:10:8: error: no such module 'ArgumentParser'
import ArgumentParser
       ^

relates to Homebrew/homebrew-core#96391

@kcrawford
Copy link
Owner

Does the build.sh script work? There is a dependency on the Swift Argument Parser Swift package.

@ferben
Copy link
Contributor

ferben commented Mar 8, 2022

Xcode should resolve dependency automatically.
It need Apple's Dev account?

@chenrui333
Copy link
Contributor Author

👋 Is there anyway that we can get rid of apple dev account dependency? Also is there any way for me to build with swift rather than xcodebuild, I dont know how to pull in Swift Argument Parser Swift dependency.

@ferben
Copy link
Contributor

ferben commented Mar 8, 2022

Please see: https://bargsten.org/wissen/publish-swift-app-via-homebrew/
It can be useful for deployment via hombrew.

@chenrui333
Copy link
Contributor Author

That is a good direction, I will give that a shot.

@sashkab
Copy link

sashkab commented Mar 23, 2022

I've run in issue where xcodebuild cannot be used in Homebrew, therefore I've created a Package.swift in order to update Homebrew formula from v2 to v3. But Homebrew won't accept that pull request (Homebrew/homebrew-core/pull/97394). Will you consider accepting that portion of the code into this repository, @kcrawford ?

The only thing I couldn't figure out was how to use Info.plist for versioning when swift build is used... If you'll agree to accept, I'll try to come up with pull request + add automate CI using Github Actions.

@sashkab
Copy link

sashkab commented Apr 21, 2022

It seems that #131 implements swift package manager support, something I proposed here.

@kcrawford
Copy link
Owner

Yes 3.1.0 is using swift package manager.

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

4 participants