-
Notifications
You must be signed in to change notification settings - Fork 171
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
Build using Carthage? #39
Comments
Hi Daven,
Can you please paste the log mentioned in the last line of you log above? `This
usually indicates that project itself failed to compile. Please check the
xcodebuild log for more details: /var/folders/md/
lvb3zv4n5652ffl6t44397t80000gn/T/carthage-xcodebuild.l8D67B.log`
If you can't find that log, try build the project again using Carthage, and
then look for the new log file.
Cheers,
V
|
Oh sorry, that's a pretty obvious step for me to take! My bad. It was kinda large so I attached below... |
Getting this as well. |
|
Carthage is not going to work as-is on the project; as it’s building geos via a pod install step and linking via a Pods framework. Carthage builds are failing on the CocoaPods 'run script' lockfile check, but even if that was stripped out the build will fail when it attempts to link to geos.framework The xcodeproj isn’t used at all by cocoapods (which only looks at the podspec) so it’s more common to see this set up to handle the Carthage build. However in this case, dropping CocoaPods out of the project file will impact the experience for users downloading & running the playground, and the developers who are presumably pod people. For frameworks with dependencies, people seem to mostly use |
@samritchie Would you be able to create a pull request with what you are suggesting? Thanks! |
Can I verify if the playground should be working? I only get
|
@samritchie it was working until Xcode 9.2, that was the last time I checked. I haven't tried it on Xcode 9.3 |
Is there a working solution for the carthage? |
@macdrevx and I have solved the issue. For anyone who wants to know what we did. I created an xcode project for the https://github.com/GEOSwift/geos dependency which allows a nested Carthage dependency in GEOSwift. There was a hacky way to then get Carthage to play ball, by having a pre-script which copied the geos.framework into the expected filename for the existing Cocoapods Workspace setup. The final missing piece of the puzzle was getting the Playgrounds to work. Turns out that the playgrounds are able to find frameworks in the current Build > Product > Arch directory $BUILT_PRODUCTS_DIR so I simply copy the geos.framework from the Carthage folder into this local folder during build so that the Playground sees it. If anyone knows a better solution I am all ears. I tried the obvious solution of nesting the Playground in the project since the Framework Search Paths are defined there and work for the framework build, but no luck. Anyway, looks like GEOSwift is now: Cocoapods, Carthage and SPM compatible which is great news! |
This change will be released shortly… |
Hi,
This looks like fantastic work! I am trying to integrate into an app where I am using Carthage as my framework manager — it's a little more lightweight than CocoaPods. I am wondering if it is possible to configure this for Carthage...I tried installing it and there was some cryptic (to me) error which I have pasted below. Perhaps this just means that there needs to be a Cartfile in the project directory specifying dependencies (MapBox iOS SDK?). Might be...anyway, insight from other interested parties would be appreciated.
Thanks,
Daven
The text was updated successfully, but these errors were encountered: