[GH-ISSUE #335] build issues and question regarding build process #185

Closed
opened 2026-03-03 01:10:45 +03:00 by kerem · 1 comment
Owner

Originally created by @tessus on GitHub (Jan 13, 2019).
Original GitHub issue: https://github.com/Clipy/Clipy/issues/335

I've been trying to build Clipy for a while now and with #315 I was able to compile it.
(Xcode 9 was updated months ago, even on macOS 10.13.x, so I don't have Xcode 9 anymore - anywhere.)

However there are several issues:

When I build it on the command line with command:
xcodebuild -workspace Clipy.xcworkspace -scheme Clipy build
a build directory is supposed to be created in the root directory of the repo, but it still uses the ~/Library/Developer/.. dir. But at least there's a working binary at /Users/tessus/Library/Developer/Xcode/DerivedData/Clipy-frzrgxwvkiemzlccfyrxmidnzfnb/Build/Products/Debug.

Anyway, then I tried to create a release build, since I don't necessarily need debug symbols in the binary. I ran the command:
xcodebuild -workspace Clipy.xcworkspace -scheme Clipy -configuration "Release" build
which failes with the following error:

[snip]
/Users/tessus/data/work/Clipy/ClipyTests/FolderSpec.swift:4:18: error: module 'Clipy' was not compiled for testing
@testable import Clipy
                 ^
/Users/tessus/data/work/Clipy/ClipyTests/HotKeyServiceSpec.swift:5:18: error: module 'Clipy' was not compiled for testing
@testable import Clipy
                 ^
/Users/tessus/data/work/Clipy/ClipyTests/SnippetSpec.swift:4:18: error: module 'Clipy' was not compiled for testing
@testable import Clipy
                 ^
/Users/tessus/data/work/Clipy/ClipyTests/DraggedDataSpec.swift:3:18: error: module 'Clipy' was not compiled for testing
@testable import Clipy
                 ^

** BUILD FAILED **


The following build commands failed:
	CompileSwift normal x86_64
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

However, guess what. There's a working binary in /Users/tessus/Library/Developer/Xcode/DerivedData/Clipy-frzrgxwvkiemzlccfyrxmidnzfnb/Build/Products/Release!

Wow, I'm rather confused now. How is your build process working? I'm just asking, because I usually like to create a Makefile to make the build process easier. But I'm currently at a loss how to accomplish this with Clipy. Also, why do I get a working release binary, even though the build process fails. Very strange, indeed.

e.g. in one of my projects, the following Makefile works like a charm.

Sorry for the rather long wall of text, but I'm curious what is going on. I'd appreciate any help and explanation.

Originally created by @tessus on GitHub (Jan 13, 2019). Original GitHub issue: https://github.com/Clipy/Clipy/issues/335 I've been trying to build Clipy for a while now and with #315 I was able to compile it. (Xcode 9 was updated months ago, even on macOS 10.13.x, so I don't have Xcode 9 anymore - anywhere.) However there are several issues: When I build it on the command line with command: `xcodebuild -workspace Clipy.xcworkspace -scheme Clipy build` a build directory is supposed to be created in the root directory of the repo, but it still uses the `~/Library/Developer/..` dir. But at least there's a working binary at `/Users/tessus/Library/Developer/Xcode/DerivedData/Clipy-frzrgxwvkiemzlccfyrxmidnzfnb/Build/Products/Debug`. Anyway, then I tried to create a release build, since I don't necessarily need debug symbols in the binary. I ran the command: `xcodebuild -workspace Clipy.xcworkspace -scheme Clipy -configuration "Release" build` which failes with the following error: ``` [snip] /Users/tessus/data/work/Clipy/ClipyTests/FolderSpec.swift:4:18: error: module 'Clipy' was not compiled for testing @testable import Clipy ^ /Users/tessus/data/work/Clipy/ClipyTests/HotKeyServiceSpec.swift:5:18: error: module 'Clipy' was not compiled for testing @testable import Clipy ^ /Users/tessus/data/work/Clipy/ClipyTests/SnippetSpec.swift:4:18: error: module 'Clipy' was not compiled for testing @testable import Clipy ^ /Users/tessus/data/work/Clipy/ClipyTests/DraggedDataSpec.swift:3:18: error: module 'Clipy' was not compiled for testing @testable import Clipy ^ ** BUILD FAILED ** The following build commands failed: CompileSwift normal x86_64 CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (2 failures) ``` However, guess what. There's a working binary in `/Users/tessus/Library/Developer/Xcode/DerivedData/Clipy-frzrgxwvkiemzlccfyrxmidnzfnb/Build/Products/Release`! Wow, I'm rather confused now. How is your build process working? I'm just asking, because I usually like to create a `Makefile` to make the build process easier. But I'm currently at a loss how to accomplish this with Clipy. Also, why do I get a working release binary, even though the build process fails. Very strange, indeed. e.g. in one of my projects, the following [Makefile](https://github.com/tessus/MongoDB-prefPane/blob/master/Makefile) works like a charm. Sorry for the rather long wall of text, but I'm curious what is going on. I'd appreciate any help and explanation.
kerem closed this issue 2026-03-03 01:10:45 +03:00
Author
Owner

@tessus commented on GitHub (Mar 4, 2020):

Project dead. Thanks for all the fish.

<!-- gh-comment-id:594762455 --> @tessus commented on GitHub (Mar 4, 2020): Project dead. Thanks for all the fish.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Clipy#185
No description provided.