kcrawford / dockutil

command line tool for managing dock items
http://patternbuffer.wordpress.com
Apache License 2.0
1.36k stars 131 forks source link

dockutil 3.0.0 build issue #122

Closed chenrui333 closed 8 months ago

chenrui333 commented 2 years ago

👋 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 commented 2 years ago

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

ferben commented 2 years ago

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

chenrui333 commented 2 years ago

👋 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 commented 2 years ago

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

chenrui333 commented 2 years ago

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

sashkab commented 2 years ago

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 commented 2 years ago

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

kcrawford commented 8 months ago

Yes 3.1.0 is using swift package manager.