Skip to content

Commit

Permalink
Resolve ‘the current deployment target does not support automated __w…
Browse files Browse the repository at this point in the history
…eak references’ error. Set (lowered) deployment target to 4.3.
  • Loading branch information
Stunner committed Jul 10, 2015
1 parent 93d810a commit 531381a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions AppUpdateTracker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample/AppUpdateTracker-Prefix.pch";
INFOPLIST_FILE = "Sample/AppUpdateTracker-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand All @@ -462,6 +463,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample/AppUpdateTracker-Prefix.pch";
INFOPLIST_FILE = "Sample/AppUpdateTracker-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand Down
2 changes: 1 addition & 1 deletion AppUpdateTracker/AppUpdateTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ - (id)init {
if (self = [super init]) {
self.postedEventsDictionary = [[NSMutableDictionary alloc] initWithCapacity:3];

__weak __typeof__(self) weakSelf = self;
__unsafe_unretained __typeof__(self) weakSelf = self;
[[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationWillEnterForegroundNotification
object:nil
queue:[NSOperationQueue currentQueue]
Expand Down

0 comments on commit 531381a

Please sign in to comment.