Fix Carthage project setup#35
Conversation
|
@mkko Can you further explain why this is needed? "Prefers xcworkspace" makes sense, but there isn't one so I would expect it to just build xcproj in that case. Is this a bug in Carthage or this repo? |
|
There's one under examples. Carthage doesn't care about the layout of the project which is why we need one workspace at the top level. |
|
It's a bit strange but "it is what it is", as they say. |
|
In general that would be a good idea. However, for this issue it wouldn't have helped since there was no build errors. I don't know what went wrong with the build, though. All was good until running the project, I'm guessing something weird with the linker. This is horribly implicit feature with Carthage and I'm a little worried that at some point someone might clean up the practically empty workspace file out of the project. Building the workspace in CI would at least give us some way of giving an error about possibly broken Carthage builds. I'm new to Circle, but I'll try to add a build phase there and see how it looks. |
|
I'll try to help out with this tomorrow |
b03f401 to
1a6e00d
Compare
1a6e00d to
b8f5d2d
Compare
af48e96 to
9fdc436
Compare
|
Ok this should be good to go + Migrated to Circle CI v2. |
|
Thanks! Didn't even have the time to react on this. However, I'm wondering the purpose of |
|
Hey @mkko - sorry for not leaving open, I thought we're just trying to fix the CI and merge as the fix itself was clear to go. The entire script is supposed to cache the Carthage folder - so if you now create another PR or branch, you'll see that it says its already cached and won't have to rebuild it (which is a very lengthy thing with Carthage). The way Circle CI work is that it can cache specific folders - in our case we're caching Initial attempt: Next attempt: Cache is pulled. Hope this makes sense! |
|
No worries, I meant it in a good way. Good to get things delivered. Thanks for the clarification! I actually misread the copy phase and had the impression that the Anyways, thank you for the CI part, would've taken me a lot longer to make it work. Also, care to do the next release with this in it? I would gladly do it but I can't push this to CocoaPods. |
|
All done! 🎉 Congrats 🚀 RxMKMapView (4.2.0) successfully published |
This PR fixes project structure to work with Carthage.
The original issue is described here. To resolve it, I added a workspace file to the root of the project. While at it, I also took liberty of moving source files out of Pods directory, upgrading the project for Xcode 9.4 and cleaning up a bit in podspec.