stats icon indicating copy to clipboard operation
stats copied to clipboard

About contributing to the project

Open AhmedAbouelkher opened this issue 10 months ago • 8 comments

I've been using stats for more than 2 years now and I love it.

I recently tried running the source code on my machine and encountered several issues while doing this.

It would be great if you added a section in README.md showing the steps to clone, explore, and run the project.

AhmedAbouelkher avatar Apr 06 '24 20:04 AhmedAbouelkher

Hi. Thanks for the feedback) Yeap, I think it could be added.

exelban avatar Apr 07 '24 09:04 exelban

Hi. Thanks for the feedback) Yeap, I think it could be added.

Are there any updates regarding the build and run process?

AhmedAbouelkher avatar Apr 19 '24 11:04 AhmedAbouelkher

hmm, there must be no problem with building and running. Clone the project -> open Xcode -> select profile -> build/run

exelban avatar Apr 19 '24 14:04 exelban

hmm, there must be no problem with building and running. Clone the project -> open Xcode -> select profile -> build/run

Thanks for your quick reply. I already tried to do so. Changed the signing certificate to Sign to Run Localy for all modules and started the build process. I encountered these errors:

<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "PrivateHeaders/Kit.h"
        ^
/Users/ahmedmahmoud/Developer/macos_apps/stats/Kit/Supporting Files/Kit.h:20:9: error: include of non-modular header inside framework module 'Kit': '/Users/ahmedmahmoud/Developer/macos_apps/stats/Kit/lldb/lldb.h'
#import "lldb.h"
        ^
<unknown>:0: error: could not build Objective-C module 'Kit'
Screenshot 1

Screenshot 2024-04-19 at 22 08 41

Include of non-modular header inside framework module 'Kit': '/Users/ahmedmahmoud/Developer/macos_apps/stats/Kit/lldb/lldb.h'
Screenshot 2

Screenshot 2024-04-19 at 22 09 32

This is the file structure for level DB lldb

Screenshot 3

Screenshot 2024-04-19 at 22 14 30

My Specs:

macOS: Ventura 13.3.1 (22E261) Xcode: 14.3.1

Clang

Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Applications/Xcode 14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

make

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

AhmedAbouelkher avatar Apr 19 '24 20:04 AhmedAbouelkher

Oh, why do you change the signing certificate?

Try this: target-> build settings->Allow non-modular includes in Framework Modules switch to YES

exelban avatar Apr 21 '24 11:04 exelban

@exelban

Oh, why do you change the signing certificate?

Try this: target-> build settings->Allow non-modular includes in Framework Modules switch to YES

I appreciate your suggestion.

When running the project directly without changing the signing cert to Sign to Run Localy .

Screenshot 1

Screenshot 2024-04-22 at 09 48 16


I tried changing Allow non-modular includes in Framework Modules to YES but the issue persists.

I had to change the signing certificate to Sign to Run Locally for all modules and started the build process.

Screenshots 2-3

Screenshot 2024-04-22 at 09 46 13 Screenshot 2024-04-22 at 09 44 46

AhmedAbouelkher avatar Apr 22 '24 07:04 AhmedAbouelkher

You have selected the signing certificate as the developer id. So you need to specify the team. Just select Sign to Run Locally and team as None.

exelban avatar Apr 22 '24 08:04 exelban

You have selected the signing certificate as the developer id. So you need to specify the team. Just select Sign to Run Locally and team as None.

Already did that and tried to build the project, but then I encountered errors in Screenshots 2-3.

AhmedAbouelkher avatar Apr 22 '24 17:04 AhmedAbouelkher

Hi. I just have a fresh install on a new Mac. And everything works just fine without any tweaks. So I don't see a reason for that.

exelban avatar Jun 30 '24 11:06 exelban