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

Support for visionOS #477

Closed
Perjan opened this issue Jan 17, 2024 · 10 comments
Closed

Support for visionOS #477

Perjan opened this issue Jan 17, 2024 · 10 comments

Comments

@Perjan
Copy link

Perjan commented Jan 17, 2024

Currently visionOS is not supported. I was wondering if there is any plan to support it?

If I run the app in the simulator, Xcode prints a warning like this
Error loading /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection (82): dlopen(/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection, 0x0109): tried: '/Users/perjanduro/Library/Developer/Xcode/DerivedData/MoneySpace-aksawvfkswfduugalzgqfgxexrtf/Build/Products/Debug-xrsimulator/iOSInjection' (no such file), '/Library/Developer/CoreSimulator/Volumes/xrOS_21N305/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/iOSInjection' (no such file), '/Library/Developer/CoreSimulator/Volumes/xrOS_21N305/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/Resources/RuntimeRoot/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection' (no such file), '/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection' (mach-o file (/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection), but incompatible platform (have 'iOS-sim', need 'xrOS-sim'))

Thanks for this amazing tool. It has already saved me tons of time.

@johnno1962
Copy link
Owner

johnno1962 commented Jan 17, 2024

Hi, This is interesting. I thought I found you could use the iOSInjection.bundle in the past. Which version of Xcode is this? I'll add a new bundle to the build script. In the meantime you can add the https://github.com/johnno1962/HotReloading project which is InjectionIII as a swift package which seems to work with Xcode 15.2. I'll get back to you about the bundle.

@Perjan
Copy link
Author

Perjan commented Jan 17, 2024

I have the latest Xcode version, 15.2.
I am using the Inject package by Krzysztof Zabłocki.

@johnno1962
Copy link
Owner

I'm nearly at the point where I can make a release candidate supporting an xrOSInjection.bundle in the InjectionIII.app though Inject itself will need a minor change to switch to loading it. If you can hang till tomorrow then wait otherwise see how you go using the HotReloading project.

@Perjan
Copy link
Author

Perjan commented Jan 17, 2024

I can wait until tomorrow, no worries ;), Looking forward to the new version. Please let me know when you release it. Thanks again John.

@johnno1962
Copy link
Owner

johnno1962 commented Jan 17, 2024

We're nearly there, the new release candidate is available and I have a fork of Inject you can use for now. Let me know how you get on.

@johnno1962
Copy link
Owner

johnno1962 commented Jan 17, 2024

OK, Inject is merged you should just be able to "update package" (+set branch to main as there is no tag yet) once you've downloaded the app.

@johnno1962
Copy link
Owner

@Perjan, have you ever wanted to inject on a visionOS device? It may work. If you're interested I can talk you through it as I'm curious if it works myself. There is a new release candidate with support for this in theory and you should be able to follow the instructions in the project README for injection on an iOS device.

@Perjan
Copy link
Author

Perjan commented Feb 28, 2024

Yes, but I don't have yet a device :(

@johnno1962
Copy link
Owner

Ah, that rather puts a cap on that! When you get one let me know and we can try it out.

@johnno1962
Copy link
Owner

FYI, seems you could already inject on Vision PRO is you use the HotReloading project. #490 (comment)

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

2 participants