Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9 from namics/carthage
Browse files Browse the repository at this point in the history
Carthage
  • Loading branch information
Lepidopteron committed Jan 8, 2018
2 parents c4c185f + e553b74 commit c9e88f5
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,55 @@ end
### Import the NMXHeader-Header file in your Project:
`#include "NMXCoreStatic.h"`

## Carthage
[Carthage](https://github.com/Carthage/Carthage) is supported as well.

### Carthage Installation
Run:
```
brew update
brew install carthage
```
Navigate to the root directory of your .xcodeproj file.
If you don't have a "Cartfile" created yet, open your terminal and cd to your .xcodeproj-file.
Run:
```
touch Cartfile
```

### Download the dependency (Namics Core Library)

Add the following line to the Cartfile:
```
github "namics/ios-objc-foundation-nmxcore" # GitHub.com
```

Still in the project root, run
```
carthage update --platform iOS
```
This will fetch the Namics Core Library and put it into a Carthage/Checkouts folder.

### XCode configuration
1. On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop ”NMXCore.framework” from the Carthage/Build/iOS folder on disk.

2. On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:
```
/usr/local/bin/carthage copy-frameworks
```
3. Add the paths to the Namics Library under “Input Files”, e.g.:
```
$(SRCROOT)/Carthage/Build/iOS/NMXCore.framework
```
4. Add the paths to the copied frameworks to the “Output Files”, e.g.:
```
$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/NMXCore.framework
```
5. Make sure that 'Cartfile.resolved' is under version control

### Import the NMXCore
`@import NMXCore;`

# Documentation
## Building Documentation
Expand Down

0 comments on commit c9e88f5

Please sign in to comment.