-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
[Suggestion] Facilitate the installation using CocoaPods #129
Comments
Hi there, It’s a good suggestion that I’m sure many would agree with. Ideally the code in the Pod would work out the architecture and injectionBundle name from the Swift version. If you want to have a go creating a pod and publishing it we can publicise it. |
Perfect! Thanks |
Hello @johnno1962 , I'm speaking about the latest build phase that is executed in the
Finally, you are always choosing the Thanks |
I think you'll find it difficult putting all of the injectionBundle inside the pod. What I was thinking of was just a snippet of code to load the injection bundle from the app bundle taking into account the OS, swift compiler version etc. There is no particular reason Debug configuration is used. |
Hello @johnno1962 , The bundle is composed of just 7 different files (classes). Finally another question, any particular reason why did you implement your own Socket? Thanks. |
Hi @fjtrujy, not sure I'd be happy if you tried to put all the InjectionBundle into a pod. It would create problems distributing and i'm sure you'll find it difficult (Xprobe?). Injection has it's own socket layer as it's a little unusual in that the clients app connects to the macOS app which then pushes to the client app which is an unusual paradigm. It's written in Objective-C as socket programming in Swift is more difficult than it needs to be. |
Hello @johnno1962 , I have finished most part of the work, at the end is not going to be needed to rewrite any class to swift. However, I think that there are a lot of things in the project that could be improved, this is a separate topic but I would like to discuss with you as well. Thanks |
Here you are the PR #136 |
Hello,
First of all, I would like to thank you for this amazing project.
This thread is just to ask your opinion about this idea.
When we want to make use of the
InjectionIII
, following the instructions we need to put in the AppDelegate:As you know, usually devs work within team, so we have several guys working under the same Project/repository.
Having in mind that the
path
of the bundle(s) are inside of theInjectionIII.app
, if we want to add these lines in the repository, it forces to rest of the guys to have theInjectionIII.app
exactly in the same folder/path.This is quite unflexible, my idea is to have these bundles in a separate
pod
, it obviously will require as well the use of theInjectionII.app
, but won't matter where it is physically locatted.On the other hand, I think that it also will help to have several versions of the bundles installed in different projects, and to have the dependency of the bundles at the repository level and not at the OS level.
In general, I would like to do the next steps to use your amazing tool in my projects.
Add in the
Podfile
pod InjectionIII
Add in the AppDelegate
and then in the applicationDidFinishLaunching
InjectionII
appIn this way, we can fully separate the bundle that we load in the iOS/tvOS/macOS project to the
InjectionIII.app
What do you think about this idea?
I'm more than happy to collaborate.
Thanks in advance
PS: You can take a look at how
Fabric
https://docs.fabric.io/apple/fabric/overview.html does it.It has from one side libraries added in the project using
CocoaPods
, and then finally an additionalBeta
https://docs.fabric.io/apple/beta/overview.html that performs as anXcode
plugin.The text was updated successfully, but these errors were encountered: