Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5 from Glaedr/master

Introduced ARC support
  • Loading branch information...
commit f2b1913ffc35f739bf1e4236addd714b539163f3 2 parents b764520 + 483cc60
@isutton authored
View
6 NSString+TumblrKit.m
@@ -26,13 +26,13 @@ @implementation NSString (TumblrKit)
- (NSString *)stringByAddingQueryPercentEscapesUsingEncoding:(NSStringEncoding)encoding
{
- NSString *result = (NSString *)CFURLCreateStringByAddingPercentEscapes(
+ NSString *result = (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(
NULL,
- (CFStringRef)[[self mutableCopy] autorelease],
+ (__bridge_retained CFStringRef)[self mutableCopy],
NULL,
CFSTR("=,!$&'()*+;@?\n\"<>#\t :/"),
kCFStringEncodingUTF8);
- return [result autorelease];
+ return result;
}
+ (NSString *)MIMEBoundary
View
2  TKPost.h
@@ -207,7 +207,7 @@ typedef enum
@property (assign) NSUInteger width;
@property (assign) NSUInteger height;
@property (copy) NSString *source;
-@property (retain) TKImage *image;
+@property (strong) TKImage *image;
- (NSString *)caption;
- (void)setCaption:(NSString *)aCaption;
View
132 TKPost.m
@@ -22,28 +22,6 @@
#import "TKPost.h"
-/**
- Simplistic dictionary to be used statically. Used to map a Tumblr's post type
- to internal TumblrKit class names.
- */
-typedef struct
-{
- NSString *name;
- NSString *className;
-} TKPostTypeToClassNameMapping;
-
-static TKPostTypeToClassNameMapping TKPostTypeStringToClassName[] =
-{
- { @"photo", @"TKPostPhoto" },
- { @"conversation", @"TKPostConversation" },
- { @"link", @"TKPostLink" },
- { @"quote", @"TKPostQuote" },
- { @"regular", @"TKPostRegular" },
- { @"video", @"TKPostVideo" },
- { @"audio", @"TKPostAudio" },
- { nil, nil }
-};
-
static NSString *TKPostTypeFromTumblrAsString[] =
{
@"",
@@ -111,15 +89,6 @@ - (id)initWithAttributes:(NSDictionary *)attributeDict
return self;
}
-- (void)dealloc
-{
- [postID release];
- [url release];
- [date release];
- [slug release];
- [reblogKey release];
- [super dealloc];
-}
- (NSString *)description
{
@@ -128,16 +97,25 @@ - (NSString *)description
+ (id)postWithAttributes:(NSDictionary *)attributeDict
{
+ /**
+ Simplistic dictionary to be used statically. Used to map a Tumblr's post type
+ to internal TumblrKit class names.
+ */
+ NSDictionary *TKPostTypeToClassNameDict = [NSDictionary dictionaryWithObjectsAndKeys:
+ @"TKPostPhoto", @"photo",
+ @"TKPostConversation", @"conversation",
+ @"TKPostLink", @"link",
+ @"TKPostQuote", @"quote",
+ @"TKPostRegular", @"regular",
+ @"TKPostVideo", @"video",
+ @"TKPostAudio", @"audio",
+ nil];
+
Class postClass = nil;
NSString *type_ = [attributeDict objectForKey:@"type"];
- for (int i = 0; TKPostTypeStringToClassName[i].name != nil; i++) {
- if ([TKPostTypeStringToClassName[i].name isEqualToString:type_]) {
- postClass = NSClassFromString(TKPostTypeStringToClassName[i].className);
- break;
- }
- }
-
+ postClass = NSClassFromString([TKPostTypeToClassNameDict objectForKey:type_]);
+
return [(TKPost *)[postClass alloc] initWithAttributes:attributeDict];
}
@@ -170,22 +148,15 @@ - (id)init
return self;
}
-- (void)dealloc
-{
- [title release];
- [body release];
- [super dealloc];
-}
- (NSString *)title
{
- return [[title copy] autorelease];
+ return [title copy];
}
- (void)setTitle:(NSString *)aTitle
{
if (aTitle != title) {
- [title release];
title = [aTitle mutableCopy];
}
}
@@ -198,7 +169,6 @@ - (NSString *)body
- (void)setBody:(NSString *)aBody
{
if (aBody != body) {
- [body release];
body = [aBody mutableCopy];
}
}
@@ -243,22 +213,15 @@ - (id)init
return self;
}
-- (void)dealloc
-{
- [URL release];
- [text release];
- [super dealloc];
-}
- (NSString *)text
{
- return [[text copy] autorelease];
+ return [text copy];
}
- (void)setText:(NSString *)aText
{
if (aText != text) {
- [text release];
text = [aText mutableCopy];
}
}
@@ -270,7 +233,6 @@ - (void)appendToText:(NSString *)string
- (void)setURLWithString:(NSString *)URLString
{
- [URL release];
self.URL = [NSURL URLWithString:URLString];
}
@@ -302,35 +264,27 @@ - (id)init
return self;
}
-- (void)dealloc
-{
- [text release];
- [source release];
- [super dealloc];
-}
- (NSString *)text
{
- return [[text copy] autorelease];
+ return [text copy];
}
- (void)setText:(NSString *)aText
{
if (aText != text) {
- [text release];
text = [aText mutableCopy];
}
}
- (NSString *)source
{
- return [[source copy] autorelease];
+ return [source copy];
}
- (void)setSource:(NSString *)aSource
{
if (aSource != source) {
- [source release];
source = [aSource mutableCopy];
}
}
@@ -372,21 +326,15 @@ - (id)init
return self;
}
-- (void)dealloc
-{
- [text release];
- [super dealloc];
-}
- (NSString *)text
{
- return [[text copy] autorelease];
+ return [text copy];
}
- (void)setText:(NSString *)aText
{
if (aText != text) {
- [text release];
text = [aText mutableCopy];
}
}
@@ -439,23 +387,15 @@ - (id)initWithAttributes:(NSDictionary *)attributeDict
return self;
}
-- (void)dealloc
-{
- [source release];
- [caption release];
- [image release];
- [super dealloc];
-}
- (NSString *)caption
{
- return [[caption copy] autorelease];
+ return [caption copy];
}
- (void)setCaption:(NSString *)aCaption
{
if (aCaption != caption) {
- [caption release];
caption = [aCaption mutableCopy];
}
}
@@ -504,49 +444,39 @@ - (id)init
return self;
}
-- (void)dealloc
-{
- [caption release];
- [source release];
- [player release];
- [super dealloc];
-}
- (NSString *)caption
{
- return [[caption copy] autorelease];
+ return [caption copy];
}
- (void)setCaption:(NSString *)aCaption
{
if (aCaption != caption) {
- [caption release];
caption = [aCaption mutableCopy];
}
}
- (NSString *)source
{
- return [[source copy] autorelease];
+ return [source copy];
}
- (void)setSource:(NSString *)aSource
{
if (aSource != source) {
- [source release];
source = [aSource mutableCopy];
}
}
- (NSString *)player
{
- return [[player copy] autorelease];
+ return [player copy];
}
- (void)setPlayer:(NSString *)aPlayer
{
if (aPlayer != player) {
- [player release];
player = [aPlayer mutableCopy];
}
}
@@ -586,35 +516,27 @@ - (id)init
return self;
}
-- (void)dealloc
-{
- [caption release];
- [player release];
- [super dealloc];
-}
- (NSString *)caption
{
- return [[caption copy] autorelease];
+ return [caption copy];
}
- (void)setCaption:(NSString *)aCaption
{
if (aCaption != caption) {
- [caption release];
caption = [aCaption mutableCopy];
}
}
- (NSString *)player
{
- return [[player copy] autorelease];
+ return [player copy];
}
- (void)setPlayer:(NSString *)aPlayer
{
if (aPlayer != player) {
- [player release];
player = [aPlayer mutableCopy];
}
}
View
4 TKPostsRequest.h
@@ -45,8 +45,8 @@
#pragma mark - API
-@property (nonatomic, assign) id<TKPostsRequestDelegate> delegate;
-@property (readonly) NSDictionary *options;
+@property (weak, nonatomic) id<TKPostsRequestDelegate> delegate;
+@property (strong, readonly) NSDictionary *options;
- (id)initWithOptions:(NSDictionary *)options delegate:(id<TKPostsRequestDelegate>)delegate;
View
14 TKPostsRequest.m
@@ -32,10 +32,9 @@ @implementation TKPostsRequest
- (void)dealloc;
{
- [_receivedPosts release]; _receivedPosts = nil;
- [_options release]; _options = nil;
- [_parser release]; _parser = nil;
- [super dealloc];
+ _receivedPosts = nil;
+ _options = nil;
+ _parser = nil;
}
#pragma mark - NSXMLParserDelegate
@@ -45,14 +44,13 @@ - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName nam
_currentElementName = elementName;
if ([elementName isEqualToString:@"post"])
- _currentPost = [[TKPost postWithAttributes:attributeDict] retain];
+ _currentPost = [TKPost postWithAttributes:attributeDict];
}
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
{
if ([elementName isEqualToString:@"post"]) {
[_receivedPosts addObject:_currentPost];
- [_currentPost release];
}
}
@@ -79,7 +77,7 @@ - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string;
- (void)parserDidEndDocument:(NSXMLParser *)parser;
{
- [_currentPost release]; _currentPost = nil;
+ _currentPost = nil;
[self.delegate postsRequest:self didReceiveResponse:[TKPostsResponse responseWithPosts:_receivedPosts]];
}
@@ -126,7 +124,7 @@ - (id)initWithOptions:(NSDictionary *)options delegate:(id<TKPostsRequestDelegat
[NSException raise:@"TKPostsRequestDomainKey is mandatory" format:@"TKPostsRequestDomainKey is mandatory"];
_receivedPosts = [[NSMutableArray alloc] init];
- _options = [options retain];
+ _options = options;
_delegate = delegate;
return self;
View
2  TKPostsResponse.h
@@ -22,7 +22,7 @@
@interface TKPostsResponse : NSObject
-@property (nonatomic, retain) NSArray *posts;
+@property (strong, nonatomic) NSArray *posts;
#pragma mark - API
View
9 TKPostsResponse.m
@@ -28,17 +28,12 @@ @implementation TKPostsResponse
#pragma mark - NSObject
-- (void)dealloc;
-{
- [_posts release]; _posts = nil;
- [super dealloc];
-}
#pragma mark - API
+ (id)responseWithPosts:(NSArray *)posts;
{
- return [[[self alloc] initWithPosts:posts] autorelease];
+ return [[self alloc] initWithPosts:posts];
}
- (id)initWithPosts:(NSArray *)posts;
@@ -46,7 +41,7 @@ - (id)initWithPosts:(NSArray *)posts;
if (!(self = [self init]))
return nil;
- _posts = [posts retain];
+ _posts = posts;
return self;
}
View
7 TKRequest.m
@@ -41,8 +41,7 @@ - (id)init;
- (void)dealloc;
{
[self cancel];
- [_receivedData release]; _receivedData = nil;
- [super dealloc];
+ _receivedData = nil;
}
#pragma mark - NSURLConnectionDelegate
@@ -67,7 +66,7 @@ - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
- (void)connectionDidFinishLoading:(NSURLConnection *)connection;
{
[self connectionDidFinishLoadingData:_receivedData];
- [_receivedData release]; _receivedData = nil;
+ _receivedData = nil;
}
#pragma mark - API
@@ -91,7 +90,7 @@ - (void)start;
- (void)cancel;
{
[_connection cancel];
- [_connection release]; _connection = nil;
+ _connection = nil;
}
@end
View
6 TKTumblelog.h
@@ -41,9 +41,9 @@ typedef enum
@property (nonatomic,copy) NSString *title;
@property (nonatomic,copy) NSString *name;
-@property (nonatomic,retain) NSURL *URL;
-@property (nonatomic,retain) NSURL *avatarURL;
-@property (nonatomic,retain) NSNumber *privateID;
+@property (nonatomic,strong) NSURL *URL;
+@property (nonatomic,strong) NSURL *avatarURL;
+@property (nonatomic,strong) NSNumber *privateID;
@property (nonatomic,assign) BOOL primary;
@property (nonatomic,assign) TKTumblelogType type;
View
2  TKTumblelog.m
@@ -29,7 +29,7 @@ @implementation TKTumblelog
+ (id)tumblelogWithAttributes:(NSDictionary *)attributeDict
{
- return [[(TKTumblelog *)[self alloc] initWithAttributes:attributeDict] autorelease];
+ return [(TKTumblelog *)[self alloc] initWithAttributes:attributeDict];
}
- (id)initWithAttributes:(NSDictionary *)attributeDict
View
2  TKTumblelogsRequest.h
@@ -42,7 +42,7 @@
TKTumblelog *_currentTumblelog;
}
-@property (nonatomic, assign) id<TKTumblelogsRequestDelegate> delegate;
+@property (weak, nonatomic) id<TKTumblelogsRequestDelegate> delegate;
- (id)initWithOptions:(NSDictionary *)options delegate:(id<TKTumblelogsRequestDelegate>)delegate;
View
9 TKTumblelogsRequest.m
@@ -32,9 +32,8 @@ @implementation TKTumblelogsRequest
- (void)dealloc;
{
- [_options release]; _options = nil;
- [_receivedTumblelogs release]; _receivedTumblelogs = nil;
- [super dealloc];
+ _options = nil;
+ _receivedTumblelogs = nil;
}
#pragma mark - NSXMLParserDelegate
@@ -51,13 +50,11 @@ - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName names
{
if ([elementName isEqualToString:@"tumblelog"]) {
[_receivedTumblelogs addObject:_currentTumblelog];
- [_currentTumblelog release];
}
}
- (void)parserDidEndDocument:(NSXMLParser *)parser
{
- [parser release];
[_delegate tumblelogsRequest:self didReceiveResponse:[TKTumblelogsResponse responseWithTumblelogs:_receivedTumblelogs]];
}
@@ -98,7 +95,7 @@ - (id)initWithOptions:(NSDictionary *)options delegate:(id<TKTumblelogsRequestDe
if (![options objectForKey:TKTumblelogsRequestPasswordKey])
[NSException raise:@"TKTumblelogsRequestPasswordKey is mandatory" format:@"TKTumblelogsRequestPasswordKey is mandatory"];
- _options = [options retain];
+ _options = options;
_delegate = delegate;
return self;
View
2  TKTumblelogsResponse.h
@@ -22,7 +22,7 @@
@interface TKTumblelogsResponse : NSObject
-@property (nonatomic, retain) NSArray *tumblelogs;
+@property (nonatomic,strong) NSArray *tumblelogs;
#pragma mark - API
View
9 TKTumblelogsResponse.m
@@ -28,17 +28,12 @@ @implementation TKTumblelogsResponse
#pragma mark - NSObject
-- (void)dealloc;
-{
- [_tumblelogs release]; _tumblelogs = nil;
- [super dealloc];
-}
#pragma mark - API
+ (id)responseWithTumblelogs:(NSArray *)tumblelogs;
{
- return [[[self alloc] initWithTumblelogs:tumblelogs] autorelease];
+ return [[self alloc] initWithTumblelogs:tumblelogs];
}
- (id)initWithTumblelogs:(NSArray *)tumblelogs;
@@ -46,7 +41,7 @@ - (id)initWithTumblelogs:(NSArray *)tumblelogs;
if (!(self = [self init]))
return nil;
- _tumblelogs = [tumblelogs retain];
+ _tumblelogs = tumblelogs;
return self;
}
View
10 TKTumblr.h
@@ -46,7 +46,7 @@ typedef enum
@interface TKTumblr : NSObject <NSXMLParserDelegate,TKTumblrDelegate>
{
- id<TKTumblrDelegate,NSObject> delegate;
+ id<TKTumblrDelegate,NSObject> __weak delegate;
NSString *email;
NSString *password;
@@ -57,12 +57,12 @@ typedef enum
NSString *currentElementName;
}
-@property (assign) id<TKTumblrDelegate,NSObject> delegate;
+@property (nonatomic,weak) id<TKTumblrDelegate,NSObject> delegate;
@property (nonatomic,copy) NSString *email;
@property (nonatomic,copy) NSString *password;
-@property (nonatomic,retain) TKTumblelog *currentTumblelog;
-@property (nonatomic,retain) TKPost *currentPost;
-@property (nonatomic,retain) TKPost *requestedPost;
+@property (nonatomic,strong) TKTumblelog *currentTumblelog;
+@property (nonatomic,strong) TKPost *currentPost;
+@property (nonatomic,strong) TKPost *requestedPost;
@property (nonatomic,copy) NSString *currentElementName;
- (id)initWithEmail:(NSString *)theEmail andPassword:(NSString *)thePassword;
View
18 TKTumblr.m
@@ -42,27 +42,15 @@ - (id)initWithEmail:(NSString *)theEmail andPassword:(NSString *)thePassword
return self;
}
-- (void)dealloc
-{
- self.email = nil;
- self.password = nil;
- self.currentTumblelog = nil;
- self.currentPost = nil;
- self.currentElementName = nil;
- self.requestedPost = nil;
- [super dealloc];
-}
- (TKPost *)postWithID:(NSNumber *)thePostID andDomain:(NSString *)theDomain
{
TKTumblrReadRequest *theReadRequest = [[TKTumblrReadRequest alloc] initWithPostID:thePostID andDomain:theDomain];
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:[theReadRequest endpoint]];
- [theReadRequest release];
id previousDelegate = [self delegate];
[self setDelegate:self];
[parser setDelegate:self];
[parser parse];
- [parser release];
[self setDelegate:previousDelegate];
TKPost *thePost = nil;
@@ -80,7 +68,6 @@ - (void)postsWithReadRequest:(TKTumblrReadRequest *)theReadRequest
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:[theReadRequest endpoint]];
[parser setDelegate:self];
[parser parse];
- [parser release];
}
- (BOOL)uploadPost:(TKPost *)thePost
@@ -119,7 +106,6 @@ - (BOOL)uploadPost:(TKPost *)thePost withDomain:(NSString *)theDomain
// Release the request before we can enter some potentially dangerous
// code path.
- [theURLRequest release];
// Bail out quickly if NSURLConnection populated error.
if (([theURLResponse statusCode] != TKTumblrCreated)) {
@@ -135,8 +121,7 @@ - (BOOL)uploadPost:(TKPost *)thePost withDomain:(NSString *)theDomain
// safe to assume that responseData will have only the postID of the post we created.
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setNumberStyle:NSNumberFormatterDecimalStyle];
- NSNumber *postID = [formatter numberFromString:[[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease]];
- [formatter release];
+ NSNumber *postID = [formatter numberFromString:[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]];
if (delegate && [delegate respondsToSelector:@selector(tumblrDidUploadPost:withDomain:postID:)]) {
[delegate tumblrDidUploadPost:thePost withDomain:theDomain postID:postID];
@@ -163,7 +148,6 @@ - (NSArray *)tumblelogs
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:theURL];
[parser setDelegate:self];
[parser parse];
- [parser release];
return nil;
}
View
10 TKTumblrReadRequest.m
@@ -72,15 +72,6 @@ - (id)initWithPostID:(NSNumber *)thePostID andDomain:(NSString *)theDomain
return self;
}
-- (void)dealloc
-{
- self.start = nil;
- self.numOfPosts = nil;
- self.postID = nil;
- self.search = nil;
- self.group = nil;
- [super dealloc];
-}
- (NSURL *)endpoint
{
@@ -100,7 +91,6 @@ - (NSURL *)endpoint
[endpointString appendFormat:@"filter=%@", TKPostFilterAsQueryString[filter]];
endpoint = [NSURL URLWithString:endpointString];
- [endpointString release];
return endpoint;
}
View
16 TumblrKit Tests for Mac/TumblrKit_Tests_for_Mac.m
@@ -28,19 +28,19 @@ - (void)tearDown;
- (void)testPostsRequest001;
{
NSMutableDictionary *options = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"tumblrkit-test.tumblr.com", TKPostsRequestDomainKey, nil];
- TKPostsRequest *request = [[[TKPostsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ TKPostsRequest *request = [[TKPostsRequest alloc] initWithOptions:options delegate:self];
STAssertEqualObjects([[request URL] absoluteString], @"http://tumblrkit-test.tumblr.com/api/read?", @"");
[options setObject:[NSNumber numberWithInt:10] forKey:TKPostsRequestNumberOfPostsKey];
- request = [[[TKPostsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ request = [[TKPostsRequest alloc] initWithOptions:options delegate:self];
STAssertEqualObjects([[request URL] absoluteString], @"http://tumblrkit-test.tumblr.com/api/read?num=10", nil);
[options setObject:[NSNumber numberWithInt:10] forKey:TKPostsRequestStartAtIndexKey];
- request = [[[TKPostsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ request = [[TKPostsRequest alloc] initWithOptions:options delegate:self];
STAssertEqualObjects([[request URL] absoluteString], @"http://tumblrkit-test.tumblr.com/api/read?num=10&start=10", nil);
[options setObject:[NSNumber numberWithInt:10] forKey:TKPostsRequestPostIDKey];
- request = [[[TKPostsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ request = [[TKPostsRequest alloc] initWithOptions:options delegate:self];
STAssertEqualObjects([[request URL] absoluteString], @"http://tumblrkit-test.tumblr.com/api/read?num=10&id=10&start=10", nil);
}
@@ -50,7 +50,7 @@ - (void)testPostsRequest002;
@"tumblrkit-test.tumblr.com", TKPostsRequestDomainKey,
[NSNumber numberWithInt:10], TKPostsRequestNumberOfPostsKey,
nil];
- TKPostsRequest *request = [[[TKPostsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ TKPostsRequest *request = [[TKPostsRequest alloc] initWithOptions:options delegate:self];
[request start];
while (!_testIsDone)
@@ -66,7 +66,7 @@ - (void)testPostsRequest003;
[NSNumber numberWithInt:5], TKPostsRequestStartAtIndexKey,
nil];
- TKPostsRequest *request = [[[TKPostsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ TKPostsRequest *request = [[TKPostsRequest alloc] initWithOptions:options delegate:self];
[request start];
while (!_testIsDone)
@@ -80,7 +80,7 @@ - (void)testPostsRequest004;
[NSNumber numberWithLong:8819125974], TKPostsRequestPostIDKey,
nil];
- TKPostsRequest *request = [[[TKPostsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ TKPostsRequest *request = [[TKPostsRequest alloc] initWithOptions:options delegate:self];
[request start];
while (!_testIsDone)
@@ -94,7 +94,7 @@ - (void)testTumblelogsRequest001;
@"password", TKTumblelogsRequestPasswordKey,
nil];
- TKTumblelogsRequest *request = [[[TKTumblelogsRequest alloc] initWithOptions:options delegate:self] autorelease];
+ TKTumblelogsRequest *request = [[TKTumblelogsRequest alloc] initWithOptions:options delegate:self];
[request start];
while (!_testIsDone)
View
13 TumblrKit.xcodeproj/project.pbxproj
@@ -622,6 +622,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = NO;
DSTROOT = /tmp/TumblrKit_for_iOS.dst;
GCC_DYNAMIC_NO_PIC = NO;
@@ -648,6 +649,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = YES;
DSTROOT = /tmp/TumblrKit_for_iOS.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -669,6 +671,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
@@ -697,6 +700,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DYLIB_COMPATIBILITY_VERSION = 1;
@@ -733,7 +737,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DOXYGEN_PATH = /Applications/Doxygen.app/Contents/Resources/doxygen;
PRODUCT_NAME = Documentation;
- ZERO_LINK = NO;
+ ZERO_LINK = YES;
};
name = Release;
};
@@ -742,8 +746,9 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
+ FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks/**";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -768,9 +773,10 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
+ FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks/**";
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "TumblrKit Tests for Mac/TumblrKit Tests for Mac-Prefix.pch";
@@ -830,6 +836,7 @@
82F79925149924E900920028 /* Release */,
);
defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Please sign in to comment.
Something went wrong with that request. Please try again.