Comments (11)
@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.
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.
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.
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.
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.
Note when opening it don’t have Cake.app running or it will regenerate Cake.xcodeproj and the changes will be lost.
from cake.
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.
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.
@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.
@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.
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)
- Don’t regenerate while git operations are occurring
- you can have the app think there are two cakes with same .cake directory
- Don’t show playgrounds in the cake menu
- Is it possible for project path to not be same dir as xcodeproj?
- Fill out FSWatcher
- Don’t offer to integrate Cake for SwiftPM (etc.) generated projects
- Don’t assume git HOT 2
- Default Batter deployment targets should be extracted from main project
- Clean/Rebuilds often required for changes in modules to be included
- Consider "Sources•Modules" rather than "Sources•Model" HOT 1
- I get this error: NSCocoaErrorDomain.3587 when running Cake HOT 11
- When the opened doc in Xcode is a workspace it is detected but "Integrate Cake" menu does not work
- "Update Dependencies" menu item always generates this error HOT 5
- Speed up build times HOT 1
- Not making modules of all folders.
- How to share Modules between multiple projects HOT 8
- Failing to integrate or create new Cake HOT 17
- Symlinks to dirs in Model should work
- Replacing static frameworks with swift packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cake.