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

Failing to build Ejectify #80

Open
SukkaW opened this issue Oct 23, 2024 · 5 comments
Open

Failing to build Ejectify #80

SukkaW opened this issue Oct 23, 2024 · 5 comments

Comments

@SukkaW
Copy link

SukkaW commented Oct 23, 2024

I am more than happy to purchase Ejectify with 3 USD, but I want to give it a shot first, so I cloned the repo and tried to build using Xcode 16 with the following command:

# Since xcodeproj has codesign configured, I explicitly disabled signing
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

However, the build failed with LaunchAtLogin dependency:

** BUILD FAILED **


The following build commands failed:
	Copy /Users/[redacted]/ejectify-macos/build/Release/Ejectify.app/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle /Users/[redacted]/ejectify-macos/build/Release/LaunchAtLogin_LaunchAtLogin.bundle (in target 'Ejectify' from project 'Ejectify')
(1 failure)

Any clue about what happened?

@nielsmouthaan
Copy link
Owner

Builds fine using Xcode 16 here. It might be related to disabling code signing? Can you try to sign using your own ID?

@SukkaW
Copy link
Author

SukkaW commented Oct 24, 2024

Builds fine using Xcode 16 here. It might be related to disabling code signing? Can you try to sign using your own ID?

Thanks for your reply ❤️ !

I have noticed that codesigning is enabled in the project, but I don't want to change it. I am using the following command to explicitly disable codesigning with CLI:

xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

I am seeing the following stdout at the start of the build:

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    CODE_SIGN_IDENTITY =
    CODE_SIGNING_REQUIRED = NO

So it seems that the codesigning was disabled.

Also, it seems that the xcodebuild has failed to copy/link the LaunchAtLogin_LaunchAtLogin.bundle, and this happened before the Running Script (copy-helper-swiftpm.sh) was able to execute.

Copy /Users/[redacted]/ejectify-macos/build/Release/Ejectify.app/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle /Users/[redacted]/ejectify-macos/build/Release/LaunchAtLogin_LaunchAtLogin.bundle (in target 'Ejectify' from project 'Ejectify')
    cd /Users/[redacted]/ejectify-macos
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/[redacted]/ejectify-macos/build/Release/LaunchAtLogin_LaunchAtLogin.bundle /Users/[redacted]/ejectify-macos/build/Release/Ejectify.app/Contents/Resources
error: /Users/[redacted]/ejectify-macos/build/Release/LaunchAtLogin_LaunchAtLogin.bundle: No such file or directory (in target 'Ejectify' from project 'Ejectify')

@nielsmouthaan
Copy link
Owner

Sorry, I don't have time to support you with this. Please ask this question on SO, or something.

@rcoup
Copy link

rcoup commented Feb 4, 2025

IME:

  • In Xcode 16, create a personal dev account (Settings...Accounts... add personal account using your Apple ID)
  • Select the personal account under the Ejectify target: Signing & Capabilities... Signing... Team. Then for Signing Certificate select "Sign to Run Locally".

Image

  • Verify a build works via Product... Build For... Running
  • Create an archive via Product... Archive
  • In the archive window choose your build and select Distribute App... Custom... Copy App... and save it somewhere. Copy the app file from there to your Applications folder.

@SukkaW
Copy link
Author

SukkaW commented Feb 4, 2025

IME:

Thanks for your instruction!

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

3 participants