ibm-watsoncarthage

Carthage update takes forever and I don't use but two of the services at the moment


Is there some way I can just use a portion of the watson ios sdk? Carthage update downloads and builds about 10+ services that I'm not using and the "All Services" build takes forever. Is there a way I can cut down the time and specify only the services I use in my app? (I'm guessing no, but it sure would be nice!)


Solution

  • Thanks for mentioning the hassle you've experienced with the build process, @troyd. It's always good to hear from users, whether for better or for worse--it really helps us to identify and prioritize issues.

    The Carthage build process has definitely been a major pain point with the Watson Developer Cloud iOS SDK, and we've been trying to improve it for some time. I think it's gotten better with recent releases.

    Can you try using the v0.7.0 release (for Xcode 7 / Swift 2.2) or v0.8.0 release (for Xcode 8 / Swift 2.3)? We removed the "All Services" target and started including binaries with each GitHub release.

    I'd love to hear your thoughts on the build process with one of the newer releases. It should be much faster, since it will only build the dependencies (Alamofire, Freddy, Starscream) then download the Watson frameworks.

    Unfortunately, there is no way to choose the services to build short of separating each service into its own repository (which isn't on the roadmap right now).