Giter Club home page Giter Club logo

Comments (11)

abbasmousavi avatar abbasmousavi commented on June 17, 2024 2

@mxcl please take a look at #52. I am not familiar with tuist/xcodeproj, I have tried to follow the patterns in the code and I have tested the result on a simple cocoapods project and it worked. please let me know if it needs anything to be added or changed.

from cake.

mxcl avatar mxcl commented on June 17, 2024 1

The XcakeProject module is where we generate the Cake.xcodeproj, in there we will need to detect if the prefix is a Pods project, depend on the external target in the Pods xcodeproj and (maybe) add some link/include paths.

from cake.

mxcl avatar mxcl commented on June 17, 2024 1

The scenario in my mind is to use cocoapods for 3rd party libraries and Cake to modularize my code. So for start, it is enough if the project builds with Cocoapods and Cake at the same time.

Yeah, so your modules (the Batter) will need that the Pods build first (the target dependency) and that they can see the Pods (so add search paths). Then it should work.

from cake.

mxcl avatar mxcl commented on June 17, 2024 1

we need to have access to pods from all modules inside Batter, so maybe we should add dependency and search paths to all modules in Batter?

Yes, all batter modules will need this. We have a loop or two already in there for Batter modules, so you can add the dependency there.

I have tried adding Pod.framework as a dependency to Batter and adding search paths to it, but it does not work.

What's the error?

Would you please take a look at this? what should be added to this project in order to have access from inside Bar module to Alamofire?

K, so you mean the link you provided?

from cake.

mxcl avatar mxcl commented on June 17, 2024 1

This works: https://github.com/mxcl/CakePods

I had to:

  • Add the Pods project to the Cake project
  • Add the Pod xcconfig files to the Cake project
  • Make the project settings use the xcconfig files
  • Make all Batter targets depend on CakePods-Pods

from cake.

mxcl avatar mxcl commented on June 17, 2024 1

Note when opening it don’t have Cake.app running or it will regenerate Cake.xcodeproj and the changes will be lost.

from cake.

mxcl avatar mxcl commented on June 17, 2024 1

LMK if I can help, I found figuring out how to make xcodeprojs quite tricky.

We use tuist/xcodeproj, but I made a facade wrapper (module: XcodeProject) that should be capable of all the above (I believe).

from cake.

mxcl avatar mxcl commented on June 17, 2024

Yes, but the Batter (currently) cannot use CocoaPods since it cannot see the Pod libraries.

We can probably make this automatic, if we detect the Pods directory we could its Pods target as a dependency of the Batter.

Longer term I’d like the Cakefile to be able to specify pods as dependencies.

from cake.

abbasmousavi avatar abbasmousavi commented on June 17, 2024

@mxcl The scenario in my mind is to use cocoapods for 3rd party libraries and Cake to modularize my code. So for start, it is enough if the project builds with Cocoapods and Cake at the same time.

I can start work on this, can you guide me where to look in the code?

from cake.

abbasmousavi avatar abbasmousavi commented on June 17, 2024

@mxcl I have a sample project here: https://github.com/abbasmousavi/CakePods
It has some pods and is integrated with Cake and it builds successfully.

I am trying to add required dependency and search paths manually, in order to understand what should be added to it to work.

I have tried adding Pod.framework as a dependency to Batter and adding search paths to it, but it does not work. also, we need to have access to pods from all modules inside Batter, so maybe we should add dependency and search paths to all modules in Batter?
Would you please take a look at this? what should be added to this project in order to have access from inside Bar module to Alamofire?

from cake.

abbasmousavi avatar abbasmousavi commented on June 17, 2024

Sorry for the delay, thank you for fixing the project, now it builds. I am trying to implement the steps that you have done on the project in the code.

from cake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.