Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Add Carthage support #109

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

marcpalmer
Copy link

Cocoapods started causing me problems so I'm trying out Carthage. To make projects work with Carthage you don't have a podspec, you just create an Xcode project with a shared scheme that builds a dynamic framework (iOS 8 only).

You might want to move some of the files around, but you need to make sure xcodebuild will still build it. I'm not sure but we might need another scheme to build the version for Mac..

@therealbnut
Copy link

@neilco 👍 can we get this merged? it seems like a pretty safe addition, I have the same use-case

@neilco
Copy link
Collaborator

neilco commented Apr 6, 2017

@supermarin I'd like to review this but I don't have push access to the master branch so can't add comments.

@supermarin
Copy link
Owner

@neilco I thought you've had full push access on this one :) let me double check

@supermarin
Copy link
Owner

yep, confirming
screen shot 2017-04-06 at 11 55 25 am

@neilco
Copy link
Collaborator

neilco commented Apr 6, 2017

@supermarin It seems to working now. Must have been a glitch in The Matrix.

Copy link
Collaborator

@neilco neilco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcpalmer You've committed a user-specific file that will need to be removed before merging.

Also, if you could add targets for watchOS, tvOS, and macOS, that you would be greatly appreciated.

isa = PBXProject;
attributes = {
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = supermarin;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to supermar.in

INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = supermarin.ObjectiveSugar;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to in.supermar.ObjectiveSugar

INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = supermarin.ObjectiveSugar;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs changing to in.supermar.ObjectiveSugar

buildSettings = {
INFOPLIST_FILE = ObjectiveSugarTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = supermarin.ObjectiveSugarTests;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to in.supermar.ObjectiveSugarTests

buildSettings = {
INFOPLIST_FILE = ObjectiveSugarTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = supermarin.ObjectiveSugarTests;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs changing to in.supermar.ObjectiveSugarTests

@neilco
Copy link
Collaborator

neilco commented Apr 6, 2017

@marcpalmer Could you structure the project similar to the what's in the Example folder? It would be good to get the tests into the project.

@therealbnut
Copy link

For the user specific file you can add an entry to the .gitignore file so they will be ignored in future. You probably want to add a bunch of these rules for other things anyway, there's a good template here:

https://github.com/github/gitignore/blob/master/Objective-C.gitignore

You can just add that file to the root of the repo as .gitignore. Make sure you remove any ignored files first and commit that change.

@neilco
Copy link
Collaborator

neilco commented Apr 6, 2017

Or you could just copy the .gitignore from the Examples folder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants