diff --git a/Classes/InAppProductsManager.m b/Classes/InAppProductsManager.m index 9413490c4..f308eaf19 100644 --- a/Classes/InAppProductsManager.m +++ b/Classes/InAppProductsManager.m @@ -36,7 +36,8 @@ NSString *accountCreationPassword; } -#if !TARGET_IPHONE_SIMULATOR +// LINPHONE_CAPABILITY_INAPP_PURCHASE must be defined in Linphone Build Settings +#if LINPHONE_CAPABILITY_INAPP_PURCHASE && !TARGET_IPHONE_SIMULATOR - (instancetype)init { if ((self = [super init]) != nil) { diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj index d0963c035..263e031b6 100755 --- a/linphone.xcodeproj/project.pbxproj +++ b/linphone.xcodeproj/project.pbxproj @@ -4592,6 +4592,7 @@ WARNING_CFLAGS = ( "-Werror=objc-method-access", "-Werror=incomplete-implementation", + "-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0", ); }; name = Debug; @@ -4678,6 +4679,7 @@ WARNING_CFLAGS = ( "-Werror=objc-method-access", "-Werror=incomplete-implementation", + "-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0", ); }; name = DistributionAdhoc; @@ -4762,6 +4764,7 @@ WARNING_CFLAGS = ( "-Werror=objc-method-access", "-Werror=incomplete-implementation", + "-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0", ); }; name = Release; @@ -4847,6 +4850,7 @@ WARNING_CFLAGS = ( "-Werror=objc-method-access", "-Werror=incomplete-implementation", + "-DLINPHONE_CAPABILITY_INAPP_PURCHASE=0", ); }; name = Distribution;