diff --git a/.swiftlint.yml b/.swiftlint.yml index ca46f68f..13fdceb0 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -64,6 +64,7 @@ excluded: - fastlane/ - DerivedData/ - e2eTests/XCRemoteCacheSample/Pods + - e2eTests/StandaloneSampleApp attributes: always_on_same_line: diff --git a/e2eTests/StandaloneSampleApp/.rcinfo b/e2eTests/StandaloneSampleApp/.rcinfo new file mode 100644 index 00000000..60030012 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/.rcinfo @@ -0,0 +1,8 @@ +--- +cache_addresses: + - 'http://localhost:8080/cache/pods' +primary_repo: '.' +primary_branch: 'e2e-test-branch' +mode: 'consumer' +final_target': XCRemoteCacheSample' +artifact_maximum_age: 0 # do not use local cache in ~/Library/Caches/XCRemoteCache diff --git a/e2eTests/StandaloneSampleApp/MixedTarget/MixedTarget-Bridging-Header.h b/e2eTests/StandaloneSampleApp/MixedTarget/MixedTarget-Bridging-Header.h new file mode 100644 index 00000000..6572e273 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/MixedTarget/MixedTarget-Bridging-Header.h @@ -0,0 +1,5 @@ +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// + +#import "SomeObjC.h" diff --git a/e2eTests/StandaloneSampleApp/MixedTarget/MixedTarget.swift b/e2eTests/StandaloneSampleApp/MixedTarget/MixedTarget.swift new file mode 100644 index 00000000..fe00fe6f --- /dev/null +++ b/e2eTests/StandaloneSampleApp/MixedTarget/MixedTarget.swift @@ -0,0 +1,6 @@ +import Foundation + +@objc +public class SomeClass: NSObject { + @objc public var someEnum: SomeEnum = .default +} diff --git a/e2eTests/StandaloneSampleApp/MixedTarget/SomeObjC.h b/e2eTests/StandaloneSampleApp/MixedTarget/SomeObjC.h new file mode 100644 index 00000000..f28d6ee3 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/MixedTarget/SomeObjC.h @@ -0,0 +1,10 @@ + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, SomeEnum) { + SomeEnumDefault +}; + +NS_ASSUME_NONNULL_END diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.pbxproj b/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.pbxproj new file mode 100644 index 00000000..e0dca9d0 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.pbxproj @@ -0,0 +1,544 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 36201A102843B3C3002FF70F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36201A0F2843B3C3002FF70F /* AppDelegate.swift */; }; + 36201A122843B3C3002FF70F /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36201A112843B3C3002FF70F /* SceneDelegate.swift */; }; + 36201A142843B3C3002FF70F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36201A132843B3C3002FF70F /* ViewController.swift */; }; + 36201A172843B3C3002FF70F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 36201A152843B3C3002FF70F /* Main.storyboard */; }; + 36201A192843B3C7002FF70F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 36201A182843B3C7002FF70F /* Assets.xcassets */; }; + 36201A1C2843B3C7002FF70F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 36201A1A2843B3C7002FF70F /* LaunchScreen.storyboard */; }; + 36201A2A2843B3D3002FF70F /* MixedTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36201A292843B3D3002FF70F /* MixedTarget.swift */; }; + 36201A362843B435002FF70F /* libMixedTarget.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 36201A272843B3D3002FF70F /* libMixedTarget.a */; }; + 36201A392843BDDC002FF70F /* StandaloneObjc.m in Sources */ = {isa = PBXBuildFile; fileRef = 36201A382843BDDC002FF70F /* StandaloneObjc.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 36201A332843B431002FF70F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 36201A042843B3C3002FF70F /* Project object */; + proxyType = 1; + remoteGlobalIDString = 36201A262843B3D3002FF70F; + remoteInfo = MixedTarget; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 36201A252843B3D3002FF70F /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 36201A0C2843B3C3002FF70F /* StandaloneApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StandaloneApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 36201A0F2843B3C3002FF70F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 36201A112843B3C3002FF70F /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 36201A132843B3C3002FF70F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 36201A162843B3C3002FF70F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 36201A182843B3C7002FF70F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 36201A1B2843B3C7002FF70F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 36201A1D2843B3C7002FF70F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 36201A272843B3D3002FF70F /* libMixedTarget.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMixedTarget.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 36201A292843B3D3002FF70F /* MixedTarget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MixedTarget.swift; sourceTree = ""; }; + 36201A2F2843B413002FF70F /* MixedTarget-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MixedTarget-Bridging-Header.h"; sourceTree = ""; }; + 36201A302843B414002FF70F /* SomeObjC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SomeObjC.h; sourceTree = ""; }; + 36201A372843BDDC002FF70F /* StandaloneObjc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StandaloneObjc.h; sourceTree = ""; }; + 36201A382843BDDC002FF70F /* StandaloneObjc.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StandaloneObjc.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 36201A092843B3C3002FF70F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 36201A362843B435002FF70F /* libMixedTarget.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36201A242843B3D3002FF70F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 36201A032843B3C3002FF70F = { + isa = PBXGroup; + children = ( + 36201A0E2843B3C3002FF70F /* StandaloneApp */, + 36201A282843B3D3002FF70F /* MixedTarget */, + 36201A0D2843B3C3002FF70F /* Products */, + 36201A352843B435002FF70F /* Frameworks */, + ); + sourceTree = ""; + }; + 36201A0D2843B3C3002FF70F /* Products */ = { + isa = PBXGroup; + children = ( + 36201A0C2843B3C3002FF70F /* StandaloneApp.app */, + 36201A272843B3D3002FF70F /* libMixedTarget.a */, + ); + name = Products; + sourceTree = ""; + }; + 36201A0E2843B3C3002FF70F /* StandaloneApp */ = { + isa = PBXGroup; + children = ( + 36201A0F2843B3C3002FF70F /* AppDelegate.swift */, + 36201A112843B3C3002FF70F /* SceneDelegate.swift */, + 36201A132843B3C3002FF70F /* ViewController.swift */, + 36201A152843B3C3002FF70F /* Main.storyboard */, + 36201A182843B3C7002FF70F /* Assets.xcassets */, + 36201A1A2843B3C7002FF70F /* LaunchScreen.storyboard */, + 36201A1D2843B3C7002FF70F /* Info.plist */, + 36201A372843BDDC002FF70F /* StandaloneObjc.h */, + 36201A382843BDDC002FF70F /* StandaloneObjc.m */, + ); + path = StandaloneApp; + sourceTree = ""; + }; + 36201A282843B3D3002FF70F /* MixedTarget */ = { + isa = PBXGroup; + children = ( + 36201A292843B3D3002FF70F /* MixedTarget.swift */, + 36201A302843B414002FF70F /* SomeObjC.h */, + 36201A2F2843B413002FF70F /* MixedTarget-Bridging-Header.h */, + ); + path = MixedTarget; + sourceTree = ""; + }; + 36201A352843B435002FF70F /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 36201A0B2843B3C3002FF70F /* StandaloneApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 36201A202843B3C7002FF70F /* Build configuration list for PBXNativeTarget "StandaloneApp" */; + buildPhases = ( + 36201A082843B3C3002FF70F /* Sources */, + 36201A092843B3C3002FF70F /* Frameworks */, + 36201A0A2843B3C3002FF70F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 36201A342843B431002FF70F /* PBXTargetDependency */, + ); + name = StandaloneApp; + productName = StandaloneApp; + productReference = 36201A0C2843B3C3002FF70F /* StandaloneApp.app */; + productType = "com.apple.product-type.application"; + }; + 36201A262843B3D3002FF70F /* MixedTarget */ = { + isa = PBXNativeTarget; + buildConfigurationList = 36201A2B2843B3D3002FF70F /* Build configuration list for PBXNativeTarget "MixedTarget" */; + buildPhases = ( + 36201A232843B3D3002FF70F /* Sources */, + 36201A242843B3D3002FF70F /* Frameworks */, + 36201A252843B3D3002FF70F /* CopyFiles */, + 36201A3A2843BE0E002FF70F /* Copy Swift Objective-C Interface Header */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MixedTarget; + productName = MixedTarget; + productReference = 36201A272843B3D3002FF70F /* libMixedTarget.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 36201A042843B3C3002FF70F /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1320; + LastUpgradeCheck = 1320; + TargetAttributes = { + 36201A0B2843B3C3002FF70F = { + CreatedOnToolsVersion = 13.2.1; + LastSwiftMigration = 1320; + }; + 36201A262843B3D3002FF70F = { + CreatedOnToolsVersion = 13.2.1; + LastSwiftMigration = 1320; + }; + }; + }; + buildConfigurationList = 36201A072843B3C3002FF70F /* Build configuration list for PBXProject "StandaloneApp" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 36201A032843B3C3002FF70F; + productRefGroup = 36201A0D2843B3C3002FF70F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 36201A0B2843B3C3002FF70F /* StandaloneApp */, + 36201A262843B3D3002FF70F /* MixedTarget */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 36201A0A2843B3C3002FF70F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 36201A1C2843B3C7002FF70F /* LaunchScreen.storyboard in Resources */, + 36201A192843B3C7002FF70F /* Assets.xcassets in Resources */, + 36201A172843B3C3002FF70F /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 36201A3A2843BE0E002FF70F /* Copy Swift Objective-C Interface Header */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "$(DERIVED_SOURCES_DIR)/$(SWIFT_OBJC_INTERFACE_HEADER_NAME)", + "$(DERIVED_SOURCES_DIR)/$(SWIFT_OBJC_INTERFACE_HEADER_NAME).md5", + ); + name = "Copy Swift Objective-C Interface Header"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(BUILT_PRODUCTS_DIR)/include/$(PRODUCT_MODULE_NAME)/$(SWIFT_OBJC_INTERFACE_HEADER_NAME)", + "$(BUILT_PRODUCTS_DIR)/include/$(PRODUCT_MODULE_NAME)/$(SWIFT_OBJC_INTERFACE_HEADER_NAME).md5", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "ditto \"${SCRIPT_INPUT_FILE_0}\" \"${SCRIPT_OUTPUT_FILE_0}\"\nditto \"${SCRIPT_INPUT_FILE_1}\" \"${SCRIPT_OUTPUT_FILE_1}\" || true\n\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 36201A082843B3C3002FF70F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 36201A142843B3C3002FF70F /* ViewController.swift in Sources */, + 36201A102843B3C3002FF70F /* AppDelegate.swift in Sources */, + 36201A392843BDDC002FF70F /* StandaloneObjc.m in Sources */, + 36201A122843B3C3002FF70F /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36201A232843B3D3002FF70F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 36201A2A2843B3D3002FF70F /* MixedTarget.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 36201A342843B431002FF70F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 36201A262843B3D3002FF70F /* MixedTarget */; + targetProxy = 36201A332843B431002FF70F /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 36201A152843B3C3002FF70F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 36201A162843B3C3002FF70F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 36201A1A2843B3C7002FF70F /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 36201A1B2843B3C7002FF70F /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 36201A1E2843B3C7002FF70F /* 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++17"; + 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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 = 15.2; + 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; + }; + 36201A1F2843B3C7002FF70F /* 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++17"; + 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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 = 15.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 36201A212843B3C7002FF70F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)/include/"; + INFOPLIST_FILE = StandaloneApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.xcremotecache.StandaloneApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 36201A222843B3C7002FF70F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)/include/"; + INFOPLIST_FILE = StandaloneApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.xcremotecache.StandaloneApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 36201A2C2843B3D3002FF70F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "MixedTarget/MixedTarget-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 36201A2D2843B3D3002FF70F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "MixedTarget/MixedTarget-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 36201A072843B3C3002FF70F /* Build configuration list for PBXProject "StandaloneApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 36201A1E2843B3C7002FF70F /* Debug */, + 36201A1F2843B3C7002FF70F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 36201A202843B3C7002FF70F /* Build configuration list for PBXNativeTarget "StandaloneApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 36201A212843B3C7002FF70F /* Debug */, + 36201A222843B3C7002FF70F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 36201A2B2843B3D3002FF70F /* Build configuration list for PBXNativeTarget "MixedTarget" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 36201A2C2843B3D3002FF70F /* Debug */, + 36201A2D2843B3D3002FF70F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 36201A042843B3C3002FF70F /* Project object */; +} diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/AppDelegate.swift b/e2eTests/StandaloneSampleApp/StandaloneApp/AppDelegate.swift new file mode 100644 index 00000000..f7f60fd7 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/AppDelegate.swift @@ -0,0 +1,29 @@ +import UIKit + +@main +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. + } + + +} + diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/AccentColor.colorset/Contents.json b/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..9221b9bb --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/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/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/Contents.json b/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/Base.lproj/LaunchScreen.storyboard b/e2eTests/StandaloneSampleApp/StandaloneApp/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..865e9329 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/Base.lproj/Main.storyboard b/e2eTests/StandaloneSampleApp/StandaloneApp/Base.lproj/Main.storyboard new file mode 100644 index 00000000..25a76385 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/Info.plist b/e2eTests/StandaloneSampleApp/StandaloneApp/Info.plist new file mode 100644 index 00000000..dd3c9afd --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/SceneDelegate.swift b/e2eTests/StandaloneSampleApp/StandaloneApp/SceneDelegate.swift new file mode 100644 index 00000000..d47e9706 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/SceneDelegate.swift @@ -0,0 +1,45 @@ +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 necessarily 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. + } + + +} + diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/StandaloneObjc.h b/e2eTests/StandaloneSampleApp/StandaloneApp/StandaloneObjc.h new file mode 100644 index 00000000..0080c1f8 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/StandaloneObjc.h @@ -0,0 +1,9 @@ +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface StandaloneObjc : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/StandaloneObjc.m b/e2eTests/StandaloneSampleApp/StandaloneApp/StandaloneObjc.m new file mode 100644 index 00000000..f23e7fc2 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/StandaloneObjc.m @@ -0,0 +1,6 @@ +#import "StandaloneObjc.h" +#import "MixedTarget/MixedTarget-Swift.h" + +@implementation StandaloneObjc + +@end diff --git a/e2eTests/StandaloneSampleApp/StandaloneApp/ViewController.swift b/e2eTests/StandaloneSampleApp/StandaloneApp/ViewController.swift new file mode 100644 index 00000000..ff7cf689 --- /dev/null +++ b/e2eTests/StandaloneSampleApp/StandaloneApp/ViewController.swift @@ -0,0 +1,13 @@ +import UIKit +import MixedTarget + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/tasks/e2e.rb b/tasks/e2e.rb index efe712f7..825819c9 100644 --- a/tasks/e2e.rb +++ b/tasks/e2e.rb @@ -5,6 +5,7 @@ COCOAPODS_DIR = 'cocoapods-plugin' COCOAPODS_GEMSPEC_FILENAME = "cocoapods-xcremotecache.gemspec" E2E_COCOAPODS_SAMPLE_DIR = 'e2eTests/XCRemoteCacheSample' + E2E_STANDALONE_SAMPLE_DIR = 'e2eTests/StandaloneSampleApp' GIT_REMOTE_NAME = 'self' # Location of the remote address that points to itself GIT_REMOTE_ADDRESS = '.' @@ -25,6 +26,7 @@ Stats = Struct.new(:hits, :misses, :hit_rate) # run E2E tests + # TODO: add :run_standalone when support for bridging headers support is ready task :run => [:run_cocoapods] # run E2E tests for CocoaPods-powered projects @@ -41,6 +43,51 @@ clean end + # run E2E tests for standalone (non-CocoaPods) projects + task :run_standalone do + clean_server + start_nginx + configure_git + # Prepare binaries for the standalone mode + prepare_for_standalone(E2E_STANDALONE_SAMPLE_DIR) + + puts 'Building standalone producer...' + ####### Producer ######### + Dir.chdir(E2E_STANDALONE_SAMPLE_DIR) do + clean_git + # Run integrate the project + p "#{XCRC_BINARIES}/xcprepare integrate --input StandaloneApp.xcodeproj --mode producer --final-producer-target StandaloneApp" + system("pwd") + system("#{XCRC_BINARIES}/xcprepare integrate --input StandaloneApp.xcodeproj --mode producer --final-producer-target StandaloneApp") + # Build the project to fill in the cache + build_project(nil, "StandaloneApp.xcodeproj", 'StandaloneApp') + system("#{XCRC_BINARIES}/xcprepare stats --reset --format json") + end + + puts 'Building standalone consumer...' + + ####### Consumer ######### + # new dir to emulate different srcroot + consumer_srcroot = "#{E2E_STANDALONE_SAMPLE_DIR}_consumer" + system("mv #{E2E_STANDALONE_SAMPLE_DIR} #{consumer_srcroot}") + at_exit { puts("reverting #{E2E_STANDALONE_SAMPLE_DIR}"); system("mv #{consumer_srcroot} #{E2E_STANDALONE_SAMPLE_DIR}") } + + prepare_for_standalone(consumer_srcroot) + Dir.chdir(consumer_srcroot) do + system("#{XCRC_BINARIES}/xcprepare integrate --input StandaloneApp.xcodeproj --mode consumer") + build_project(nil, "StandaloneApp.xcodeproj", 'StandaloneApp', {'derivedDataPath' => "#{DERIVED_DATA_PATH}_consumer"}) + valide_hit_rate + + puts 'Building standalone consumer with local change...' + # Extra: validate local compilation of the Standalone ObjC code + system("echo '' >> StandaloneApp/StandaloneObjc.m") + build_project(nil, "StandaloneApp.xcodeproj", 'StandaloneApp', {'derivedDataPath' => "#{DERIVED_DATA_PATH}_consumer_local"}) + end + + # Revert all side effects + clean + end + # Build and install a plugin def self.install_cocoapods_plugin Dir.chdir(COCOAPODS_DIR) do @@ -114,16 +161,16 @@ def self.dump_podfile(config, source) end end - def self.build_project(extra_args = {}) - system('pod install') + def self.build_project(workspace, project, scheme, extra_args = {}) xcodebuild_args = { - 'workspace' => 'XCRemoteCacheSample.xcworkspace', - 'scheme' => 'XCRemoteCacheSample', + 'workspace' => workspace, + 'project' => project, + 'scheme' => scheme, 'configuration' => 'Debug', 'sdk' => 'iphonesimulator', 'destination' => 'generic/platform=iOS Simulator', 'derivedDataPath' => DERIVED_DATA_PATH, - }.merge(extra_args) + }.merge(extra_args).compact xcodebuild_vars = { 'EXCLUDED_ARCHS' => 'arm64 i386' } @@ -131,7 +178,7 @@ def self.build_project(extra_args = {}) args.push(*xcodebuild_args.map {|k,v| "-#{k} '#{v}'"}) args.push(*xcodebuild_vars.map {|k,v| "#{k}='#{v}'"}) args.push('clean build') - args.push("> #{LOG_NAME}") + args.push("| tee #{LOG_NAME}") puts 'Building a project with xcodebuild...' system(args.join(' ')) unless $?.success? @@ -140,6 +187,11 @@ def self.build_project(extra_args = {}) end end + def self.build_project_cocoapods(extra_args = {}) + system('pod install') + build_project('XCRemoteCacheSample.xcworkspace', nil, 'XCRemoteCacheSample', extra_args) + end + def self.read_stats stats_json_string = JSON.parse(`#{XCRC_BINARIES}/xcprepare stats --format json`) misses = stats_json_string.fetch('miss_count', 0) @@ -153,8 +205,8 @@ def self.read_stats # validate 100% hit rate def self.valide_hit_rate status = read_stats() - raise "Failure: Hit rate is only #{status.hit_rate}% (#{status.hits}/#{status.all_targets})" if status.misses > 0 all_targets = status.misses + status.hits + raise "Failure: Hit rate is only #{status.hit_rate}% (#{all_targets})" if status.misses > 0 puts("Hit rate: #{status.hit_rate}% (#{status.hits}/#{all_targets})") end @@ -169,7 +221,7 @@ def self.run_cocoapods_scenario(template_path) dump_podfile(producer_configuration, template_path) puts('Building producer ...') Dir.chdir(E2E_COCOAPODS_SAMPLE_DIR) do - build_project + build_project_cocoapods # reset XCRemoteCache stats system("#{XCRC_BINARIES}/xcprepare stats --reset --format json") end @@ -179,8 +231,13 @@ def self.run_cocoapods_scenario(template_path) dump_podfile(consumer_configuration, template_path) puts('Building consumer ...') Dir.chdir(E2E_COCOAPODS_SAMPLE_DIR) do - build_project({'derivedDataPath' => "#{DERIVED_DATA_PATH}_consumer"}) + build_project_cocoapods({'derivedDataPath' => "#{DERIVED_DATA_PATH}_consumer"}) valide_hit_rate end end + + def self.prepare_for_standalone(dir) + clean_git + system("ln -s $(pwd)/releases #{dir}/#{XCRC_BINARIES}") + end end