Skip to content

Commit f74105f

Browse files
committed
Merge pull request #642 from ParsePlatform/nlutsenko.extensions
Fix an issue with compiling iOS sdk for app extensions.
2 parents e18e700 + f4b1ae0 commit f74105f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Configurations/Parse-iOS.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
PRODUCT_NAME = Parse
1414
PRODUCT_BUNDLE_IDENTIFIER = com.parse.ios
15+
APPLICATION_EXTENSION_API_ONLY = YES
1516

1617
MACH_O_TYPE = staticlib
1718
DEFINES_MODULE = YES

Parse/Internal/Push/PFPushPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
2525
+ (nullable NSString *)getDeviceTokenFromKeychain;
2626
+ (void)clearDeviceToken;
2727

28-
#if TARGET_OS_IPHONE
28+
#if TARGET_OS_IOS
2929

3030
+ (void)showAlertViewWithTitle:(nullable NSString *)title message:(nullable NSString *)message NS_EXTENSION_UNAVAILABLE_IOS("");
3131
+ (void)playVibrate;

Parse/Internal/Push/Utilites/PFPushUtilities.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ + (void)clearDeviceToken {
5454
[[[PFKeychainStore alloc] initWithService:@"ParsePush"] removeObjectForKey:@"ParsePush"];
5555
}
5656

57-
#if TARGET_OS_IPHONE
57+
#if TARGET_OS_IOS
5858

59-
+ (void)showAlertViewWithTitle:(NSString *)title message:(NSString *)message {
59+
+ (void)showAlertViewWithTitle:(nullable NSString *)title message:(nullable NSString *)message NS_EXTENSION_UNAVAILABLE_IOS("") {
6060
NSString *cancelButtonTitle = NSLocalizedStringFromTableInBundle(@"OK", @"Parse",
6161
[NSBundle bundleForClass:[self class]],
6262
@"Default alert view cancel button title.");

0 commit comments

Comments
 (0)