Merge pull request #3236 from dreampiggy/fix_warning

Fix the warning, enable `APPLICATION_EXTENSION_API_ONLY` for all framework target
This commit is contained in:
DreamPiggy 2021-05-21 11:50:32 +08:00 committed by GitHub
commit 2e07701e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;