Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Repository
Demo Swift Carthage
Basic Info
- Host: GitHub
- Owner: joelparkerhenderson
- Language: Swift
- Default Branch: master
- Size: 2 MB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Demo Swift Carthage

This demonstration shows:
The Carthage dependency manager.
The Prelude Swift micro-framework of simple functional programming tools.
Start
To use this demo, you can clone this repo, or you can use this README to create your own project.
If you clone this repo, then be aware that there are multiple git branches, so pick the one you want.
swift-4-xcode-9: Swift version 4, Xcode version 9, iOS version 11.
swift-3-xcode-8: Swift version 3, Xcode version 8, iOS version 10.
Create the project
Launch Xcode and create a new Xcode project.
Use iOS template "Single View Application" and Product Name "Demo Swift Carthage".
Get Carthage
To see if you have Carthage installed, and if the Carthage version is current, run this command:
$ carthage version
0.25.0
If Carthage is not installed, or the version is lower than 0.25.0:
- Use these Carthage instructions
Create a Cartfile
Create an empty text file named Cartfile at the top level of the project.
Edit the Cartfile.
You can add any framework you want.
For this demo, we add the "Prelude" framework, which is provides programming functions.
Add this text:
github "robrix/Prelude"
Update.
shell
$ carthage update
*** Fetching Prelude
*** Downloading Prelude.framework binary at "2.0"
*** xcodebuild output can be found in /var/folders/…
See the results if you like.
There is a new file
Cartfile.resolvedthat lists the framework and its exact version number.There is a new directory
Carthage. This contains theBuilddirectory and the framework files.
```shell $ ls -1 Cartfile Cartfile.resolved Carthage Demo Swift Carthage Demo Swift Carthage.xcodeproj Demo Swift CarthageTests Demo Swift CarthageUITests
$ ls Carthage Build
$ cat Cartfile.resolved github "robrix/Prelude" "2.0.0" ```
Link the framework
Go to the Xcode project "General" area.
Scroll down the section "Linked Frameworks and Libraries", with the text that says "Add frameworks & libraries here".
Tap the "+" icon.
A dialog opens that says "Choose frameworks and libraries to add".
Tap the button "Add Other..."
Choose the framework.
A file chooser opens.
Navigate up a folder, and you see the "Carthage" folder.
Open the folder "Carthage", then the folder "Build", then the folder "iOS".
Tap the file "Prelude.framework" to highlight it.
Tap "Open"
The section "Linked Frameworks and Libraries" now shows "Prelude.framework".
Create the Run Script
Go to the Xcode project "Build Phases" settings area.
Click the "+" icon, then choose "New Run Script Phase".
Click the triangle by the new "Run Script" list item.
The "Shell" field should say
/bin/sh.The larger text field should say
Type a script or drag a script file from your workspace to insert its path.Set the larger text field to say
/usr/local/bin/carthage copy-frameworks
Add input files.
In the area "Add input files here", click "+".
Set the "Input Files" to
$(SRCROOT)/Carthage/Build/iOS/Prelude.framework
Run
Run the project.
- Xcode → Product → Run
The Simulator launches.
The app will launch normally.
This verifies that Carthage can connect the files.
Congratulations! You're successful!
Tracking
- Package: demoswiftcarthage
- Version: 3.0.0
- Created: 2016-04-09
- Updated: 2017-09-22
- License: BSD, MIT, GPL
- Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)
Owner
- Name: Joel Parker Henderson
- Login: joelparkerhenderson
- Kind: user
- Location: California
- Website: http://www.joelparkerhenderson.com
- Repositories: 319
- Profile: https://github.com/joelparkerhenderson
Software developer. Technology consultant. Creator of GitAlias.com, NumCommand.com, SixArm.com, and many open source projects.
Citation (CITATION.cff)
cff-version: 1.2.0
title: Demo Swift Carthage
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel@joelparkerhenderson.com
affiliation: joelparkerhenderson.com
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/joelparkerhenderson/demo-swift-carthage/'
description: Demo Swift Carthage
repository-code: 'https://github.com/joelparkerhenderson/demo-swift-carthage/'
abstract: >-
Demo Swift Carthage
license: See license file
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Joel Parker Henderson | j****l@j****m | 18 |
Committer Domains (Top 20 + Academic)
Dependencies
- robrix/Prelude
- robrix/Prelude 3.0.0