Comments (17)
Sorry, I can't upload a release candidate today as @github seems to be broken. Will try again later.
from injectioniii.
Hi Paul, not sure what's happening there. I assume you tried the "Runtime Search paths" fix? If you can hang tight for a bit there is something new in the pipeline that can be worked on more easily.
from injectioniii.
In terms of an ETA, I imagine I'll be releasing the next-gen version of Injection as soon as I know it works with Xcode 16.
from injectioniii.
Hi, what version of Xcode is this? I'll look at modifying the "rpath" of the injection bundle to cater for this but in the meantime you should be able to add a Debug config "rpath" (Runpath Search Paths build setting) to your app of: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphoneos
.
Any chance you have a small example program that replicates this problem I can look at?
from injectioniii.
This is on Xcode 15.4. I can confirm that adding the Debug config rpath as you suggested fixes it.
So far I'm failing to create a small example program that replicates, when I strip my app down to the bare bones I seem to be also stripping out whatever is causing the problem. Happy to try to do whatever else might help if there is anything else?
from injectioniii.
Never mind about a replicator as this is a small change. I'll push a new release candidate if you could test if later today.
from injectioniii.
thanks! will do.
from injectioniii.
I've been able to upload the new pre-release using an old version of Safari 🤷♂️. When you get a chance can you try it out with your rpath override removed? https://github.com/johnno1962/InjectionIII/releases/tag/5.0.1RC1
from injectioniii.
wow! Tested and confirmed working. Thank you!
from injectioniii.
👍
from injectioniii.
Just a heads up that if I build on the simulator and just leave it sitting there I'll see the same errors filling up my logs:
💉 ⚠️ dlopen() error: dlopen(/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/F3B0C177-1985-4929-A02A-D6D3D01FA48D/tmp/eval101.dylib, 0x0002): Library not loaded: @rpath/libswift_Concurrency.dylib
Referenced from: <52B1B6AE-5ADD-3E33-A130-C2765181A296> /Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/F3B0C177-1985-4929-A02A-D6D3D01FA48D/tmp/eval101.dylib
Reason: tried: '/Users/paul/Library/Developer/Xcode/DerivedData/Siv-gcyyqfuiqnspnmeimxcssicloaab/Build/Products/Debug-iphonesimulator/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/F3B0C177-1985-4929-A02A-D6D3D01FA48D/tmp/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/F3B0C177-1985-4929-A02A-D6D3D01FA48D/tmp/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/F3B0C177-1985-4929-A02A-D6D3D01FA48D/tmp/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/F3B0C177-1985-4929-A02A-D6D3D01FA48D/tmp/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Users/paul/Library/Developer/Xcode/DerivedData/Siv-gcyyqfuiqnspnmeimxcssicloaab/Build/Products/Debug-iphonesimulator/PackageFrameworks/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/Xcode/DerivedData/Siv-gcyyqfuiqnspnmeimxcssicloaab/Build/Products/Debug-iphonesimulator/PackageFrameworks/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Bundle/Application/87409E6B-5F37-428F-A87D-0F972D7E095C/Siv.app/Frameworks/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Bundle/Application/87409E6B-5F37-428F-A87D-0F972D7E095C/Siv.app/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libswift_Concurrency.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libswift_Concurrency.dylib' (no such file)
But then as soon as I go into a file with @ObserveInjection var redraw and make changes it happily shows
💉 Compiling /Users/paul/Siv/siv-ios/Siv/Siv/Features/Main/CustomTabBar.swift
💉 Loading .dylib ...
💉 Interposed 20 function references.
💉 Injected type #1 'Siv.CustomTabBar'
💉 Injected type #2 'Siv.CustomTabItem'
then works as expected. So very much working for me, but I imagine if a new user setting up sees those messages they may not realize that everything will still work.
from injectioniii.
Yeah that's weird. Xcode autosaves files from time to time which would trigger an injection. Does it tell you what file it's recompiling? Does that make sense? I don't know what sort of file would cause the problem to come back though.
from injectioniii.
Ah I see that Inject just conveniently told me:
💉 Compiling /Users/paul/Siv/siv-ios/Siv/Siv/Data/SivRepository.swift
💉 Loading .dylib ...
💉 ⚠️ dlopen() error: dlopen(/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/C56500DC-6F79-477C-9786-752ED701A3C0/tmp/eval107.dylib, 0x0002): Library not loaded: @rpath/libswift_Concurrency.dylib
but that file is purely backend. I can put it up temporarily here if that is helpful at all.
from injectioniii.
Not sure how much this is a problem worth fixing for everyone or just a problem unique to me but it is broken again for reasons I can't figure out:
💉 ⚠️ dlopen() error: dlopen(/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/B9E97AC2-D606-43F9-9A92-7E46922738BD/tmp/eval101.dylib, 0x0002): Library not loaded: @rpath/libswift_Concurrency.dylib
Referenced from: <3A8C3243-90E6-3765-A159-C63D18E39C49> /Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/B9E97AC2-D606-43F9-9A92-7E46922738BD/tmp/eval101.dylib
Reason: tried: '/Users/paul/Library/Developer/Xcode/DerivedData/Siv-gcyyqfuiqnspnmeimxcssicloaab/Build/Products/Debug-iphonesimulator/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/B9E97AC2-D606-43F9-9A92-7E46922738BD/tmp/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/B9E97AC2-D606-43F9-9A92-7E46922738BD/tmp/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/B9E97AC2-D606-43F9-9A92-7E46922738BD/tmp/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Data/Application/B9E97AC2-D606-43F9-9A92-7E46922738BD/tmp/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Users/paul/Library/Developer/Xcode/DerivedData/Siv-gcyyqfuiqnspnmeimxcssicloaab/Build/Products/Debug-iphonesimulator/PackageFrameworks/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/Xcode/DerivedData/Siv-gcyyqfuiqnspnmeimxcssicloaab/Build/Products/Debug-iphonesimulator/PackageFrameworks/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphoneos/libswift_Concurrency.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphoneos/libswift_Concurrency.dylib' (mach-o file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphoneos/libswift_Concurrency.dylib), but incompatible platform (have 'iOS', need 'iOS-sim')), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Bundle/Application/3245320F-0413-4130-B738-5D23BAC93BCD/Siv.app/Frameworks/libswift_Concurrency.dylib' (no such file), '/Users/paul/Library/Developer/CoreSimulator/Devices/F16469C4-F7D9-4403-979C-390667F3863C/data/Containers/Bundle/Application/3245320F-0413-4130-B738-5D23BAC93BCD/Siv.app/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libswift_Concurrency.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libswift_Concurrency.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libswift_Concurrency.dylib' (no such file)
💉 ⚠️ Clean build folder when switching platform
This is when I save a file that actually is a view and right after cleaning the build folder.
from injectioniii.
Sounds good! I'll keep working with it and see if I can figure anything out in the mean time. Now that I've tried InjectionIII, I can't imagine going back to the old way, even with the errors I'm hitting.
from injectioniii.
Related Issues (20)
- Loading .dylib has failed HOT 15
- EOF received from server.. HOT 2
- Setting up for macOS app dev HOT 21
- Is there a way to make injected macOS app not become active when it's reloaded? HOT 2
- Re-compilation failed HOT 5
- InjectionClient/Could not connect: Connection refused 🔥 HOT 18
- Hello, I reported the error when I used the real machine to debug, looking forward to your answer, thank you HOT 6
- Meaning of colors HOT 2
- It doesn't work on Xcode 15.3 iOS 17.4 HOT 14
- It doesn't work on xcode 15.3 (15E204a) HOT 7
- Loading .dylib has failed HOT 1
- TCA ObservableState crash HOT 3
- Unknown argument: -interposable HOT 2
- Could not bind service socket: Address already in use HOT 5
- Is support arm mac??? HOT 19
- ld: building for 'iOS', but linking in object file built for 'visionOS-simulator' HOT 5
- SwiftUI `onChange` is not called after injection HOT 1
- often crash when a injected objc class dealloc HOT 5
- I updated xcode15.4 with an error message HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from injectioniii.