commit 681aa72bea25b5a155e3479db1e3dabc65db64a8 Author: panqihua <1029559041@qq.com> Date: Fri Jul 3 14:57:47 2020 -0700 Initial Commit diff --git a/cloudmusic.xcodeproj/project.pbxproj b/cloudmusic.xcodeproj/project.pbxproj new file mode 100644 index 0000000..cdf5f64 --- /dev/null +++ b/cloudmusic.xcodeproj/project.pbxproj @@ -0,0 +1,610 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 7151CAA824AFE14D004C4563 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7151CAA724AFE14D004C4563 /* AppDelegate.swift */; }; + 7151CAAA24AFE14D004C4563 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7151CAA924AFE14D004C4563 /* SceneDelegate.swift */; }; + 7151CAAC24AFE14D004C4563 /* FirstViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7151CAAB24AFE14D004C4563 /* FirstViewController.swift */; }; + 7151CAAE24AFE14D004C4563 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7151CAAD24AFE14D004C4563 /* SecondViewController.swift */; }; + 7151CAB124AFE14D004C4563 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7151CAAF24AFE14D004C4563 /* Main.storyboard */; }; + 7151CAB424AFE14D004C4563 /* cloudmusic.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 7151CAB224AFE14D004C4563 /* cloudmusic.xcdatamodeld */; }; + 7151CAB624AFE152004C4563 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7151CAB524AFE152004C4563 /* Assets.xcassets */; }; + 7151CAB924AFE152004C4563 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7151CAB724AFE152004C4563 /* LaunchScreen.storyboard */; }; + 7151CAC424AFE153004C4563 /* cloudmusicTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7151CAC324AFE153004C4563 /* cloudmusicTests.swift */; }; + 7151CACF24AFE153004C4563 /* cloudmusicUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7151CACE24AFE153004C4563 /* cloudmusicUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 7151CAC024AFE153004C4563 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7151CA9C24AFE14D004C4563 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7151CAA324AFE14D004C4563; + remoteInfo = cloudmusic; + }; + 7151CACB24AFE153004C4563 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7151CA9C24AFE14D004C4563 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7151CAA324AFE14D004C4563; + remoteInfo = cloudmusic; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 7151CAA424AFE14D004C4563 /* cloudmusic.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = cloudmusic.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 7151CAA724AFE14D004C4563 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7151CAA924AFE14D004C4563 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 7151CAAB24AFE14D004C4563 /* FirstViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstViewController.swift; sourceTree = ""; }; + 7151CAAD24AFE14D004C4563 /* SecondViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecondViewController.swift; sourceTree = ""; }; + 7151CAB024AFE14D004C4563 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 7151CAB324AFE14D004C4563 /* cloudmusic.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = cloudmusic.xcdatamodel; sourceTree = ""; }; + 7151CAB524AFE152004C4563 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7151CAB824AFE152004C4563 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 7151CABA24AFE152004C4563 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7151CABF24AFE153004C4563 /* cloudmusicTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = cloudmusicTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7151CAC324AFE153004C4563 /* cloudmusicTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = cloudmusicTests.swift; sourceTree = ""; }; + 7151CAC524AFE153004C4563 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7151CACA24AFE153004C4563 /* cloudmusicUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = cloudmusicUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7151CACE24AFE153004C4563 /* cloudmusicUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = cloudmusicUITests.swift; sourceTree = ""; }; + 7151CAD024AFE153004C4563 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 7151CAA124AFE14D004C4563 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7151CABC24AFE153004C4563 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7151CAC724AFE153004C4563 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 7151CA9B24AFE14D004C4563 = { + isa = PBXGroup; + children = ( + 7151CAA624AFE14D004C4563 /* cloudmusic */, + 7151CAC224AFE153004C4563 /* cloudmusicTests */, + 7151CACD24AFE153004C4563 /* cloudmusicUITests */, + 7151CAA524AFE14D004C4563 /* Products */, + ); + sourceTree = ""; + }; + 7151CAA524AFE14D004C4563 /* Products */ = { + isa = PBXGroup; + children = ( + 7151CAA424AFE14D004C4563 /* cloudmusic.app */, + 7151CABF24AFE153004C4563 /* cloudmusicTests.xctest */, + 7151CACA24AFE153004C4563 /* cloudmusicUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 7151CAA624AFE14D004C4563 /* cloudmusic */ = { + isa = PBXGroup; + children = ( + 7151CAA724AFE14D004C4563 /* AppDelegate.swift */, + 7151CAA924AFE14D004C4563 /* SceneDelegate.swift */, + 7151CAAB24AFE14D004C4563 /* FirstViewController.swift */, + 7151CAAD24AFE14D004C4563 /* SecondViewController.swift */, + 7151CAAF24AFE14D004C4563 /* Main.storyboard */, + 7151CAB524AFE152004C4563 /* Assets.xcassets */, + 7151CAB724AFE152004C4563 /* LaunchScreen.storyboard */, + 7151CABA24AFE152004C4563 /* Info.plist */, + 7151CAB224AFE14D004C4563 /* cloudmusic.xcdatamodeld */, + ); + path = cloudmusic; + sourceTree = ""; + }; + 7151CAC224AFE153004C4563 /* cloudmusicTests */ = { + isa = PBXGroup; + children = ( + 7151CAC324AFE153004C4563 /* cloudmusicTests.swift */, + 7151CAC524AFE153004C4563 /* Info.plist */, + ); + path = cloudmusicTests; + sourceTree = ""; + }; + 7151CACD24AFE153004C4563 /* cloudmusicUITests */ = { + isa = PBXGroup; + children = ( + 7151CACE24AFE153004C4563 /* cloudmusicUITests.swift */, + 7151CAD024AFE153004C4563 /* Info.plist */, + ); + path = cloudmusicUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 7151CAA324AFE14D004C4563 /* cloudmusic */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7151CAD324AFE153004C4563 /* Build configuration list for PBXNativeTarget "cloudmusic" */; + buildPhases = ( + 7151CAA024AFE14D004C4563 /* Sources */, + 7151CAA124AFE14D004C4563 /* Frameworks */, + 7151CAA224AFE14D004C4563 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = cloudmusic; + productName = cloudmusic; + productReference = 7151CAA424AFE14D004C4563 /* cloudmusic.app */; + productType = "com.apple.product-type.application"; + }; + 7151CABE24AFE153004C4563 /* cloudmusicTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7151CAD624AFE153004C4563 /* Build configuration list for PBXNativeTarget "cloudmusicTests" */; + buildPhases = ( + 7151CABB24AFE153004C4563 /* Sources */, + 7151CABC24AFE153004C4563 /* Frameworks */, + 7151CABD24AFE153004C4563 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7151CAC124AFE153004C4563 /* PBXTargetDependency */, + ); + name = cloudmusicTests; + productName = cloudmusicTests; + productReference = 7151CABF24AFE153004C4563 /* cloudmusicTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 7151CAC924AFE153004C4563 /* cloudmusicUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7151CAD924AFE153004C4563 /* Build configuration list for PBXNativeTarget "cloudmusicUITests" */; + buildPhases = ( + 7151CAC624AFE153004C4563 /* Sources */, + 7151CAC724AFE153004C4563 /* Frameworks */, + 7151CAC824AFE153004C4563 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7151CACC24AFE153004C4563 /* PBXTargetDependency */, + ); + name = cloudmusicUITests; + productName = cloudmusicUITests; + productReference = 7151CACA24AFE153004C4563 /* cloudmusicUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7151CA9C24AFE14D004C4563 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1150; + LastUpgradeCheck = 1150; + ORGANIZATIONNAME = "Qihua Pan"; + TargetAttributes = { + 7151CAA324AFE14D004C4563 = { + CreatedOnToolsVersion = 11.5; + }; + 7151CABE24AFE153004C4563 = { + CreatedOnToolsVersion = 11.5; + TestTargetID = 7151CAA324AFE14D004C4563; + }; + 7151CAC924AFE153004C4563 = { + CreatedOnToolsVersion = 11.5; + TestTargetID = 7151CAA324AFE14D004C4563; + }; + }; + }; + buildConfigurationList = 7151CA9F24AFE14D004C4563 /* Build configuration list for PBXProject "cloudmusic" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 7151CA9B24AFE14D004C4563; + productRefGroup = 7151CAA524AFE14D004C4563 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7151CAA324AFE14D004C4563 /* cloudmusic */, + 7151CABE24AFE153004C4563 /* cloudmusicTests */, + 7151CAC924AFE153004C4563 /* cloudmusicUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 7151CAA224AFE14D004C4563 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7151CAB924AFE152004C4563 /* LaunchScreen.storyboard in Resources */, + 7151CAB624AFE152004C4563 /* Assets.xcassets in Resources */, + 7151CAB124AFE14D004C4563 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7151CABD24AFE153004C4563 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7151CAC824AFE153004C4563 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 7151CAA024AFE14D004C4563 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7151CAAE24AFE14D004C4563 /* SecondViewController.swift in Sources */, + 7151CAB424AFE14D004C4563 /* cloudmusic.xcdatamodeld in Sources */, + 7151CAAC24AFE14D004C4563 /* FirstViewController.swift in Sources */, + 7151CAA824AFE14D004C4563 /* AppDelegate.swift in Sources */, + 7151CAAA24AFE14D004C4563 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7151CABB24AFE153004C4563 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7151CAC424AFE153004C4563 /* cloudmusicTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7151CAC624AFE153004C4563 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7151CACF24AFE153004C4563 /* cloudmusicUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 7151CAC124AFE153004C4563 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7151CAA324AFE14D004C4563 /* cloudmusic */; + targetProxy = 7151CAC024AFE153004C4563 /* PBXContainerItemProxy */; + }; + 7151CACC24AFE153004C4563 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7151CAA324AFE14D004C4563 /* cloudmusic */; + targetProxy = 7151CACB24AFE153004C4563 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 7151CAAF24AFE14D004C4563 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7151CAB024AFE14D004C4563 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 7151CAB724AFE152004C4563 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7151CAB824AFE152004C4563 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 7151CAD124AFE153004C4563 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 7151CAD224AFE153004C4563 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 7151CAD424AFE153004C4563 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = cloudmusic/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sukura.cloudmusic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 7151CAD524AFE153004C4563 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = cloudmusic/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sukura.cloudmusic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 7151CAD724AFE153004C4563 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = cloudmusicTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sukura.cloudmusicTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cloudmusic.app/cloudmusic"; + }; + name = Debug; + }; + 7151CAD824AFE153004C4563 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = cloudmusicTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sukura.cloudmusicTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cloudmusic.app/cloudmusic"; + }; + name = Release; + }; + 7151CADA24AFE153004C4563 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = cloudmusicUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sukura.cloudmusicUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = cloudmusic; + }; + name = Debug; + }; + 7151CADB24AFE153004C4563 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = cloudmusicUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sukura.cloudmusicUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = cloudmusic; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7151CA9F24AFE14D004C4563 /* Build configuration list for PBXProject "cloudmusic" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7151CAD124AFE153004C4563 /* Debug */, + 7151CAD224AFE153004C4563 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7151CAD324AFE153004C4563 /* Build configuration list for PBXNativeTarget "cloudmusic" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7151CAD424AFE153004C4563 /* Debug */, + 7151CAD524AFE153004C4563 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7151CAD624AFE153004C4563 /* Build configuration list for PBXNativeTarget "cloudmusicTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7151CAD724AFE153004C4563 /* Debug */, + 7151CAD824AFE153004C4563 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7151CAD924AFE153004C4563 /* Build configuration list for PBXNativeTarget "cloudmusicUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7151CADA24AFE153004C4563 /* Debug */, + 7151CADB24AFE153004C4563 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + 7151CAB224AFE14D004C4563 /* cloudmusic.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + 7151CAB324AFE14D004C4563 /* cloudmusic.xcdatamodel */, + ); + currentVersion = 7151CAB324AFE14D004C4563 /* cloudmusic.xcdatamodel */; + path = cloudmusic.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = 7151CA9C24AFE14D004C4563 /* Project object */; +} diff --git a/cloudmusic.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/cloudmusic.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..7b6535d --- /dev/null +++ b/cloudmusic.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/cloudmusic.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/cloudmusic.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/cloudmusic.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/cloudmusic.xcodeproj/xcuserdata/qihuapan.xcuserdatad/xcschemes/xcschememanagement.plist b/cloudmusic.xcodeproj/xcuserdata/qihuapan.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..c664d70 --- /dev/null +++ b/cloudmusic.xcodeproj/xcuserdata/qihuapan.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + cloudmusic.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/cloudmusic/AppDelegate.swift b/cloudmusic/AppDelegate.swift new file mode 100644 index 0000000..26b40a1 --- /dev/null +++ b/cloudmusic/AppDelegate.swift @@ -0,0 +1,82 @@ +// +// AppDelegate.swift +// cloudmusic +// +// Created by Qihua Pan on 2020/7/3. +// Copyright © 2020 Qihua Pan. All rights reserved. +// + +import UIKit +import CoreData + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + // MARK: - Core Data stack + + lazy var persistentContainer: NSPersistentContainer = { + /* + The persistent container for the application. This implementation + creates and returns a container, having loaded the store for the + application to it. This property is optional since there are legitimate + error conditions that could cause the creation of the store to fail. + */ + let container = NSPersistentContainer(name: "cloudmusic") + container.loadPersistentStores(completionHandler: { (storeDescription, error) in + if let error = error as NSError? { + // Replace this implementation with code to handle the error appropriately. + // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + + /* + Typical reasons for an error here include: + * The parent directory does not exist, cannot be created, or disallows writing. + * The persistent store is not accessible, due to permissions or data protection when the device is locked. + * The device is out of space. + * The store could not be migrated to the current model version. + Check the error message to determine what the actual problem was. + */ + fatalError("Unresolved error \(error), \(error.userInfo)") + } + }) + return container + }() + + // MARK: - Core Data Saving support + + func saveContext () { + let context = persistentContainer.viewContext + if context.hasChanges { + do { + try context.save() + } catch { + // Replace this implementation with code to handle the error appropriately. + // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + let nserror = error as NSError + fatalError("Unresolved error \(nserror), \(nserror.userInfo)") + } + } + } + +} + diff --git a/cloudmusic/Assets.xcassets/AppIcon.appiconset/Contents.json b/cloudmusic/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/cloudmusic/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/cloudmusic/Assets.xcassets/Contents.json b/cloudmusic/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/cloudmusic/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/cloudmusic/Assets.xcassets/first.imageset/Contents.json b/cloudmusic/Assets.xcassets/first.imageset/Contents.json new file mode 100644 index 0000000..33a7451 --- /dev/null +++ b/cloudmusic/Assets.xcassets/first.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "first.pdf" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/cloudmusic/Assets.xcassets/first.imageset/first.pdf b/cloudmusic/Assets.xcassets/first.imageset/first.pdf new file mode 100644 index 0000000..47d911d Binary files /dev/null and b/cloudmusic/Assets.xcassets/first.imageset/first.pdf differ diff --git a/cloudmusic/Assets.xcassets/second.imageset/Contents.json b/cloudmusic/Assets.xcassets/second.imageset/Contents.json new file mode 100644 index 0000000..03bd9c9 --- /dev/null +++ b/cloudmusic/Assets.xcassets/second.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "second.pdf" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/cloudmusic/Assets.xcassets/second.imageset/second.pdf b/cloudmusic/Assets.xcassets/second.imageset/second.pdf new file mode 100644 index 0000000..401614e Binary files /dev/null and b/cloudmusic/Assets.xcassets/second.imageset/second.pdf differ diff --git a/cloudmusic/Base.lproj/LaunchScreen.storyboard b/cloudmusic/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/cloudmusic/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cloudmusic/Base.lproj/Main.storyboard b/cloudmusic/Base.lproj/Main.storyboard new file mode 100644 index 0000000..7a85710 --- /dev/null +++ b/cloudmusic/Base.lproj/Main.storyboard @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cloudmusic/FirstViewController.swift b/cloudmusic/FirstViewController.swift new file mode 100644 index 0000000..c3cb8a7 --- /dev/null +++ b/cloudmusic/FirstViewController.swift @@ -0,0 +1,20 @@ +// +// FirstViewController.swift +// cloudmusic +// +// Created by Qihua Pan on 2020/7/3. +// Copyright © 2020 Qihua Pan. All rights reserved. +// + +import UIKit + +class FirstViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/cloudmusic/Info.plist b/cloudmusic/Info.plist new file mode 100644 index 0000000..e7f6f58 --- /dev/null +++ b/cloudmusic/Info.plist @@ -0,0 +1,74 @@ + + + + + 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 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UIStatusBarTintParameters + + UINavigationBar + + Style + UIBarStyleDefault + Translucent + + + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/cloudmusic/SceneDelegate.swift b/cloudmusic/SceneDelegate.swift new file mode 100644 index 0000000..318ac0e --- /dev/null +++ b/cloudmusic/SceneDelegate.swift @@ -0,0 +1,56 @@ +// +// SceneDelegate.swift +// cloudmusic +// +// Created by Qihua Pan on 2020/7/3. +// Copyright © 2020 Qihua Pan. All rights reserved. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + + // Save changes in the application's managed object context when the application transitions to the background. + (UIApplication.shared.delegate as? AppDelegate)?.saveContext() + } + + +} + diff --git a/cloudmusic/SecondViewController.swift b/cloudmusic/SecondViewController.swift new file mode 100644 index 0000000..9f6df4c --- /dev/null +++ b/cloudmusic/SecondViewController.swift @@ -0,0 +1,20 @@ +// +// SecondViewController.swift +// cloudmusic +// +// Created by Qihua Pan on 2020/7/3. +// Copyright © 2020 Qihua Pan. All rights reserved. +// + +import UIKit + +class SecondViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/cloudmusic/cloudmusic.xcdatamodeld/.xccurrentversion b/cloudmusic/cloudmusic.xcdatamodeld/.xccurrentversion new file mode 100644 index 0000000..cd0262a --- /dev/null +++ b/cloudmusic/cloudmusic.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + cloudmusic.xcdatamodel + + diff --git a/cloudmusic/cloudmusic.xcdatamodeld/cloudmusic.xcdatamodel/contents b/cloudmusic/cloudmusic.xcdatamodeld/cloudmusic.xcdatamodel/contents new file mode 100644 index 0000000..50d2514 --- /dev/null +++ b/cloudmusic/cloudmusic.xcdatamodeld/cloudmusic.xcdatamodel/contents @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/cloudmusicTests/Info.plist b/cloudmusicTests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/cloudmusicTests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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/cloudmusicTests/cloudmusicTests.swift b/cloudmusicTests/cloudmusicTests.swift new file mode 100644 index 0000000..75cca3a --- /dev/null +++ b/cloudmusicTests/cloudmusicTests.swift @@ -0,0 +1,34 @@ +// +// cloudmusicTests.swift +// cloudmusicTests +// +// Created by Qihua Pan on 2020/7/3. +// Copyright © 2020 Qihua Pan. All rights reserved. +// + +import XCTest +@testable import cloudmusic + +class cloudmusicTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/cloudmusicUITests/Info.plist b/cloudmusicUITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/cloudmusicUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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/cloudmusicUITests/cloudmusicUITests.swift b/cloudmusicUITests/cloudmusicUITests.swift new file mode 100644 index 0000000..eaab914 --- /dev/null +++ b/cloudmusicUITests/cloudmusicUITests.swift @@ -0,0 +1,43 @@ +// +// cloudmusicUITests.swift +// cloudmusicUITests +// +// Created by Qihua Pan on 2020/7/3. +// Copyright © 2020 Qihua Pan. All rights reserved. +// + +import XCTest + +class cloudmusicUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTOSSignpostMetric.applicationLaunch]) { + XCUIApplication().launch() + } + } + } +}