johnno1962 / InjectionIII

Re-write of Injection for Xcode in (mostly) Swift
MIT License
4.05k stars 319 forks source link

Bookmarking #522

Open ryanx2002 opened 3 weeks ago

ryanx2002 commented 3 weeks ago

Hey, running into an issue with newest Injection version:

Bookmarking failed for file:///Users/ryanx2002/Downloads/practice/, Error Domain=NSCocoaErrorDomain Code=256 "Failed to retrieve app-scope key" UserInfo={NSDebugDescription=Failed to retrieve app-scope key}

What could be the cause?

krzysztofzablocki commented 3 weeks ago

@johnno1962 I saw this on his machine and it was very weird, tried downloading new version of app, restarting etc. It got stuck on another project path that we opened initially and would never switch to new one, always throwing this error

johnno1962 commented 3 weeks ago

Strange, What version of Xcode & macOS & InjectionIII is this? Probably to do with "recent items" list? This shouldn't be a problem with the non-sandboxed versions (GitHub releases)

https://github.com/johnno1962/HotReloading/blob/main/Sources/injectiond/AppDelegate.swift#L332

krzysztofzablocki commented 3 weeks ago

Newest Injection from GitHub, I thought he had Mac App Store but we downloaded GH version and the issue happens there, Xcode doesn't matter since this happens at tool level, @ryanx2002 what's your OSX version?

jgonibemobile commented 2 weeks ago

i have exactly the same problem (osx 15.0.1, xcode 16.0 and injection 1.5.2)

johnno1962 commented 2 weeks ago

I've verified switching projects is still working for me with osx 15.0 so I'm at a loss to explain what the problem might be here. Have you tried resetting the defaults .plist. Sometimes switching from sandboxed to un-sandboxed it can get confused.

rm ~/Library/Preferences/com.johnholdsworth.InjectionIII.plist ~//Library/Containers/com.johnholdsworth.InjectionIII/Data/Library/Preferences/com.johnholdsworth.InjectionIII.plist

jgonibemobile commented 2 weeks ago

I don't know why, but 1h later, the app works fine 🤷🏻‍♂️

johnno1962 commented 2 weeks ago

Weird, what version is that? InjectionIII 1.5.2 is from 5 years ago!

jgonibemobile commented 2 weeks ago

5.0.2, excuse me

Perjan commented 1 week ago

Same here. CleanShot 2024-10-18 at 15 15 49@2x

johnno1962 commented 1 week ago

Hi, this is on Sonoma? Which version of Xcode/the app?

Perjan commented 1 week ago

I have Sonoma and Xcode 16.

On 18. Oct 2024, at 15:24, John Holdsworth @.***> wrote:

Hi, this is on Sonoma? Which version of Xcode/the app?

— Reply to this email directly, view it on GitHub https://github.com/johnno1962/InjectionIII/issues/522#issuecomment-2422470810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWK7OAR6PCVYCRSOP46VHLZ4EDXRAVCNFSM6AAAAABPMET7YCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRSGQ3TAOBRGA. You are receiving this because you commented.

johnno1962 commented 1 week ago

There doesn't seem to be a ready explanation for this. Any chance you would be prepared to switch to https://github.com/johnno1962/InjectionNext in the interim which shouldn't give you this problem.

johnno1962 commented 1 week ago

I've uploaded a new release candidate that should at least make this error "go away" though I'm still not sure what the underlying problem is with Sequoia/Xcode 16. https://github.com/johnno1962/InjectionIII/releases/tag/5.0.4RC1

johnno1962 commented 3 days ago

Did anybody get a chance to try the new release candidate? It shouldn't report this error but does it work with Sequoia?