Fix the warning, enable `APPLICATION_EXTENSION_API_ONLY` for all framework target

This commit is contained in:
DreamPiggy 2021-05-21 11:47:36 +08:00
parent 76dd4b4911
commit 46912090f9
3 changed files with 4 additions and 5 deletions

View File

@ -229,3 +229,6 @@ SUPPORTS_MACCATALYST = YES
// macOS Catalyst support
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO
// When enabled, this causes the compiler and linker to disallow use of APIs that are not available to app extensions and to disallow linking to frameworks that have not been built with this setting enabled.
APPLICATION_EXTENSION_API_ONLY = YES

View File

@ -1337,7 +1337,6 @@
4A2CAE131AB4BB5400B6BC39 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
INFOPLIST_FILE = WebImage/Info.plist;
};
name = Debug;
@ -1345,7 +1344,6 @@
4A2CAE141AB4BB5400B6BC39 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
INFOPLIST_FILE = WebImage/Info.plist;
};
name = Release;
@ -1381,7 +1379,6 @@
80B6DFEC2142B71600BCB334 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
INFOPLIST_FILE = WebImage/Info.plist;
SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvsimulator appletvos";
TARGETED_DEVICE_FAMILY = "1,2,3";
@ -1392,7 +1389,6 @@
80B6DFED2142B71600BCB334 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
INFOPLIST_FILE = WebImage/Info.plist;
SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvsimulator appletvos";
TARGETED_DEVICE_FAMILY = "1,2,3";

View File

@ -283,7 +283,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
if (transition.prepares) {
transition.prepares(view, image, imageData, cacheType, imageURL);
}
} completion:^(BOOL finished) {
} completion:^(BOOL tempFinished) {
[UIView transitionWithView:view duration:transition.duration options:transition.animationOptions animations:^{
if (!view.sd_latestOperationKey || ![originalOperationKey isEqualToString:view.sd_latestOperationKey]) {
return;