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
When will the CocoaPod be released? #12
Comments
TBH. CocoaPod is finicky to setup and maintain. Carthage is so much faster to setup when you make frameworks. Cocoapods are easy to use for consumers tho. Anyways. If you manually download the project. Then you should be able to run it out of the box on your iPhone. If you want to add the library files to your own project then maybe this will help: http://eon.codes/blog/2018/09/30/Manually-adding-a-lib/ |
Might even be able to just drag in the hybridcamlib.framework and with.framework files to your Xcode project. If you don’t want to use carthage. |
@eonist Yes, CocoaPods is a lot easier to use... but I could bet I'm not the only one struggling with this issue when confronted with this problem. Anyway, I managed to run the project out of the box now. However, integrating it into my own project still seems impossible. I dragged the |
The .framework files must be in the embedded frameworks and linked frameworks listings. Also a xcode clean could help: |
@eonist I've tried pretty much everything now. I've tried installing it with carthage but got an error when running |
I’ll have a look. |
I renamed the repo some time ago from HybridCam to HybridCamera. The readme didn't reflect this. |
Awesome! I'm sorry for taking so much of your time! But I never worked with Carthage and I was somewhat happy to find out that the installation error wasn't caused by me, was seriously getting worried there... I'm looking forward to working with the pod (your code is very clean 😌) and might even suggest adding some features that I think might be useful for others (like e.g. mirroring front camera input) if I have enough time. |
Frameworks can be finicky in Xcode. Feel free to add cocoa support. A GitHub member added it to this repo a few weeks back: https://github.com/eonist/FileWatcher And good luck. Camera api takes some serious focus to get right. I spent like a week with super focus in the "cave" setting up this framework. |
Alright, I just need to know one more thing: How can I modify the files? 😅 Currently, if I try to edit them in the |
Feel free to ask away. I'm on vacay so I have time.
Personally I use nr.3. but that's because I manage all dependencies and projects through Carthage. It's the way we are suppose to do things in 2019 and beyond. With hierarchies of packages. Reusing code. Never repeating our selfs. All other strategies leads to monolithic structures and copy pasta code. IMO 😬 I would recommend strategy nr.1 in your case, as I presume you are in the beginning stages of an app idea and just want to prototype and see if something can work. |
Awesome, really appreciate your support! Since I'm a Carthage expert now, I'll try 3. first 😄 if I don't get it to work, I can still go back to 1. or 2. |
|
|
|
I have just created a pull request regarding the mirroring. The thing is, the demo is almost done. I've got lots of code leftover from a previous camera library I worked with and not being able to flip the camera while recording was pretty much the only thing that bothered me a little with this library (because many apps that a lot of people are used to like Snapchat and Instagram offer it and being able to do it seems so convenient). Anyway, I'll look into it some time if you currently think it's better to finish it first 😅 |
I never knew you could switch the cam while filming in instagram. I never saw a video of anyone doing it either. 🤷 But its a cool feature 4 sure. |
I'm feeling slightly embarrassed but I never had to work without CocoaPods yet and somehow cannot install it. I stumbled upon this pod on SO and seriously fell in love with it at first sight. Now I'm somewhat disappointed that I'm apparently too dumb to install the pod without my beloved CocoaPods. I tried downloading the project, opened the
HybridCamera.xcodeproj
but how do I get this installed to my project? I also wanted to just see what theVC.swift
file looks like but I couldn't run it on my iPhone either (underHybridCameraTest
it saysNo such module 'HybridCamLib'
and underHybridCamLib
it saysBuild input files cannot be found: ...
). I would really appreciate if you could help me and I'm seriously sorry for wasting your time.The text was updated successfully, but these errors were encountered: