Skip to content
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

Select MarqueeLabel import based on build system #1

Merged
merged 2 commits into from Jun 3, 2017

Conversation

cbpowell
Copy link

@cbpowell cbpowell commented May 13, 2017

Adds a custom Swift complier flag, allowing a if/else statement to pick import MarqueeLabel vs import MarqueeLabelSwift to work around Cocoapods/Carthage compatibility issues.

See cbpowell/MarqueeLabel#181.

@cbpowell cbpowell changed the title Macro test Select MarqueeLabel import based on build system May 13, 2017
@@ -310,6 +326,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "-DCARTHAGE_CONFIG";
Copy link
Author

Choose a reason for hiding this comment

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

Note that the important project file change is here, I somewhat inadvertently included the change for importing the frameworks (was just getting it to build).

@cbpowell
Copy link
Author

This works because @Dschee created an additional Xcode project in the repo for the Carthage framework build. There's no impact to the Example project which still uses @Daltron's .xcworkspace, to which I did not add the CARTHAGE_CONFIG flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants