Is there a way to use a dependency only in development? I don't want to ship the Reveal SDK :/
I'm searching for something similar to
#ifdef DEBUG
Can't find anything in the cocoapods docs.
Looks like it's scheduled for next release. See here:
https://github.com/CocoaPods/CocoaPods/issues/731
There is an issue on the CocoaPods github that is discussing the ability to dynamically link a pod based on the selected build configuration, but there is currently no release that supports this feature. According to the maintainers, the feature will be released in the next version of CocoaPods.
Related
Sorry to bother with basic question.
would like to know which version of any cocoapods, suits particular xcode version. If I know the exact podfile version for my xcode directly can be used without any interruption
I would suggest to save everybody and yourself a lot of trouble and use a fairly recent verion of both xcode and cocoapods.
When Xcode is used to build an iOS framework, the end result is a package on the disk similar to the following:
Is it possible for me to give that package to another developer and have him/her include it in their own Xcode projects?
[I am having trouble doing that. Hence this question. The lack of an answer lead me to distill it to its essence and post a new, simpler question.]
So, the answer to my question is a definite Yes. I now know this because Carthage can do it. Upon remembering that Carthage does exactly what I am trying to do, I used Carthage to build my framework and Voila! - I can drag/drop the Carthage build of my framework into an Xcode project and successfully use it. So now my inquiry has become: What does Carthage know that I do not?
Update
Mystery solved! The framework and application architectures were mismatched. See this question for a bit more info.
Since Microsoft's WinObjC is still under development, they have not supported third party library like AFNetworking. Is there any other way around to use already existing AFNetworking in iPhone. And, is Pods supported in the latest WinObjC library?
I work on the iOS bridge project at Microsoft. AFNetworking isn't currently supported so you won't be able to reuse those parts of your codebase at the moment, but it's a big priority for us and we're looking to add support in the next few months. You can see our current roadmap here:
https://github.com/Microsoft/WinObjC/wiki/Roadmap
We also don't currently support CocoaPods since our clang compiler front end doesn't support virtual filesystems, which CocoaPods depends on. Again, this is a feature request we get a lot so it's a top priority for us.
Thanks for checking out the project – if you have any other questions, comments or suggestions, feel free to file issues on Github!
https://github.com/Microsoft/WinObjC/
I need to integrate Google+ iOS SDK using Cocoapods but the link provided doesn't have any information about an official pod.
I searched and found official pods by Google but there is no sign of the G+ SDK. Then I found this pod and I'm not sure if it is safe to use or not as it is not maintained by Google.
If you look at the version you provided in the first link, the name of the file itself contains 1.7.1. The version on the CocoaPods site is marked as 1.7.1. That's a good sign.
None of the people mentioned as maintainers of the pod are actually working in Google. That's a bad sign. At this point we don't know anything.
So after certain searching online, you'll find that the podspec, in fact, is in this repository. It is somebody else, who takes Google's code and puts it into his repo on GitHub.
Answers for you:
Is it safe? Probably yes, but it's not 100%. The code is visible in public repo, so the chances are really high that it is safe.
Is it maintained by Google? Nope.
I have a non-ARC project and i need to integrate Facebook SDK. As i understand, current version of framework (3.0.8) is to be used with ARC enabled. But i took a look at github master branch (actually both - master and preview) and... there are lots of retain/release/autorelease calls there and the project's 'Objective-C Automatic Reference Counting' is turned off.
So i guess, it doesn't support ARC from scratch and we need to run special script to build static library as boz mentioned. But 1 - there's no such script there anymore, 2 - examples on the same branch of github use ARC! As for me - it's better just use non-ARC sources from github, but is it guaranteed that everything will work fine? It's weird: original github source code is non-ARC, but samples are ARC-oriented. Thanks.
You can use the Facebook SDK whether your project is enabled for ARC or not. Just grab the SDK package from https://developers.facebook.com/ios (iOS dev center). Once you've downloaded and installed the SDK you can just follow the instructions in the Getting Started docs (under the iOS dev center) to set the SDK up.