GithubHelp home page GithubHelp logo

Comments (17)

johnno1962 avatar johnno1962 commented on July 22, 2024 1

Sorry, I can't upload a release candidate today as @github seems to be broken. Will try again later.

from injectioniii.

johnno1962 avatar johnno1962 commented on July 22, 2024 1

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.

johnno1962 avatar johnno1962 commented on July 22, 2024 1

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.

johnno1962 avatar johnno1962 commented on July 22, 2024

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.

paul-brenner avatar paul-brenner commented on July 22, 2024

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.

johnno1962 avatar johnno1962 commented on July 22, 2024

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.

paul-brenner avatar paul-brenner commented on July 22, 2024

thanks! will do.

from injectioniii.

johnno1962 avatar johnno1962 commented on July 22, 2024

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.

paul-brenner avatar paul-brenner commented on July 22, 2024

wow! Tested and confirmed working. Thank you!

from injectioniii.

johnno1962 avatar johnno1962 commented on July 22, 2024

👍

from injectioniii.

paul-brenner avatar paul-brenner commented on July 22, 2024

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.

johnno1962 avatar johnno1962 commented on July 22, 2024

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.

paul-brenner avatar paul-brenner commented on July 22, 2024

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.

paul-brenner avatar paul-brenner commented on July 22, 2024

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.

paul-brenner avatar paul-brenner commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.