Skip to content

Commit

Permalink
Remove xcodeproj support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Apr 3, 2023
1 parent 1f4aff2 commit 230aca0
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 777 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.DS_Store
*.log
build

.swiftpm
.vscode
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import PackageDescription

let package = Package(
name: "DockUtil",
name: "dockutil",
platforms: [.macOS(.v10_15)],
products: [
.executable(name: "dockutil", targets: ["DockUtil"])
Expand All @@ -14,13 +14,13 @@ let package = Package(
targets: [
.executableTarget(
name: "DockUtil",
dependencies: [.product(name: "ArgumentParser", package: "swift-argument-parser")],
exclude: ["Info.plist"]
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.testTarget(
name: "DockUtilTests",
dependencies: ["DockUtil"],
exclude: ["Info.plist"]
dependencies: ["DockUtil"]
),
]
)
6 changes: 0 additions & 6 deletions Sources/DockUtil/DockUtil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ import Foundation
import ArgumentParser
import Darwin

#if SWIFT_PACKAGE
// FIXME: SPM does not support custom Info.plist since it will conflict with the generated one used by Xcode
// See more info here: https://forums.swift.org/t/add-info-plist-on-spm-bundle/40274/4
let VERSION = "3.0.2"
#else
let VERSION = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String
#endif
var gv = 0 // Global verbosity

struct DockAdditionOptions {
Expand Down
16 changes: 0 additions & 16 deletions Sources/DockUtil/Info.plist

This file was deleted.

22 changes: 0 additions & 22 deletions Tests/DockUtilTests/Info.plist

This file was deleted.

2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

xcodebuild -project dockutil.xcodeproj -scheme dockutil -configuration Release archive DEVELOPMENT_TEAM="Z5J8CJBUWC"
swift build -c release
Loading

0 comments on commit 230aca0

Please sign in to comment.