From e622b7f949fd2bce27b657bcf3f0f7aabd7c2ad5 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Mon, 29 Apr 2024 14:23:01 -0400 Subject: [PATCH] configure tests --- .../macos/Runner.xcodeproj/project.pbxproj | 35 +++++++++++++++++-- .../macos/Runner/DebugProfile.entitlements | 6 ++++ .../example/macos/Runner/Release.entitlements | 8 +++++ 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/packages/veilid_support/example/macos/Runner.xcodeproj/project.pbxproj b/packages/veilid_support/example/macos/Runner.xcodeproj/project.pbxproj index b6717eb..91980e8 100644 --- a/packages/veilid_support/example/macos/Runner.xcodeproj/project.pbxproj +++ b/packages/veilid_support/example/macos/Runner.xcodeproj/project.pbxproj @@ -27,6 +27,8 @@ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 4380113B2BE014F40006987E /* libveilid_flutter.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 4380113A2BE014F40006987E /* libveilid_flutter.dylib */; }; + 4380113C2BE014F40006987E /* libveilid_flutter.dylib in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 4380113A2BE014F40006987E /* libveilid_flutter.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 6CFA599ADEA1F061ADEDAE10 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 80431090FA5BD99A5B868F84 /* Pods_Runner.framework */; }; 91F51E973F11EFA10521D360 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C8526B53F6575BAE32CE8D8 /* Pods_RunnerTests.framework */; }; /* End PBXBuildFile section */ @@ -55,6 +57,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( + 4380113C2BE014F40006987E /* libveilid_flutter.dylib in Bundle Framework */, ); name = "Bundle Framework"; runOnlyForDeploymentPostprocessing = 0; @@ -79,6 +82,7 @@ 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 3597F23CF6B8931362B671EB /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 4380113A2BE014F40006987E /* libveilid_flutter.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libveilid_flutter.dylib; path = "../../../../../veilid/target/lipo-darwin/libveilid_flutter.dylib"; sourceTree = ""; }; 4C8526B53F6575BAE32CE8D8 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 80431090FA5BD99A5B868F84 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -103,6 +107,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 4380113B2BE014F40006987E /* libveilid_flutter.dylib in Frameworks */, 6CFA599ADEA1F061ADEDAE10 /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -195,13 +200,13 @@ A24D16EEC9CB70E4E4BE3331 /* Pods-RunnerTests.release.xcconfig */, 83A502A4616091D33488BCEE /* Pods-RunnerTests.profile.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; D73912EC22F37F3D000D13A0 /* Frameworks */ = { isa = PBXGroup; children = ( + 4380113A2BE014F40006987E /* libveilid_flutter.dylib */, 80431090FA5BD99A5B868F84 /* Pods_Runner.framework */, 4C8526B53F6575BAE32CE8D8 /* Pods_RunnerTests.framework */, ); @@ -270,7 +275,6 @@ 33CC10EC2044A3C60003C045 = { CreatedOnToolsVersion = 9.2; LastSwiftMigration = 1100; - ProvisioningStyle = Automatic; SystemCapabilities = { com.apple.Sandbox = { enabled = 1; @@ -572,13 +576,22 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = XP5LBLT7M7; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "\"${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"", + /usr/lib/swift, + "../../../../../veilid/target/lipo-darwin", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.veilid.packages.veilid-support.tests"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; @@ -704,13 +717,22 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = XP5LBLT7M7; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "\"${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"", + /usr/lib/swift, + "../../../../../veilid/target/lipo-darwin", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.veilid.packages.veilid-support.tests"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -724,13 +746,22 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = XP5LBLT7M7; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "\"${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"", + /usr/lib/swift, + "../../../../../veilid/target/lipo-darwin", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.veilid.packages.veilid-support.tests"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; diff --git a/packages/veilid_support/example/macos/Runner/DebugProfile.entitlements b/packages/veilid_support/example/macos/Runner/DebugProfile.entitlements index dddb8a3..1871fce 100644 --- a/packages/veilid_support/example/macos/Runner/DebugProfile.entitlements +++ b/packages/veilid_support/example/macos/Runner/DebugProfile.entitlements @@ -6,7 +6,13 @@ com.apple.security.cs.allow-jit + com.apple.security.network.client + com.apple.security.network.server + keychain-access-groups + + $(AppIdentifierPrefix)org.veilid.packages.veilid-support.tests + diff --git a/packages/veilid_support/example/macos/Runner/Release.entitlements b/packages/veilid_support/example/macos/Runner/Release.entitlements index 852fa1a..bc8f1bd 100644 --- a/packages/veilid_support/example/macos/Runner/Release.entitlements +++ b/packages/veilid_support/example/macos/Runner/Release.entitlements @@ -4,5 +4,13 @@ com.apple.security.app-sandbox + com.apple.security.network.client + + com.apple.security.network.server + + keychain-access-groups + + $(AppIdentifierPrefix)org.veilid.packages.veilid-support.tests +