theos / orion

Elegant tweak development in pure Swift
https://orion.theos.dev
MIT License
205 stars 15 forks source link

Just a question, I use monkeydev for Xcode, will I be able to use orion?? if so how? #22

Open recoveryawareness opened 1 year ago

recoveryawareness commented 1 year ago

Just a question, I use monkeydev for Xcode, will I be able to use orion?? if so how? as my entire project is made on Xcode (monkey dev)

kabiroberai commented 1 year ago

This should be possible in theory. First you'll want to download Orion.framework from the latest release and link against it as you would any other framework.

The next thing you'll need to do is run the Orion preprocessor against any *.x.swift files in your project. Since you're using Xcode, you might be able to add Orion (i.e. this GH repo) as an SPM dependency to your project, and add OrionPlugin as a plugin to your target, which should automatically post-process any x.swift files for you.

Finally, make sure to add dev.theos.orion (>= 1.0.0) as a dependency in your control file.

recoveryawareness commented 1 year ago

So I managed to get it set up, but now im running into an issue with Generated.xc.swift file saying "Cannot find type 'MyHook' in scope" which causes it not to compile...

here is the project https://github.com/recoveryawareness/atebitsy I use this https://github.com/lemon4ex/EasyDev/tree/xcode14 so I can do everything I need to do with the project on Xcode.