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
Question: what are the best practices that you recommend to debug a carthage framework? #1326
Comments
I would typically use Just be aware that if you run a Carthage command, the changes to your dependency could be lost. So commit and push frequently! |
Hi Matt. Thanks for your reply 😊 Question 1: When I use Question 2: On the project section Question 3: On the project section |
No.
The latter.
|
Hi Matt
When I check on |
Ok I found it $ git submodule add -f https://github.com/Alamofire/Alamofire.git Carthage/Checkouts/Alamofire
$ cd Carthage/Checkouts/Alamofire
$ git checkout tags/3.4.0 I had to do the same for other frameworks Suggestion: Carthage can execute the command |
That should not be related to Carthage, that would be an issue on iTC side. See also CocoaPods/CocoaPods#5453. |
@ikesyo Ok in this case just wait and see 🙂 |
IMO,
…is terrible. Better still, would you be open to supporting a
|
#426 is tracking this idea.
Carthage already supports this. |
As far as I can tell, it only works with absolute paths. Carthage appears to resolve relative paths against its internal cache instead of the
Same happens with |
Oh, you're probably right. I missed that you wanted to use a relative path. Sorry! A better solution is to just drag the other project into your Xcode project/workspace and build it that way. Just take it out of your Cartfile completely or don't use the copy from your Cartfile while you're developing. |
Sure. (Workspace only, right?) But then you’re not testing the framework exactly as Carthage builds it, which has bit me in the past. |
Hi @pcantrell
Yes it's terrible! Having to manage Carthage and git submodule for the same project is not simple. For having tested It's easy to make mistakes. It would have been better if Carthage completely took over git submodules or proposed it's own solution.
Not only on the workspace. You can drag and drop your framework project from |
I worked around about how I can create and maintain my own frameworks (compatible with Carthage). At the first time the option |
Hi,
I did not see relevant information in the file README.md and I wish to know what are the best practices that you recommend to develop and debug a framework before it release as a carthage framework.
Do I have to include my framework as a sub-project on my application?
Is there a configuration to set up in the project that include this sub-project?
The text was updated successfully, but these errors were encountered: