-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Following Apple's guidelines for iOS Static Libraries #249
Conversation
@@ -1,7 +1,7 @@ | |||
#import "AppDelegate.h" | |||
#import "ViewController.h" | |||
|
|||
#import <Lumberjack/Lumberjack.h> | |||
#import "Lumberjack/Lumberjack.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import can (and probably should) stay unchanged. The reason being that if "search headers path" is properly configured then <...>
imports should work.
Also it better isolates library headers, is less tied to particular directories/paths and migrating to/from CocoaPods<->Static Library is easier.
Apple's documentation chose to use "..."
without making it a guideline. More info here.
I was about to propose to abandoning the Static Library as recent development has not been "back-ported" for it (CLI and soon ASL Capture for instance). If someone however finds it useful and wants to maintain it then great. The code however should stay as CocoaPods/Static Library-agnostic as possible. |
Your comments about angle brackets above don't exactly make sense to me - It's a little over my depth. Is there a resource where I could learn more? I'd be happy to maintain the static library for iOS. |
Just added a link to the first comment. |
@evandelaney after checking this (and this) do you still prefer to change the imports before we merge this? |
Sorry, still getting my bearings. Gimme until the end of the week, please. |
Sure, not meant to push you, it was just a ping ;) |
Summary: Discussion: The suggested changes have modified the There is no change in this behavior if The behavior / use case outlined above is what my intention was behind this pull request, but I still feel like I may have missed something important around (Sorry for the delay on this, I got slammed with work) |
Well the idea of using More important with this syntax any header conflict can be solved without touching any source file import, but by simple adjusting the project's On the other hand references inside your project use |
Gentle reminder guys |
Just checked again my two comments.
|
Uses the Xcode 5.1 iOS Static Library template and methodology outlined in the tech note linked below https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/iOSStaticLibraries.pdf
@rivera-ernesto I've pushed the suggested change, and it certainly won't upset me if you still feel like these changes aren't appropriate for the project given the effort put into supporting CocoaPods. I've come away with a better understanding about |
Looks good. Thanks! |
Following Apple's guidelines for iOS Static Libraries
Cocoa Lumberjack Team,
This pull request may not interest you given the continued effort put into maintaining the CocoaPods spec, but I'm optimistic that there are others like me that prefer to use bare git submodules and a static library.
I've reworked the iOS static library project to follow Apple's recommendations in this tech note. If the Apple link changes, then you should be able to find it by searching the phrase "Using Static Libraries on iOS." This puts exported headers in an expected place (however much water that may hold), and does not require changes to a target app's
Search Paths
build settings.I've found these modifications to the Lumberjack static lib helpful for my projects. Maybe others will, too.
I welcome discussion about why you think this is a beneficial or not-so-great pull request; this is my first contribution to the community and I'm hoping to learn from the experience. I've enjoyed using CocoaLumberjack, and I'm hoping this might be a small way to show my support.