From 8189a8669c56f39df4124d3ea8e8a2f18c55fcef Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Thu, 16 Jan 2025 08:12:53 +0100 Subject: [PATCH] Swift: add skeleton iOS app for integration testing --- .../osx/hello-ios/Files.expected | 4 + .../integration-tests/osx/hello-ios/Files.ql | 4 + .../hello-ios.xcodeproj/project.pbxproj | 327 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 35 ++ .../hello-ios/Assets.xcassets/Contents.json | 6 + .../osx/hello-ios/hello-ios/ContentView.swift | 24 ++ .../Preview Assets.xcassets/Contents.json | 6 + .../hello-ios/hello-ios/hello_iosApp.swift | 17 + .../integration-tests/osx/hello-ios/test.py | 11 + 11 files changed, 452 insertions(+) create mode 100644 swift/ql/integration-tests/osx/hello-ios/Files.expected create mode 100644 swift/ql/integration-tests/osx/hello-ios/Files.ql create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.pbxproj create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/Contents.json create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios/ContentView.swift create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 swift/ql/integration-tests/osx/hello-ios/hello-ios/hello_iosApp.swift create mode 100644 swift/ql/integration-tests/osx/hello-ios/test.py diff --git a/swift/ql/integration-tests/osx/hello-ios/Files.expected b/swift/ql/integration-tests/osx/hello-ios/Files.expected new file mode 100644 index 000000000000..1ecfa0a99dc8 --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/Files.expected @@ -0,0 +1,4 @@ +| build/hello-ios.build/Release-iphoneos/hello-ios.build/DerivedSources/GeneratedAssetSymbols.swift:0:0:0:0 | build/hello-ios.build/Release-iphoneos/hello-ios.build/DerivedSources/GeneratedAssetSymbols.swift | +| file://:0:0:0:0 | | +| hello-ios/ContentView.swift:0:0:0:0 | hello-ios/ContentView.swift | +| hello-ios/hello_iosApp.swift:0:0:0:0 | hello-ios/hello_iosApp.swift | diff --git a/swift/ql/integration-tests/osx/hello-ios/Files.ql b/swift/ql/integration-tests/osx/hello-ios/Files.ql new file mode 100644 index 000000000000..9782ea4ce0bd --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/Files.ql @@ -0,0 +1,4 @@ +import swift + +from File f +select f diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.pbxproj b/swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.pbxproj new file mode 100644 index 000000000000..82c80b9968e0 --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.pbxproj @@ -0,0 +1,327 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXFileReference section */ + 686DF9C02D38E876006582C0 /* hello-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "hello-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + 686DF9C22D38E876006582C0 /* hello-ios */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = "hello-ios"; + sourceTree = ""; + }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + 686DF9BD2D38E876006582C0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 686DF9B72D38E876006582C0 = { + isa = PBXGroup; + children = ( + 686DF9C22D38E876006582C0 /* hello-ios */, + 686DF9C12D38E876006582C0 /* Products */, + ); + sourceTree = ""; + }; + 686DF9C12D38E876006582C0 /* Products */ = { + isa = PBXGroup; + children = ( + 686DF9C02D38E876006582C0 /* hello-ios.app */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 686DF9BF2D38E876006582C0 /* hello-ios */ = { + isa = PBXNativeTarget; + buildConfigurationList = 686DF9CE2D38E878006582C0 /* Build configuration list for PBXNativeTarget "hello-ios" */; + buildPhases = ( + 686DF9BC2D38E876006582C0 /* Sources */, + 686DF9BD2D38E876006582C0 /* Frameworks */, + 686DF9BE2D38E876006582C0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + 686DF9C22D38E876006582C0 /* hello-ios */, + ); + name = "hello-ios"; + packageProductDependencies = ( + ); + productName = "hello-ios"; + productReference = 686DF9C02D38E876006582C0 /* hello-ios.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 686DF9B82D38E876006582C0 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1620; + LastUpgradeCheck = 1620; + TargetAttributes = { + 686DF9BF2D38E876006582C0 = { + CreatedOnToolsVersion = 16.2; + }; + }; + }; + buildConfigurationList = 686DF9BB2D38E876006582C0 /* Build configuration list for PBXProject "hello-ios" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 686DF9B72D38E876006582C0; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = 686DF9C12D38E876006582C0 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 686DF9BF2D38E876006582C0 /* hello-ios */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 686DF9BE2D38E876006582C0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 686DF9BC2D38E876006582C0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 686DF9CC2D38E878006582C0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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 = 18.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 686DF9CD2D38E878006582C0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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 = 18.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 686DF9CF2D38E878006582C0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"hello-ios/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + 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 = "test.hello-ios"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 686DF9D02D38E878006582C0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"hello-ios/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + 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 = "test.hello-ios"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 686DF9BB2D38E876006582C0 /* Build configuration list for PBXProject "hello-ios" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 686DF9CC2D38E878006582C0 /* Debug */, + 686DF9CD2D38E878006582C0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 686DF9CE2D38E878006582C0 /* Build configuration list for PBXNativeTarget "hello-ios" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 686DF9CF2D38E878006582C0 /* Debug */, + 686DF9D02D38E878006582C0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 686DF9B82D38E876006582C0 /* Project object */; +} diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000000..919434a6254f --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AccentColor.colorset/Contents.json b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 000000000000..eb8789700816 --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AppIcon.appiconset/Contents.json b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000000..2305880107db --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,35 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "tinted" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/Contents.json b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/Contents.json new file mode 100644 index 000000000000..73c00596a7fc --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios/ContentView.swift b/swift/ql/integration-tests/osx/hello-ios/hello-ios/ContentView.swift new file mode 100644 index 000000000000..e9b7edaa48d8 --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios/ContentView.swift @@ -0,0 +1,24 @@ +// +// ContentView.swift +// hello-ios +// +// Created by Paolo Tranquilli on 16.01.2025. +// + +import SwiftUI + +struct ContentView: View { + var body: some View { + VStack { + Image(systemName: "globe") + .imageScale(.large) + .foregroundStyle(.tint) + Text("Hello, world!") + } + .padding() + } +} + +#Preview { + ContentView() +} diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios/Preview Content/Preview Assets.xcassets/Contents.json b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 000000000000..73c00596a7fc --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/swift/ql/integration-tests/osx/hello-ios/hello-ios/hello_iosApp.swift b/swift/ql/integration-tests/osx/hello-ios/hello-ios/hello_iosApp.swift new file mode 100644 index 000000000000..f2492be216f0 --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/hello-ios/hello_iosApp.swift @@ -0,0 +1,17 @@ +// +// hello_iosApp.swift +// hello-ios +// +// Created by Paolo Tranquilli on 16.01.2025. +// + +import SwiftUI + +@main +struct hello_iosApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/swift/ql/integration-tests/osx/hello-ios/test.py b/swift/ql/integration-tests/osx/hello-ios/test.py new file mode 100644 index 000000000000..135d61d8473e --- /dev/null +++ b/swift/ql/integration-tests/osx/hello-ios/test.py @@ -0,0 +1,11 @@ +import runs_on +import pytest + + +@runs_on.macos +@pytest.mark.ql_test("DB-CHECK", xfail=True) +def test(codeql, swift): + codeql.database.create( + command="xcodebuild build " + "CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO", + )