From 77830dd4f266f0023bfb0659e3650539d7ebc59c Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sun, 27 Oct 2019 22:25:02 +0800 Subject: [PATCH 1/5] Add all the Test Case on tvOS platform, using the same code as iOS --- Configs/Module-Shared.xcconfig | 4 +- Podfile | 6 + .../project.pbxproj | 217 ++++++++++++++++-- .../xcshareddata/xcschemes/Tests Mac.xcscheme | 26 +-- .../xcshareddata/xcschemes/Tests TV.xcscheme | 78 +++++++ .../xcshareddata/xcschemes/Tests.xcscheme | 8 +- Tests/Tests TV/Info.plist | 22 ++ Tests/Tests/SDWebImageDownloaderTests.m | 2 +- Tests/Tests/en.lproj/InfoPlist.strings | 2 - 9 files changed, 324 insertions(+), 41 deletions(-) create mode 100644 Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests TV.xcscheme create mode 100644 Tests/Tests TV/Info.plist delete mode 100644 Tests/Tests/en.lproj/InfoPlist.strings diff --git a/Configs/Module-Shared.xcconfig b/Configs/Module-Shared.xcconfig index 27844bed..aafd987b 100644 --- a/Configs/Module-Shared.xcconfig +++ b/Configs/Module-Shared.xcconfig @@ -11,7 +11,7 @@ CLANG_ANALYZER_NONNULL = YES CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE // Choose a standard or non-standard C++ language dialect. -CLANG_CXX_LANGUAGE_STANDARD = gnu++0x +CLANG_CXX_LANGUAGE_STANDARD = gnu++14 // Choose a version of the C++ standard library to use. CLANG_CXX_LIBRARY = libc++ @@ -116,7 +116,7 @@ ENABLE_STRICT_OBJC_MSGSEND = YES FRAMEWORK_SEARCH_PATHS = $(inherited) // Choose a standard or non-standard C language dialect. -GCC_C_LANGUAGE_STANDARD = gnu99 +GCC_C_LANGUAGE_STANDARD = gnu11 // Faster function calls for applications. Not appropriate for shared libraries, which need to be position-independent. GCC_DYNAMIC_NO_PIC = NO diff --git a/Podfile b/Podfile index b26c4aa4..f3acf03c 100644 --- a/Podfile +++ b/Podfile @@ -59,3 +59,9 @@ target 'Tests Mac' do platform :osx, '10.10' all_test_pods end + +target 'Tests TV' do + project test_project_path + platform :tvos, '9.2' + all_test_pods +end diff --git a/Tests/SDWebImage Tests.xcodeproj/project.pbxproj b/Tests/SDWebImage Tests.xcodeproj/project.pbxproj index 4ab82f67..1dc372cb 100644 --- a/Tests/SDWebImage Tests.xcodeproj/project.pbxproj +++ b/Tests/SDWebImage Tests.xcodeproj/project.pbxproj @@ -34,6 +34,34 @@ 32905E65211D786E00460FCF /* TestImage.heif in Resources */ = {isa = PBXBuildFile; fileRef = 32905E63211D786E00460FCF /* TestImage.heif */; }; 3297A09F23374D1700814590 /* TestImageAnimated.heic in Resources */ = {isa = PBXBuildFile; fileRef = 3297A09E23374D1600814590 /* TestImageAnimated.heic */; }; 3297A0A023374D1700814590 /* TestImageAnimated.heic in Resources */ = {isa = PBXBuildFile; fileRef = 3297A09E23374D1600814590 /* TestImageAnimated.heic */; }; + 329922732365DC6100EAFD97 /* SDImageCacheTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA248D68195475D800390AB0 /* SDImageCacheTests.m */; }; + 329922742365DC6100EAFD97 /* SDWebImageManagerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA248D6A195476AC00390AB0 /* SDWebImageManagerTests.m */; }; + 329922752365DC6100EAFD97 /* SDWebImageDownloaderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E3C51E819B46E370092B5E6 /* SDWebImageDownloaderTests.m */; }; + 329922762365DC6100EAFD97 /* SDImageCoderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 433BBBB41D7EF5C00086B6E9 /* SDImageCoderTests.m */; }; + 329922772365DC6100EAFD97 /* SDWebImagePrefetcherTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4369C1D01D97F80F007E863A /* SDWebImagePrefetcherTests.m */; }; + 329922782365DC6100EAFD97 /* SDImageTransformerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3254C31F20641077008D1022 /* SDImageTransformerTests.m */; }; + 329922792365DC6100EAFD97 /* SDWebCacheCategoriesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4369C2731D9804B1007E863A /* SDWebCacheCategoriesTests.m */; }; + 3299227A2365DC6100EAFD97 /* SDCategoriesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 32B99E8A203AF8690017FD66 /* SDCategoriesTests.m */; }; + 3299227B2365DC6100EAFD97 /* SDUtilsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3222417E2272F808002429DB /* SDUtilsTests.m */; }; + 3299227C2365DC6100EAFD97 /* SDAnimatedImageTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32A571552037DB2D002EDAAE /* SDAnimatedImageTest.m */; }; + 3299227D2365DC6100EAFD97 /* SDMockFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 37D122871EC48B5E00D98CEB /* SDMockFileManager.m */; }; + 3299227E2365DC6100EAFD97 /* SDTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D7AF05F1F329763000083C2 /* SDTestCase.m */; }; + 3299227F2365DC6100EAFD97 /* SDWebImageTestCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 328BB6DC20825E9800760D6C /* SDWebImageTestCache.m */; }; + 329922802365DC6100EAFD97 /* SDWebImageTestDownloadOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 3226ECBA20754F7700FAFACF /* SDWebImageTestDownloadOperation.m */; }; + 329922812365DC6100EAFD97 /* SDWebImageTestCoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 32E6F0311F3A1B4700A945E6 /* SDWebImageTestCoder.m */; }; + 329922822365DC6100EAFD97 /* SDWebImageTestTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = 3264FF2E205D42CB00F6BD48 /* SDWebImageTestTransformer.m */; }; + 329922832365DC6100EAFD97 /* SDWebImageTestLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = 323B8E1E20862322008952BE /* SDWebImageTestLoader.m */; }; + 329922842365DC6C00EAFD97 /* MonochromeTestImage.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 433BBBBA1D7EFA8B0086B6E9 /* MonochromeTestImage.jpg */; }; + 329922852365DC6C00EAFD97 /* TestEXIF.png in Resources */ = {isa = PBXBuildFile; fileRef = 324047432271956F007C53E1 /* TestEXIF.png */; }; + 329922862365DC6C00EAFD97 /* TestImage.gif in Resources */ = {isa = PBXBuildFile; fileRef = 433BBBB61D7EF8200086B6E9 /* TestImage.gif */; }; + 329922872365DC6C00EAFD97 /* TestLoopCount.gif in Resources */ = {isa = PBXBuildFile; fileRef = 326E69462334C0C200B7252C /* TestLoopCount.gif */; }; + 329922882365DC6C00EAFD97 /* TestImage.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 5F7F38AC1AE2A77A00B0E330 /* TestImage.jpg */; }; + 329922892365DC6C00EAFD97 /* TestImageLarge.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 43828A441DA67F9900000E62 /* TestImageLarge.jpg */; }; + 3299228A2365DC6C00EAFD97 /* TestImage.png in Resources */ = {isa = PBXBuildFile; fileRef = 433BBBB81D7EF8260086B6E9 /* TestImage.png */; }; + 3299228B2365DC6C00EAFD97 /* TestImage.heic in Resources */ = {isa = PBXBuildFile; fileRef = 327A418B211D660600495442 /* TestImage.heic */; }; + 3299228C2365DC6C00EAFD97 /* TestImage.heif in Resources */ = {isa = PBXBuildFile; fileRef = 32905E63211D786E00460FCF /* TestImage.heif */; }; + 3299228D2365DC6C00EAFD97 /* TestImageAnimated.apng in Resources */ = {isa = PBXBuildFile; fileRef = 327054E1206CEFF3006EA328 /* TestImageAnimated.apng */; }; + 3299228E2365DC6C00EAFD97 /* TestImageAnimated.heic in Resources */ = {isa = PBXBuildFile; fileRef = 3297A09E23374D1600814590 /* TestImageAnimated.heic */; }; 32A571562037DB2D002EDAAE /* SDAnimatedImageTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32A571552037DB2D002EDAAE /* SDAnimatedImageTest.m */; }; 32B99E8B203AF8690017FD66 /* SDCategoriesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 32B99E8A203AF8690017FD66 /* SDCategoriesTests.m */; }; 32B99E9B203B2EDD0017FD66 /* SDTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D7AF05F1F329763000083C2 /* SDTestCase.m */; }; @@ -61,11 +89,11 @@ 4369C2741D9804B1007E863A /* SDWebCacheCategoriesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4369C2731D9804B1007E863A /* SDWebCacheCategoriesTests.m */; }; 43828A451DA67F9900000E62 /* TestImageLarge.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 43828A441DA67F9900000E62 /* TestImageLarge.jpg */; }; 5F7F38AD1AE2A77A00B0E330 /* TestImage.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 5F7F38AC1AE2A77A00B0E330 /* TestImage.jpg */; }; + 770D3B9C7914D53EBA0524DB /* Pods_Tests_TV.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B73996BC299E8E0174661628 /* Pods_Tests_TV.framework */; }; 8A99B512A5EA6D2FECFB993C /* Pods_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FF4CD8ECC995718F4F44BE4 /* Pods_Tests.framework */; }; DA248D57195472AA00390AB0 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA248D56195472AA00390AB0 /* XCTest.framework */; }; DA248D59195472AA00390AB0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA248D58195472AA00390AB0 /* Foundation.framework */; }; DA248D5B195472AA00390AB0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA248D5A195472AA00390AB0 /* UIKit.framework */; }; - DA248D61195472AA00390AB0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = DA248D5F195472AA00390AB0 /* InfoPlist.strings */; }; DA248D69195475D800390AB0 /* SDImageCacheTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA248D68195475D800390AB0 /* SDImageCacheTests.m */; }; DA248D6B195476AC00390AB0 /* SDWebImageManagerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA248D6A195476AC00390AB0 /* SDWebImageManagerTests.m */; }; F02C3B9D48DEEC3622E96336 /* Pods_Tests_Mac.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A39EDFED1067C297B91792CB /* Pods_Tests_Mac.framework */; }; @@ -96,6 +124,8 @@ 328BB6DC20825E9800760D6C /* SDWebImageTestCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDWebImageTestCache.m; sourceTree = ""; }; 32905E63211D786E00460FCF /* TestImage.heif */ = {isa = PBXFileReference; lastKnownFileType = file; path = TestImage.heif; sourceTree = ""; }; 3297A09E23374D1600814590 /* TestImageAnimated.heic */ = {isa = PBXFileReference; lastKnownFileType = file; path = TestImageAnimated.heic; sourceTree = ""; }; + 3299222A2365D9A100EAFD97 /* Tests TV.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Tests TV.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 3299222E2365D9A100EAFD97 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32A571552037DB2D002EDAAE /* SDAnimatedImageTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDAnimatedImageTest.m; sourceTree = ""; }; 32B99E8A203AF8690017FD66 /* SDCategoriesTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDCategoriesTests.m; sourceTree = ""; }; 32B99E92203B2DF90017FD66 /* Tests Mac.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Tests Mac.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -112,16 +142,18 @@ 4369C2731D9804B1007E863A /* SDWebCacheCategoriesTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDWebCacheCategoriesTests.m; sourceTree = ""; }; 43828A441DA67F9900000E62 /* TestImageLarge.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = TestImageLarge.jpg; sourceTree = ""; }; 4835C04148C737D0FC50EF87 /* Pods-Tests Mac.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests Mac.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests Mac/Pods-Tests Mac.release.xcconfig"; sourceTree = ""; }; + 5B0011ED58CC9998E68ECCE3 /* Pods-Tests TV.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests TV.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests TV/Pods-Tests TV.debug.xcconfig"; sourceTree = ""; }; 5F7F38AC1AE2A77A00B0E330 /* TestImage.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = TestImage.jpg; sourceTree = ""; }; 6700DBD9C45B00AB5F77472A /* Pods-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig"; sourceTree = ""; }; + 6CB13D7A081654B2E4018F53 /* Pods-Tests TV.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests TV.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests TV/Pods-Tests TV.release.xcconfig"; sourceTree = ""; }; A39EDFED1067C297B91792CB /* Pods_Tests_Mac.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tests_Mac.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + B73996BC299E8E0174661628 /* Pods_Tests_TV.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tests_TV.framework; sourceTree = BUILT_PRODUCTS_DIR; }; BC6C6328775701B5AAEEF4FF /* Pods-Tests Mac.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests Mac.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests Mac/Pods-Tests Mac.debug.xcconfig"; sourceTree = ""; }; DA248D53195472AA00390AB0 /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; DA248D56195472AA00390AB0 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; DA248D58195472AA00390AB0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; DA248D5A195472AA00390AB0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; DA248D5E195472AA00390AB0 /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; - DA248D60195472AA00390AB0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; DA248D64195472AA00390AB0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; DA248D68195475D800390AB0 /* SDImageCacheTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDImageCacheTests.m; sourceTree = ""; }; DA248D6A195476AC00390AB0 /* SDWebImageManagerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDWebImageManagerTests.m; sourceTree = ""; }; @@ -131,6 +163,14 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 329922272365D9A100EAFD97 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 770D3B9C7914D53EBA0524DB /* Pods_Tests_TV.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 32B99E8F203B2DF90017FD66 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -160,10 +200,20 @@ 6700DBD9C45B00AB5F77472A /* Pods-Tests.release.xcconfig */, BC6C6328775701B5AAEEF4FF /* Pods-Tests Mac.debug.xcconfig */, 4835C04148C737D0FC50EF87 /* Pods-Tests Mac.release.xcconfig */, + 5B0011ED58CC9998E68ECCE3 /* Pods-Tests TV.debug.xcconfig */, + 6CB13D7A081654B2E4018F53 /* Pods-Tests TV.release.xcconfig */, ); name = Pods; sourceTree = ""; }; + 3299222B2365D9A100EAFD97 /* Tests TV */ = { + isa = PBXGroup; + children = ( + 3299222E2365D9A100EAFD97 /* Info.plist */, + ); + path = "Tests TV"; + sourceTree = ""; + }; 32B99E93203B2DF90017FD66 /* Tests Mac */ = { isa = PBXGroup; children = ( @@ -196,6 +246,7 @@ EADD19E8219915E300804BB0 /* Configs */, DA248D5C195472AA00390AB0 /* Tests */, 32B99E93203B2DF90017FD66 /* Tests Mac */, + 3299222B2365D9A100EAFD97 /* Tests TV */, DA248D55195472AA00390AB0 /* Frameworks */, DA248D54195472AA00390AB0 /* Products */, 07C2B07CECA5631B430A737D /* Pods */, @@ -207,6 +258,7 @@ children = ( DA248D53195472AA00390AB0 /* Tests.xctest */, 32B99E92203B2DF90017FD66 /* Tests Mac.xctest */, + 3299222A2365D9A100EAFD97 /* Tests TV.xctest */, ); name = Products; sourceTree = ""; @@ -219,6 +271,7 @@ DA248D5A195472AA00390AB0 /* UIKit.framework */, 0FF4CD8ECC995718F4F44BE4 /* Pods_Tests.framework */, A39EDFED1067C297B91792CB /* Pods_Tests_Mac.framework */, + B73996BC299E8E0174661628 /* Pods_Tests_TV.framework */, ); name = Frameworks; sourceTree = ""; @@ -260,7 +313,6 @@ isa = PBXGroup; children = ( DA248D5E195472AA00390AB0 /* Tests-Info.plist */, - DA248D5F195472AA00390AB0 /* InfoPlist.strings */, DA248D64195472AA00390AB0 /* Tests-Prefix.pch */, ); name = "Supporting Files"; @@ -283,6 +335,25 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 329922292365D9A100EAFD97 /* Tests TV */ = { + isa = PBXNativeTarget; + buildConfigurationList = 329922312365D9A100EAFD97 /* Build configuration list for PBXNativeTarget "Tests TV" */; + buildPhases = ( + C5CC63AFA1303DA4F45B1B0E /* [CP] Check Pods Manifest.lock */, + 329922262365D9A100EAFD97 /* Sources */, + 329922272365D9A100EAFD97 /* Frameworks */, + 329922282365D9A100EAFD97 /* Resources */, + 0F96305955CD6B35DF70EEED /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Tests TV"; + productName = "Tests TV"; + productReference = 3299222A2365D9A100EAFD97 /* Tests TV.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; 32B99E91203B2DF90017FD66 /* Tests Mac */ = { isa = PBXNativeTarget; buildConfigurationList = 32B99E99203B2DF90017FD66 /* Build configuration list for PBXNativeTarget "Tests Mac" */; @@ -329,6 +400,10 @@ attributes = { LastUpgradeCheck = 1020; TargetAttributes = { + 329922292365D9A100EAFD97 = { + CreatedOnToolsVersion = 11.1; + ProvisioningStyle = Automatic; + }; 32B99E91203B2DF90017FD66 = { CreatedOnToolsVersion = 9.2; ProvisioningStyle = Manual; @@ -350,11 +425,30 @@ targets = ( DA248D52195472AA00390AB0 /* Tests */, 32B99E91203B2DF90017FD66 /* Tests Mac */, + 329922292365D9A100EAFD97 /* Tests TV */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 329922282365D9A100EAFD97 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3299228D2365DC6C00EAFD97 /* TestImageAnimated.apng in Resources */, + 3299228B2365DC6C00EAFD97 /* TestImage.heic in Resources */, + 329922872365DC6C00EAFD97 /* TestLoopCount.gif in Resources */, + 3299228C2365DC6C00EAFD97 /* TestImage.heif in Resources */, + 329922892365DC6C00EAFD97 /* TestImageLarge.jpg in Resources */, + 3299228A2365DC6C00EAFD97 /* TestImage.png in Resources */, + 329922842365DC6C00EAFD97 /* MonochromeTestImage.jpg in Resources */, + 329922882365DC6C00EAFD97 /* TestImage.jpg in Resources */, + 3299228E2365DC6C00EAFD97 /* TestImageAnimated.heic in Resources */, + 329922862365DC6C00EAFD97 /* TestImage.gif in Resources */, + 329922852365DC6C00EAFD97 /* TestEXIF.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 32B99E90203B2DF90017FD66 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -382,7 +476,6 @@ 32905E64211D786E00460FCF /* TestImage.heif in Resources */, 43828A451DA67F9900000E62 /* TestImageLarge.jpg in Resources */, 433BBBB71D7EF8200086B6E9 /* TestImage.gif in Resources */, - DA248D61195472AA00390AB0 /* InfoPlist.strings in Resources */, 433BBBB91D7EF8260086B6E9 /* TestImage.png in Resources */, 3297A09F23374D1700814590 /* TestImageAnimated.heic in Resources */, 327054E2206CEFF3006EA328 /* TestImageAnimated.apng in Resources */, @@ -413,6 +506,28 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; + 0F96305955CD6B35DF70EEED /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Tests TV/Pods-Tests TV-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/SDWebImage-Core-MapKit-tvOS/SDWebImage.framework", + "${BUILT_PRODUCTS_DIR}/Expecta-tvOS/Expecta.framework", + "${BUILT_PRODUCTS_DIR}/KVOController-tvOS/KVOController.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Expecta.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KVOController.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Tests TV/Pods-Tests TV-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; 3742A83C8569610075078F4D /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -475,9 +590,55 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Tests/Pods-Tests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; + C5CC63AFA1303DA4F45B1B0E /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Tests TV-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 329922262365D9A100EAFD97 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3299227B2365DC6100EAFD97 /* SDUtilsTests.m in Sources */, + 329922822365DC6100EAFD97 /* SDWebImageTestTransformer.m in Sources */, + 329922802365DC6100EAFD97 /* SDWebImageTestDownloadOperation.m in Sources */, + 3299227C2365DC6100EAFD97 /* SDAnimatedImageTest.m in Sources */, + 329922762365DC6100EAFD97 /* SDImageCoderTests.m in Sources */, + 329922772365DC6100EAFD97 /* SDWebImagePrefetcherTests.m in Sources */, + 329922812365DC6100EAFD97 /* SDWebImageTestCoder.m in Sources */, + 3299227F2365DC6100EAFD97 /* SDWebImageTestCache.m in Sources */, + 329922752365DC6100EAFD97 /* SDWebImageDownloaderTests.m in Sources */, + 329922732365DC6100EAFD97 /* SDImageCacheTests.m in Sources */, + 329922792365DC6100EAFD97 /* SDWebCacheCategoriesTests.m in Sources */, + 329922782365DC6100EAFD97 /* SDImageTransformerTests.m in Sources */, + 3299227A2365DC6100EAFD97 /* SDCategoriesTests.m in Sources */, + 3299227D2365DC6100EAFD97 /* SDMockFileManager.m in Sources */, + 3299227E2365DC6100EAFD97 /* SDTestCase.m in Sources */, + 329922832365DC6100EAFD97 /* SDWebImageTestLoader.m in Sources */, + 329922742365DC6100EAFD97 /* SDWebImageManagerTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 32B99E8E203B2DF90017FD66 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -528,18 +689,35 @@ }; /* End PBXSourcesBuildPhase section */ -/* Begin PBXVariantGroup section */ - DA248D5F195472AA00390AB0 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - DA248D60195472AA00390AB0 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - /* Begin XCBuildConfiguration section */ + 3299222F2365D9A100EAFD97 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5B0011ED58CC9998E68ECCE3 /* Pods-Tests TV.debug.xcconfig */; + buildSettings = { + INFOPLIST_FILE = "Tests TV/Info.plist"; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + SDKROOT = appletvos; + SUPPORTED_PLATFORMS = "appletvsimulator appletvos"; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 9.2; + }; + name = Debug; + }; + 329922302365D9A100EAFD97 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6CB13D7A081654B2E4018F53 /* Pods-Tests TV.release.xcconfig */; + buildSettings = { + INFOPLIST_FILE = "Tests TV/Info.plist"; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = appletvos; + SUPPORTED_PLATFORMS = "appletvsimulator appletvos"; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 9.2; + }; + name = Release; + }; 32B99E97203B2DF90017FD66 /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = BC6C6328775701B5AAEEF4FF /* Pods-Tests Mac.debug.xcconfig */; @@ -613,6 +791,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 329922312365D9A100EAFD97 /* Build configuration list for PBXNativeTarget "Tests TV" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3299222F2365D9A100EAFD97 /* Debug */, + 329922302365D9A100EAFD97 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 32B99E99203B2DF90017FD66 /* Build configuration list for PBXNativeTarget "Tests Mac" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests Mac.xcscheme b/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests Mac.xcscheme index e13a3da8..b0b382f7 100644 --- a/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests Mac.xcscheme +++ b/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests Mac.xcscheme @@ -26,8 +26,17 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - codeCoverageEnabled = "YES" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES"> + + + + @@ -40,17 +49,6 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme b/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme index 2efd6efe..82e51beb 100644 --- a/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme +++ b/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme @@ -26,8 +26,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - codeCoverageEnabled = "YES" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES"> @@ -40,8 +40,6 @@ - - - - + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Tests/Tests/SDWebImageDownloaderTests.m b/Tests/Tests/SDWebImageDownloaderTests.m index dce920d1..684cbce7 100644 --- a/Tests/Tests/SDWebImageDownloaderTests.m +++ b/Tests/Tests/SDWebImageDownloaderTests.m @@ -607,7 +607,7 @@ // 2. Test webURL with Zip encoded data works SDWebImageDownloaderDecryptor *decryptor = [SDWebImageDownloaderDecryptor decryptorWithBlock:^NSData * _Nullable(NSData * _Nonnull data, NSURLResponse * _Nullable response) { - if (@available(iOS 13, macOS 10.15, *)) { + if (@available(iOS 13, macOS 10.15, tvOS 13, *)) { return [data decompressedDataUsingAlgorithm:NSDataCompressionAlgorithmZlib error:nil]; } else if (@available (iOS 9, macOS 10.11, *)) { NSMutableData *decodedData = [NSMutableData dataWithLength:10 * data.length]; diff --git a/Tests/Tests/en.lproj/InfoPlist.strings b/Tests/Tests/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28ff..00000000 --- a/Tests/Tests/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - From b1f8cf5ed2bd0588fb7383c65da4719a9acd069a Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sun, 27 Oct 2019 22:30:35 +0800 Subject: [PATCH 2/5] Update travis-CI script to add tvOS test coverage --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index b5d982d1..365a6830 100644 --- a/.travis.yml +++ b/.travis.yml @@ -77,9 +77,12 @@ script: - mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/iOS - xcodebuild clean test -workspace SDWebImage.xcworkspace -scheme 'Tests Mac' -destination 'platform=macOS,arch=x86_64' -configuration Debug -UseModernBuildSystem=NO CODE_SIGNING_ALLOWED=NO | xcpretty -c - mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/macOS + - xcodebuild clean test -workspace SDWebImage.xcworkspace -scheme 'Tests TV' -destination 'platform=tvOS Simulator,name=Apple TV' -configuration Debug -UseModernBuildSystem=NO CODE_SIGNING_ALLOWED=NO | xcpretty -c + - mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/tvOS after_success: - export PATH="/usr/local/opt/curl/bin:$PATH" - curl --version - bash <(curl -s https://codecov.io/bash) -D './DerivedData/macOS' -J '^SDWebImage$' -c -X gcov -F macos - bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImage$' -c -X gcov -F ios + - bash <(curl -s https://codecov.io/bash) -D './DerivedData/tvOS' -J '^SDWebImage$' -c -X gcov -F tvos From 0db2169665df5ec4e3cd643dd01109cd8e0f7ed1 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sun, 27 Oct 2019 22:48:43 +0800 Subject: [PATCH 3/5] Update tvOS available check on test case --- Tests/Tests/SDWebImageDownloaderTests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Tests/SDWebImageDownloaderTests.m b/Tests/Tests/SDWebImageDownloaderTests.m index 684cbce7..e5f0a2b5 100644 --- a/Tests/Tests/SDWebImageDownloaderTests.m +++ b/Tests/Tests/SDWebImageDownloaderTests.m @@ -609,7 +609,7 @@ SDWebImageDownloaderDecryptor *decryptor = [SDWebImageDownloaderDecryptor decryptorWithBlock:^NSData * _Nullable(NSData * _Nonnull data, NSURLResponse * _Nullable response) { if (@available(iOS 13, macOS 10.15, tvOS 13, *)) { return [data decompressedDataUsingAlgorithm:NSDataCompressionAlgorithmZlib error:nil]; - } else if (@available (iOS 9, macOS 10.11, *)) { + } else if (@available (iOS 9, macOS 10.11, tvOS 9, *)) { NSMutableData *decodedData = [NSMutableData dataWithLength:10 * data.length]; compression_decode_buffer((uint8_t *)decodedData.bytes, decodedData.length, data.bytes, data.length, nil, COMPRESSION_ZLIB); return [decodedData copy]; From 57ce5eb45988b1d39be88636e0df78450ef78753 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 28 Oct 2019 13:11:57 +0800 Subject: [PATCH 4/5] Add the tvOS flag for codecov --- codecov.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index fa9ffd00..70efa745 100644 --- a/codecov.yml +++ b/codecov.yml @@ -9,4 +9,6 @@ coverage: ios: flags: ios macos: - flags: macos \ No newline at end of file + flags: macos + tvos: + flags: tvos From a4888081ea58f339ed1dba8753b7a3843c1ae6e0 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 28 Oct 2019 13:18:12 +0800 Subject: [PATCH 5/5] Change the "Tests" iOS target name into "Tests iOS", since now we have 3 test target, to help for readability --- .travis.yml | 2 +- Podfile | 2 +- .../project.pbxproj | 38 ++++++++++--------- .../{Tests.xcscheme => Tests iOS.xcscheme} | 12 +++--- 4 files changed, 29 insertions(+), 25 deletions(-) rename Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/{Tests.xcscheme => Tests iOS.xcscheme} (90%) diff --git a/.travis.yml b/.travis.yml index 365a6830..ab119c1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,7 +73,7 @@ script: - mkdir DerivedData - echo Run the tests - - xcodebuild clean test -workspace SDWebImage.xcworkspace -scheme 'Tests' -destination 'platform=iOS Simulator,name=iPhone 11 Pro' -configuration Debug -UseModernBuildSystem=NO CODE_SIGNING_ALLOWED=NO | xcpretty -c + - xcodebuild clean test -workspace SDWebImage.xcworkspace -scheme 'Tests iOS' -destination 'platform=iOS Simulator,name=iPhone 11 Pro' -configuration Debug -UseModernBuildSystem=NO CODE_SIGNING_ALLOWED=NO | xcpretty -c - mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/iOS - xcodebuild clean test -workspace SDWebImage.xcworkspace -scheme 'Tests Mac' -destination 'platform=macOS,arch=x86_64' -configuration Debug -UseModernBuildSystem=NO CODE_SIGNING_ALLOWED=NO | xcpretty -c - mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/macOS diff --git a/Podfile b/Podfile index f3acf03c..44ea977f 100644 --- a/Podfile +++ b/Podfile @@ -48,7 +48,7 @@ target 'SDWebImage Watch Demo Extension' do end # Test Project -target 'Tests' do +target 'Tests iOS' do project test_project_path platform :ios, '8.0' all_test_pods diff --git a/Tests/SDWebImage Tests.xcodeproj/project.pbxproj b/Tests/SDWebImage Tests.xcodeproj/project.pbxproj index 1dc372cb..c98bbde1 100644 --- a/Tests/SDWebImage Tests.xcodeproj/project.pbxproj +++ b/Tests/SDWebImage Tests.xcodeproj/project.pbxproj @@ -90,7 +90,7 @@ 43828A451DA67F9900000E62 /* TestImageLarge.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 43828A441DA67F9900000E62 /* TestImageLarge.jpg */; }; 5F7F38AD1AE2A77A00B0E330 /* TestImage.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 5F7F38AC1AE2A77A00B0E330 /* TestImage.jpg */; }; 770D3B9C7914D53EBA0524DB /* Pods_Tests_TV.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B73996BC299E8E0174661628 /* Pods_Tests_TV.framework */; }; - 8A99B512A5EA6D2FECFB993C /* Pods_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FF4CD8ECC995718F4F44BE4 /* Pods_Tests.framework */; }; + AFDBD4044E95252B70FB85CE /* Pods_Tests_iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD1BD830DA7388EB6C110B3B /* Pods_Tests_iOS.framework */; }; DA248D57195472AA00390AB0 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA248D56195472AA00390AB0 /* XCTest.framework */; }; DA248D59195472AA00390AB0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA248D58195472AA00390AB0 /* Foundation.framework */; }; DA248D5B195472AA00390AB0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA248D5A195472AA00390AB0 /* UIKit.framework */; }; @@ -101,7 +101,6 @@ /* Begin PBXFileReference section */ 0AD1DD30CCB1B928CFA9740B /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig"; sourceTree = ""; }; - 0FF4CD8ECC995718F4F44BE4 /* Pods_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 1E3C51E819B46E370092B5E6 /* SDWebImageDownloaderTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDWebImageDownloaderTests.m; sourceTree = ""; }; 2D7AF05E1F329763000083C2 /* SDTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDTestCase.h; sourceTree = ""; }; 2D7AF05F1F329763000083C2 /* SDTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDTestCase.m; sourceTree = ""; }; @@ -142,14 +141,17 @@ 4369C2731D9804B1007E863A /* SDWebCacheCategoriesTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDWebCacheCategoriesTests.m; sourceTree = ""; }; 43828A441DA67F9900000E62 /* TestImageLarge.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = TestImageLarge.jpg; sourceTree = ""; }; 4835C04148C737D0FC50EF87 /* Pods-Tests Mac.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests Mac.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests Mac/Pods-Tests Mac.release.xcconfig"; sourceTree = ""; }; + 4DCBA1DEFE6C68C4A83C9B9E /* Pods-Tests iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests iOS.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests iOS/Pods-Tests iOS.release.xcconfig"; sourceTree = ""; }; 5B0011ED58CC9998E68ECCE3 /* Pods-Tests TV.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests TV.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests TV/Pods-Tests TV.debug.xcconfig"; sourceTree = ""; }; 5F7F38AC1AE2A77A00B0E330 /* TestImage.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = TestImage.jpg; sourceTree = ""; }; 6700DBD9C45B00AB5F77472A /* Pods-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig"; sourceTree = ""; }; 6CB13D7A081654B2E4018F53 /* Pods-Tests TV.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests TV.release.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests TV/Pods-Tests TV.release.xcconfig"; sourceTree = ""; }; A39EDFED1067C297B91792CB /* Pods_Tests_Mac.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tests_Mac.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + AD1BD830DA7388EB6C110B3B /* Pods_Tests_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tests_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; B73996BC299E8E0174661628 /* Pods_Tests_TV.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tests_TV.framework; sourceTree = BUILT_PRODUCTS_DIR; }; BC6C6328775701B5AAEEF4FF /* Pods-Tests Mac.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests Mac.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests Mac/Pods-Tests Mac.debug.xcconfig"; sourceTree = ""; }; - DA248D53195472AA00390AB0 /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + D80C63148416AADCBDD7FABA /* Pods-Tests iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests iOS.debug.xcconfig"; path = "../Pods/Target Support Files/Pods-Tests iOS/Pods-Tests iOS.debug.xcconfig"; sourceTree = ""; }; + DA248D53195472AA00390AB0 /* Tests iOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Tests iOS.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; DA248D56195472AA00390AB0 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; DA248D58195472AA00390AB0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; DA248D5A195472AA00390AB0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; @@ -186,7 +188,7 @@ DA248D57195472AA00390AB0 /* XCTest.framework in Frameworks */, DA248D5B195472AA00390AB0 /* UIKit.framework in Frameworks */, DA248D59195472AA00390AB0 /* Foundation.framework in Frameworks */, - 8A99B512A5EA6D2FECFB993C /* Pods_Tests.framework in Frameworks */, + AFDBD4044E95252B70FB85CE /* Pods_Tests_iOS.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -202,6 +204,8 @@ 4835C04148C737D0FC50EF87 /* Pods-Tests Mac.release.xcconfig */, 5B0011ED58CC9998E68ECCE3 /* Pods-Tests TV.debug.xcconfig */, 6CB13D7A081654B2E4018F53 /* Pods-Tests TV.release.xcconfig */, + D80C63148416AADCBDD7FABA /* Pods-Tests iOS.debug.xcconfig */, + 4DCBA1DEFE6C68C4A83C9B9E /* Pods-Tests iOS.release.xcconfig */, ); name = Pods; sourceTree = ""; @@ -256,7 +260,7 @@ DA248D54195472AA00390AB0 /* Products */ = { isa = PBXGroup; children = ( - DA248D53195472AA00390AB0 /* Tests.xctest */, + DA248D53195472AA00390AB0 /* Tests iOS.xctest */, 32B99E92203B2DF90017FD66 /* Tests Mac.xctest */, 3299222A2365D9A100EAFD97 /* Tests TV.xctest */, ); @@ -269,9 +273,9 @@ DA248D56195472AA00390AB0 /* XCTest.framework */, DA248D58195472AA00390AB0 /* Foundation.framework */, DA248D5A195472AA00390AB0 /* UIKit.framework */, - 0FF4CD8ECC995718F4F44BE4 /* Pods_Tests.framework */, A39EDFED1067C297B91792CB /* Pods_Tests_Mac.framework */, B73996BC299E8E0174661628 /* Pods_Tests_TV.framework */, + AD1BD830DA7388EB6C110B3B /* Pods_Tests_iOS.framework */, ); name = Frameworks; sourceTree = ""; @@ -373,9 +377,9 @@ productReference = 32B99E92203B2DF90017FD66 /* Tests Mac.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; - DA248D52195472AA00390AB0 /* Tests */ = { + DA248D52195472AA00390AB0 /* Tests iOS */ = { isa = PBXNativeTarget; - buildConfigurationList = DA248D67195472AA00390AB0 /* Build configuration list for PBXNativeTarget "Tests" */; + buildConfigurationList = DA248D67195472AA00390AB0 /* Build configuration list for PBXNativeTarget "Tests iOS" */; buildPhases = ( 05AE34B81B820465D0395C5A /* [CP] Check Pods Manifest.lock */, DA248D4F195472AA00390AB0 /* Sources */, @@ -387,9 +391,9 @@ ); dependencies = ( ); - name = Tests; + name = "Tests iOS"; productName = Tests; - productReference = DA248D53195472AA00390AB0 /* Tests.xctest */; + productReference = DA248D53195472AA00390AB0 /* Tests iOS.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ @@ -423,7 +427,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - DA248D52195472AA00390AB0 /* Tests */, + DA248D52195472AA00390AB0 /* Tests iOS */, 32B99E91203B2DF90017FD66 /* Tests Mac */, 329922292365D9A100EAFD97 /* Tests TV */, ); @@ -499,7 +503,7 @@ ); name = "[CP] Check Pods Manifest.lock"; outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Tests-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-Tests iOS-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; @@ -574,7 +578,7 @@ files = ( ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Tests/Pods-Tests-frameworks.sh", + "${PODS_ROOT}/Target Support Files/Pods-Tests iOS/Pods-Tests iOS-frameworks.sh", "${BUILT_PRODUCTS_DIR}/SDWebImage-Core-MapKit-iOS/SDWebImage.framework", "${BUILT_PRODUCTS_DIR}/Expecta-iOS/Expecta.framework", "${BUILT_PRODUCTS_DIR}/KVOController-iOS/KVOController.framework", @@ -587,7 +591,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Tests/Pods-Tests-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Tests iOS/Pods-Tests iOS-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; C5CC63AFA1303DA4F45B1B0E /* [CP] Check Pods Manifest.lock */ = { @@ -764,7 +768,7 @@ }; DA248D65195472AA00390AB0 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 0AD1DD30CCB1B928CFA9740B /* Pods-Tests.debug.xcconfig */; + baseConfigurationReference = D80C63148416AADCBDD7FABA /* Pods-Tests iOS.debug.xcconfig */; buildSettings = { GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; @@ -777,7 +781,7 @@ }; DA248D66195472AA00390AB0 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 6700DBD9C45B00AB5F77472A /* Pods-Tests.release.xcconfig */; + baseConfigurationReference = 4DCBA1DEFE6C68C4A83C9B9E /* Pods-Tests iOS.release.xcconfig */; buildSettings = { GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; @@ -818,7 +822,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - DA248D67195472AA00390AB0 /* Build configuration list for PBXNativeTarget "Tests" */ = { + DA248D67195472AA00390AB0 /* Build configuration list for PBXNativeTarget "Tests iOS" */ = { isa = XCConfigurationList; buildConfigurations = ( DA248D65195472AA00390AB0 /* Debug */, diff --git a/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme b/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests iOS.xcscheme similarity index 90% rename from Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme rename to Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests iOS.xcscheme index 82e51beb..ed69b9d3 100644 --- a/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme +++ b/Tests/SDWebImage Tests.xcodeproj/xcshareddata/xcschemes/Tests iOS.xcscheme @@ -15,8 +15,8 @@ @@ -34,8 +34,8 @@ @@ -55,8 +55,8 @@