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

Debug compiled app dosn't start #2126

Closed
andreasbica opened this issue May 15, 2022 · 3 comments
Closed

Debug compiled app dosn't start #2126

andreasbica opened this issue May 15, 2022 · 3 comments
Labels
2.x Sparkle 2.0

Comments

@andreasbica
Copy link

andreasbica commented May 15, 2022

Description of the problem

When I start my app in debug mode, I get this error:

dyld[4046]: Library not loaded: @rpath/Sparkle.framework/Versions/B/Sparkle
  Referenced from: /Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/MacOS/Bushfire
  Reason: tried: '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Sparkle.framework/Versions/B/Sparkle' (no such file), '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/B/Sparkle' (code signature in <E31C20B8-205C-398E-97D3-833E34BFD904> '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/B/Sparkle' (code signature in <E31C20B8-205C-398E-97D3-833E34BFD904> '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/B/Sparkle' (code signature in <E31C20B8-205C-398E-97D3-833E34BFD904> '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/B/Sparkle' (code signature in <E31C20B8-205C-398E-97D3-833E34BFD904> '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Library/Frameworks/Sparkle.framework/Versions/B/Sparkle' (no such file), '/System/Library/Frameworks/Sparkle.framework/Versions/B/Sparkle' (no such file)
(lldb) 

When I try to start the app directly, I get this error in console:

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/Sparkle.framework/Versions/B/Sparkle

When I compile a release app, it works fine.
No error, no crashes ...

Do you use Sandboxing in your app?

Version of Sparkle.framework in the latest version of your app

2.1.0

Sparkle's output from Console.app

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/Sparkle.framework/Versions/B/Sparkle

Steps to reproduce the behavior

Try to debug a app.

@andreasbica andreasbica added the 2.x Sparkle 2.0 label May 15, 2022
@zorgiepoo
Copy link
Member

zorgiepoo commented May 15, 2022

(code signature in '/Developer/Xcode/DerivedData/MyApp-fobttzzrjezhxcfnefihubcnddjy/Build/Products/Debug/Bushfire.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)

Check #2056 (comment)

I plan on documenting this better eventually in sparkle-project/sparkle-project.github.io#133

@andreasbica
Copy link
Author

andreasbica commented May 15, 2022

Thx for your feedback, it was helpful. Now, this works fine for me 👍
and I can debugging :)

Bildschirmfoto 2022-05-15 um 17 36 57

@zorgiepoo
Copy link
Member

Documented on our basic setup now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Sparkle 2.0
Projects
None yet
Development

No branches or pull requests

2 participants