├── Testing.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings │ └── xcuserdata │ │ └── shelikhoo.xcuserdatad │ │ ├── UserInterfaceState.xcuserstate │ │ └── WorkspaceSettings.xcsettings └── xcuserdata │ └── shelikhoo.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── Testing ├── .DS_Store ├── Assets.xcassets │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── ContentView.swift ├── Info.plist ├── Preview Content │ ├── .DS_Store │ └── Preview Assets.xcassets │ │ └── Contents.json └── TestingApp.swift ├── TestingTests ├── Info.plist └── TestingTests.swift ├── TestingUITests ├── Info.plist └── TestingUITests.swift ├── V2binding.framework.zip └── v2ray-core.sh /Testing.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4C834A87268A6EC000DA8AC3 /* V2binding.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C834A86268A6EC000DA8AC3 /* V2binding.framework */; }; 11 | 4C8BE08E26871CAB00A2182A /* TestingApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C8BE08D26871CAB00A2182A /* TestingApp.swift */; }; 12 | 4C8BE09026871CAB00A2182A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C8BE08F26871CAB00A2182A /* ContentView.swift */; }; 13 | 4C8BE09226871CB000A2182A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4C8BE09126871CB000A2182A /* Assets.xcassets */; }; 14 | 4C8BE09526871CB000A2182A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4C8BE09426871CB000A2182A /* Preview Assets.xcassets */; }; 15 | 4C8BE0A026871CB100A2182A /* TestingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C8BE09F26871CB100A2182A /* TestingTests.swift */; }; 16 | 4C8BE0AB26871CB100A2182A /* TestingUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C8BE0AA26871CB100A2182A /* TestingUITests.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 4C8BE09C26871CB100A2182A /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 4C8BE08226871CAB00A2182A /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 4C8BE08926871CAB00A2182A; 25 | remoteInfo = Testing; 26 | }; 27 | 4C8BE0A726871CB100A2182A /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 4C8BE08226871CAB00A2182A /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 4C8BE08926871CAB00A2182A; 32 | remoteInfo = Testing; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | 4C834A86268A6EC000DA8AC3 /* V2binding.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = V2binding.framework; path = "v2ray-core/main/v2binding/V2binding.framework"; sourceTree = ""; }; 38 | 4C8BE08A26871CAB00A2182A /* Testing.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Testing.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 4C8BE08D26871CAB00A2182A /* TestingApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestingApp.swift; sourceTree = ""; }; 40 | 4C8BE08F26871CAB00A2182A /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 41 | 4C8BE09126871CB000A2182A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 42 | 4C8BE09426871CB000A2182A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 43 | 4C8BE09626871CB000A2182A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 4C8BE09B26871CB100A2182A /* TestingTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TestingTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 4C8BE09F26871CB100A2182A /* TestingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestingTests.swift; sourceTree = ""; }; 46 | 4C8BE0A126871CB100A2182A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 4C8BE0A626871CB100A2182A /* TestingUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TestingUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 4C8BE0AA26871CB100A2182A /* TestingUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestingUITests.swift; sourceTree = ""; }; 49 | 4C8BE0AC26871CB100A2182A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | 4CD198F92688C71B00BA1329 /* AwesomeProject.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AwesomeProject.framework; path = awesomeProject/AwesomeProject.framework; sourceTree = SOURCE_ROOT; }; 51 | /* End PBXFileReference section */ 52 | 53 | /* Begin PBXFrameworksBuildPhase section */ 54 | 4C8BE08726871CAB00A2182A /* Frameworks */ = { 55 | isa = PBXFrameworksBuildPhase; 56 | buildActionMask = 2147483647; 57 | files = ( 58 | 4C834A87268A6EC000DA8AC3 /* V2binding.framework in Frameworks */, 59 | ); 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | 4C8BE09826871CB100A2182A /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | 4C8BE0A326871CB100A2182A /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | /* End PBXFrameworksBuildPhase section */ 77 | 78 | /* Begin PBXGroup section */ 79 | 4C8BE08126871CAB00A2182A = { 80 | isa = PBXGroup; 81 | children = ( 82 | 4C834A86268A6EC000DA8AC3 /* V2binding.framework */, 83 | 4C8BE08C26871CAB00A2182A /* Testing */, 84 | 4C8BE09E26871CB100A2182A /* TestingTests */, 85 | 4C8BE0A926871CB100A2182A /* TestingUITests */, 86 | 4C8BE08B26871CAB00A2182A /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 4C8BE08B26871CAB00A2182A /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 4C8BE08A26871CAB00A2182A /* Testing.app */, 94 | 4C8BE09B26871CB100A2182A /* TestingTests.xctest */, 95 | 4C8BE0A626871CB100A2182A /* TestingUITests.xctest */, 96 | ); 97 | name = Products; 98 | sourceTree = ""; 99 | }; 100 | 4C8BE08C26871CAB00A2182A /* Testing */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 4C8BE08D26871CAB00A2182A /* TestingApp.swift */, 104 | 4C8BE08F26871CAB00A2182A /* ContentView.swift */, 105 | 4C8BE09126871CB000A2182A /* Assets.xcassets */, 106 | 4C8BE09626871CB000A2182A /* Info.plist */, 107 | 4C8BE09326871CB000A2182A /* Preview Content */, 108 | ); 109 | path = Testing; 110 | sourceTree = ""; 111 | }; 112 | 4C8BE09326871CB000A2182A /* Preview Content */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 4C8BE09426871CB000A2182A /* Preview Assets.xcassets */, 116 | ); 117 | path = "Preview Content"; 118 | sourceTree = ""; 119 | }; 120 | 4C8BE09E26871CB100A2182A /* TestingTests */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 4CD198F92688C71B00BA1329 /* AwesomeProject.framework */, 124 | 4C8BE09F26871CB100A2182A /* TestingTests.swift */, 125 | 4C8BE0A126871CB100A2182A /* Info.plist */, 126 | ); 127 | path = TestingTests; 128 | sourceTree = ""; 129 | }; 130 | 4C8BE0A926871CB100A2182A /* TestingUITests */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 4C8BE0AA26871CB100A2182A /* TestingUITests.swift */, 134 | 4C8BE0AC26871CB100A2182A /* Info.plist */, 135 | ); 136 | path = TestingUITests; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | 4C8BE08926871CAB00A2182A /* Testing */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 4C8BE0AF26871CB100A2182A /* Build configuration list for PBXNativeTarget "Testing" */; 145 | buildPhases = ( 146 | 4C8BE08626871CAB00A2182A /* Sources */, 147 | 4C8BE08726871CAB00A2182A /* Frameworks */, 148 | 4C8BE08826871CAB00A2182A /* Resources */, 149 | ); 150 | buildRules = ( 151 | ); 152 | dependencies = ( 153 | ); 154 | name = Testing; 155 | productName = Testing; 156 | productReference = 4C8BE08A26871CAB00A2182A /* Testing.app */; 157 | productType = "com.apple.product-type.application"; 158 | }; 159 | 4C8BE09A26871CB100A2182A /* TestingTests */ = { 160 | isa = PBXNativeTarget; 161 | buildConfigurationList = 4C8BE0B226871CB100A2182A /* Build configuration list for PBXNativeTarget "TestingTests" */; 162 | buildPhases = ( 163 | 4C8BE09726871CB100A2182A /* Sources */, 164 | 4C8BE09826871CB100A2182A /* Frameworks */, 165 | 4C8BE09926871CB100A2182A /* Resources */, 166 | ); 167 | buildRules = ( 168 | ); 169 | dependencies = ( 170 | 4C8BE09D26871CB100A2182A /* PBXTargetDependency */, 171 | ); 172 | name = TestingTests; 173 | productName = TestingTests; 174 | productReference = 4C8BE09B26871CB100A2182A /* TestingTests.xctest */; 175 | productType = "com.apple.product-type.bundle.unit-test"; 176 | }; 177 | 4C8BE0A526871CB100A2182A /* TestingUITests */ = { 178 | isa = PBXNativeTarget; 179 | buildConfigurationList = 4C8BE0B526871CB100A2182A /* Build configuration list for PBXNativeTarget "TestingUITests" */; 180 | buildPhases = ( 181 | 4C8BE0A226871CB100A2182A /* Sources */, 182 | 4C8BE0A326871CB100A2182A /* Frameworks */, 183 | 4C8BE0A426871CB100A2182A /* Resources */, 184 | ); 185 | buildRules = ( 186 | ); 187 | dependencies = ( 188 | 4C8BE0A826871CB100A2182A /* PBXTargetDependency */, 189 | ); 190 | name = TestingUITests; 191 | productName = TestingUITests; 192 | productReference = 4C8BE0A626871CB100A2182A /* TestingUITests.xctest */; 193 | productType = "com.apple.product-type.bundle.ui-testing"; 194 | }; 195 | /* End PBXNativeTarget section */ 196 | 197 | /* Begin PBXProject section */ 198 | 4C8BE08226871CAB00A2182A /* Project object */ = { 199 | isa = PBXProject; 200 | attributes = { 201 | LastSwiftUpdateCheck = 1250; 202 | LastUpgradeCheck = 1250; 203 | TargetAttributes = { 204 | 4C8BE08926871CAB00A2182A = { 205 | CreatedOnToolsVersion = 12.5.1; 206 | }; 207 | 4C8BE09A26871CB100A2182A = { 208 | CreatedOnToolsVersion = 12.5.1; 209 | TestTargetID = 4C8BE08926871CAB00A2182A; 210 | }; 211 | 4C8BE0A526871CB100A2182A = { 212 | CreatedOnToolsVersion = 12.5.1; 213 | TestTargetID = 4C8BE08926871CAB00A2182A; 214 | }; 215 | }; 216 | }; 217 | buildConfigurationList = 4C8BE08526871CAB00A2182A /* Build configuration list for PBXProject "Testing" */; 218 | compatibilityVersion = "Xcode 9.3"; 219 | developmentRegion = en; 220 | hasScannedForEncodings = 0; 221 | knownRegions = ( 222 | en, 223 | Base, 224 | ); 225 | mainGroup = 4C8BE08126871CAB00A2182A; 226 | productRefGroup = 4C8BE08B26871CAB00A2182A /* Products */; 227 | projectDirPath = ""; 228 | projectRoot = ""; 229 | targets = ( 230 | 4C8BE08926871CAB00A2182A /* Testing */, 231 | 4C8BE09A26871CB100A2182A /* TestingTests */, 232 | 4C8BE0A526871CB100A2182A /* TestingUITests */, 233 | ); 234 | }; 235 | /* End PBXProject section */ 236 | 237 | /* Begin PBXResourcesBuildPhase section */ 238 | 4C8BE08826871CAB00A2182A /* Resources */ = { 239 | isa = PBXResourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 4C8BE09526871CB000A2182A /* Preview Assets.xcassets in Resources */, 243 | 4C8BE09226871CB000A2182A /* Assets.xcassets in Resources */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 4C8BE09926871CB100A2182A /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 4C8BE0A426871CB100A2182A /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXResourcesBuildPhase section */ 262 | 263 | /* Begin PBXSourcesBuildPhase section */ 264 | 4C8BE08626871CAB00A2182A /* Sources */ = { 265 | isa = PBXSourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | 4C8BE09026871CAB00A2182A /* ContentView.swift in Sources */, 269 | 4C8BE08E26871CAB00A2182A /* TestingApp.swift in Sources */, 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | }; 273 | 4C8BE09726871CB100A2182A /* Sources */ = { 274 | isa = PBXSourcesBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | 4C8BE0A026871CB100A2182A /* TestingTests.swift in Sources */, 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | 4C8BE0A226871CB100A2182A /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 4C8BE0AB26871CB100A2182A /* TestingUITests.swift in Sources */, 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | }; 289 | /* End PBXSourcesBuildPhase section */ 290 | 291 | /* Begin PBXTargetDependency section */ 292 | 4C8BE09D26871CB100A2182A /* PBXTargetDependency */ = { 293 | isa = PBXTargetDependency; 294 | target = 4C8BE08926871CAB00A2182A /* Testing */; 295 | targetProxy = 4C8BE09C26871CB100A2182A /* PBXContainerItemProxy */; 296 | }; 297 | 4C8BE0A826871CB100A2182A /* PBXTargetDependency */ = { 298 | isa = PBXTargetDependency; 299 | target = 4C8BE08926871CAB00A2182A /* Testing */; 300 | targetProxy = 4C8BE0A726871CB100A2182A /* PBXContainerItemProxy */; 301 | }; 302 | /* End PBXTargetDependency section */ 303 | 304 | /* Begin XCBuildConfiguration section */ 305 | 4C8BE0AD26871CB100A2182A /* Debug */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_ENABLE_OBJC_WEAK = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 323 | CLANG_WARN_EMPTY_BODY = YES; 324 | CLANG_WARN_ENUM_CONVERSION = YES; 325 | CLANG_WARN_INFINITE_RECURSION = YES; 326 | CLANG_WARN_INT_CONVERSION = YES; 327 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 328 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 329 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 331 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 332 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 333 | CLANG_WARN_STRICT_PROTOTYPES = YES; 334 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 335 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | CODE_SIGN_IDENTITY = ""; 339 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 340 | COPY_PHASE_STRIP = NO; 341 | DEBUG_INFORMATION_FORMAT = dwarf; 342 | ENABLE_STRICT_OBJC_MSGSEND = YES; 343 | ENABLE_TESTABILITY = YES; 344 | GCC_C_LANGUAGE_STANDARD = gnu11; 345 | GCC_DYNAMIC_NO_PIC = NO; 346 | GCC_NO_COMMON_BLOCKS = YES; 347 | GCC_OPTIMIZATION_LEVEL = 0; 348 | GCC_PREPROCESSOR_DEFINITIONS = ( 349 | "DEBUG=1", 350 | "$(inherited)", 351 | ); 352 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 353 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 354 | GCC_WARN_UNDECLARED_SELECTOR = YES; 355 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 356 | GCC_WARN_UNUSED_FUNCTION = YES; 357 | GCC_WARN_UNUSED_VARIABLE = YES; 358 | IPHONEOS_DEPLOYMENT_TARGET = 14.5; 359 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 360 | MTL_FAST_MATH = YES; 361 | ONLY_ACTIVE_ARCH = YES; 362 | SDKROOT = iphoneos; 363 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 364 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 365 | }; 366 | name = Debug; 367 | }; 368 | 4C8BE0AE26871CB100A2182A /* Release */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ALWAYS_SEARCH_USER_PATHS = NO; 372 | CLANG_ANALYZER_NONNULL = YES; 373 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 374 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 375 | CLANG_CXX_LIBRARY = "libc++"; 376 | CLANG_ENABLE_MODULES = YES; 377 | CLANG_ENABLE_OBJC_ARC = YES; 378 | CLANG_ENABLE_OBJC_WEAK = YES; 379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 380 | CLANG_WARN_BOOL_CONVERSION = YES; 381 | CLANG_WARN_COMMA = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 385 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 386 | CLANG_WARN_EMPTY_BODY = YES; 387 | CLANG_WARN_ENUM_CONVERSION = YES; 388 | CLANG_WARN_INFINITE_RECURSION = YES; 389 | CLANG_WARN_INT_CONVERSION = YES; 390 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 391 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 392 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 393 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 394 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 395 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 396 | CLANG_WARN_STRICT_PROTOTYPES = YES; 397 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 398 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 399 | CLANG_WARN_UNREACHABLE_CODE = YES; 400 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 401 | CODE_SIGN_IDENTITY = ""; 402 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 405 | ENABLE_NS_ASSERTIONS = NO; 406 | ENABLE_STRICT_OBJC_MSGSEND = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu11; 408 | GCC_NO_COMMON_BLOCKS = YES; 409 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 410 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 411 | GCC_WARN_UNDECLARED_SELECTOR = YES; 412 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 413 | GCC_WARN_UNUSED_FUNCTION = YES; 414 | GCC_WARN_UNUSED_VARIABLE = YES; 415 | IPHONEOS_DEPLOYMENT_TARGET = 14.5; 416 | MTL_ENABLE_DEBUG_INFO = NO; 417 | MTL_FAST_MATH = YES; 418 | SDKROOT = iphoneos; 419 | SWIFT_COMPILATION_MODE = wholemodule; 420 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 421 | VALIDATE_PRODUCT = YES; 422 | }; 423 | name = Release; 424 | }; 425 | 4C8BE0B026871CB100A2182A /* Debug */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 429 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 430 | CODE_SIGN_IDENTITY = ""; 431 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 432 | CODE_SIGN_STYLE = Manual; 433 | DEVELOPMENT_ASSET_PATHS = "\"Testing/Preview Content\""; 434 | DEVELOPMENT_TEAM = ""; 435 | ENABLE_PREVIEWS = YES; 436 | FRAMEWORK_SEARCH_PATHS = ( 437 | "$(inherited)", 438 | "$(PROJECT_DIR)/awesomeProject", 439 | "$(PROJECT_DIR)/v2ray-core/main/v2binding", 440 | ); 441 | INFOPLIST_FILE = Testing/Info.plist; 442 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 443 | LD_RUNPATH_SEARCH_PATHS = ( 444 | "$(inherited)", 445 | "@executable_path/Frameworks", 446 | ); 447 | PRODUCT_BUNDLE_IDENTIFIER = com.test.Testing; 448 | PRODUCT_NAME = "$(TARGET_NAME)"; 449 | PROVISIONING_PROFILE_SPECIFIER = ""; 450 | SWIFT_VERSION = 5.0; 451 | TARGETED_DEVICE_FAMILY = "1,2"; 452 | }; 453 | name = Debug; 454 | }; 455 | 4C8BE0B126871CB100A2182A /* Release */ = { 456 | isa = XCBuildConfiguration; 457 | buildSettings = { 458 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 459 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 460 | CODE_SIGN_IDENTITY = ""; 461 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 462 | CODE_SIGN_STYLE = Manual; 463 | DEVELOPMENT_ASSET_PATHS = "\"Testing/Preview Content\""; 464 | DEVELOPMENT_TEAM = ""; 465 | ENABLE_PREVIEWS = YES; 466 | FRAMEWORK_SEARCH_PATHS = ( 467 | "$(inherited)", 468 | "$(PROJECT_DIR)/awesomeProject", 469 | "$(PROJECT_DIR)/v2ray-core/main/v2binding", 470 | ); 471 | INFOPLIST_FILE = Testing/Info.plist; 472 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 473 | LD_RUNPATH_SEARCH_PATHS = ( 474 | "$(inherited)", 475 | "@executable_path/Frameworks", 476 | ); 477 | PRODUCT_BUNDLE_IDENTIFIER = com.test.Testing; 478 | PRODUCT_NAME = "$(TARGET_NAME)"; 479 | PROVISIONING_PROFILE_SPECIFIER = ""; 480 | SWIFT_VERSION = 5.0; 481 | TARGETED_DEVICE_FAMILY = "1,2"; 482 | }; 483 | name = Release; 484 | }; 485 | 4C8BE0B326871CB100A2182A /* Debug */ = { 486 | isa = XCBuildConfiguration; 487 | buildSettings = { 488 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 489 | BUNDLE_LOADER = "$(TEST_HOST)"; 490 | CODE_SIGN_IDENTITY = ""; 491 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 492 | CODE_SIGN_STYLE = Automatic; 493 | INFOPLIST_FILE = TestingTests/Info.plist; 494 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 495 | LD_RUNPATH_SEARCH_PATHS = ( 496 | "$(inherited)", 497 | "@executable_path/Frameworks", 498 | "@loader_path/Frameworks", 499 | ); 500 | PRODUCT_BUNDLE_IDENTIFIER = com.test.TestingTests; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | SWIFT_VERSION = 5.0; 503 | TARGETED_DEVICE_FAMILY = "1,2"; 504 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Testing.app/Testing"; 505 | }; 506 | name = Debug; 507 | }; 508 | 4C8BE0B426871CB100A2182A /* Release */ = { 509 | isa = XCBuildConfiguration; 510 | buildSettings = { 511 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 512 | BUNDLE_LOADER = "$(TEST_HOST)"; 513 | CODE_SIGN_IDENTITY = ""; 514 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 515 | CODE_SIGN_STYLE = Automatic; 516 | INFOPLIST_FILE = TestingTests/Info.plist; 517 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 518 | LD_RUNPATH_SEARCH_PATHS = ( 519 | "$(inherited)", 520 | "@executable_path/Frameworks", 521 | "@loader_path/Frameworks", 522 | ); 523 | PRODUCT_BUNDLE_IDENTIFIER = com.test.TestingTests; 524 | PRODUCT_NAME = "$(TARGET_NAME)"; 525 | SWIFT_VERSION = 5.0; 526 | TARGETED_DEVICE_FAMILY = "1,2"; 527 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Testing.app/Testing"; 528 | }; 529 | name = Release; 530 | }; 531 | 4C8BE0B626871CB100A2182A /* Debug */ = { 532 | isa = XCBuildConfiguration; 533 | buildSettings = { 534 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 535 | CODE_SIGN_IDENTITY = ""; 536 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 537 | CODE_SIGN_STYLE = Manual; 538 | DEVELOPMENT_TEAM = ""; 539 | INFOPLIST_FILE = TestingUITests/Info.plist; 540 | LD_RUNPATH_SEARCH_PATHS = ( 541 | "$(inherited)", 542 | "@executable_path/Frameworks", 543 | "@loader_path/Frameworks", 544 | ); 545 | PRODUCT_BUNDLE_IDENTIFIER = com.test.TestingUITests; 546 | PRODUCT_NAME = "$(TARGET_NAME)"; 547 | PROVISIONING_PROFILE_SPECIFIER = ""; 548 | "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = ""; 549 | SWIFT_VERSION = 5.0; 550 | TARGETED_DEVICE_FAMILY = "1,2"; 551 | TEST_TARGET_NAME = Testing; 552 | }; 553 | name = Debug; 554 | }; 555 | 4C8BE0B726871CB100A2182A /* Release */ = { 556 | isa = XCBuildConfiguration; 557 | buildSettings = { 558 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 559 | CODE_SIGN_IDENTITY = ""; 560 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; 561 | CODE_SIGN_STYLE = Manual; 562 | DEVELOPMENT_TEAM = ""; 563 | INFOPLIST_FILE = TestingUITests/Info.plist; 564 | LD_RUNPATH_SEARCH_PATHS = ( 565 | "$(inherited)", 566 | "@executable_path/Frameworks", 567 | "@loader_path/Frameworks", 568 | ); 569 | PRODUCT_BUNDLE_IDENTIFIER = com.test.TestingUITests; 570 | PRODUCT_NAME = "$(TARGET_NAME)"; 571 | PROVISIONING_PROFILE_SPECIFIER = ""; 572 | "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = ""; 573 | SWIFT_VERSION = 5.0; 574 | TARGETED_DEVICE_FAMILY = "1,2"; 575 | TEST_TARGET_NAME = Testing; 576 | }; 577 | name = Release; 578 | }; 579 | /* End XCBuildConfiguration section */ 580 | 581 | /* Begin XCConfigurationList section */ 582 | 4C8BE08526871CAB00A2182A /* Build configuration list for PBXProject "Testing" */ = { 583 | isa = XCConfigurationList; 584 | buildConfigurations = ( 585 | 4C8BE0AD26871CB100A2182A /* Debug */, 586 | 4C8BE0AE26871CB100A2182A /* Release */, 587 | ); 588 | defaultConfigurationIsVisible = 0; 589 | defaultConfigurationName = Release; 590 | }; 591 | 4C8BE0AF26871CB100A2182A /* Build configuration list for PBXNativeTarget "Testing" */ = { 592 | isa = XCConfigurationList; 593 | buildConfigurations = ( 594 | 4C8BE0B026871CB100A2182A /* Debug */, 595 | 4C8BE0B126871CB100A2182A /* Release */, 596 | ); 597 | defaultConfigurationIsVisible = 0; 598 | defaultConfigurationName = Release; 599 | }; 600 | 4C8BE0B226871CB100A2182A /* Build configuration list for PBXNativeTarget "TestingTests" */ = { 601 | isa = XCConfigurationList; 602 | buildConfigurations = ( 603 | 4C8BE0B326871CB100A2182A /* Debug */, 604 | 4C8BE0B426871CB100A2182A /* Release */, 605 | ); 606 | defaultConfigurationIsVisible = 0; 607 | defaultConfigurationName = Release; 608 | }; 609 | 4C8BE0B526871CB100A2182A /* Build configuration list for PBXNativeTarget "TestingUITests" */ = { 610 | isa = XCConfigurationList; 611 | buildConfigurations = ( 612 | 4C8BE0B626871CB100A2182A /* Debug */, 613 | 4C8BE0B726871CB100A2182A /* Release */, 614 | ); 615 | defaultConfigurationIsVisible = 0; 616 | defaultConfigurationName = Release; 617 | }; 618 | /* End XCConfigurationList section */ 619 | }; 620 | rootObject = 4C8BE08226871CAB00A2182A /* Project object */; 621 | } 622 | -------------------------------------------------------------------------------- /Testing.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Testing.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Testing.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Testing.xcodeproj/project.xcworkspace/xcuserdata/shelikhoo.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaokangwang/V2Ray-iOSProofOfConcept/36cf04f228eb4bee25599956ef2549f40a7ef002/Testing.xcodeproj/project.xcworkspace/xcuserdata/shelikhoo.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Testing.xcodeproj/project.xcworkspace/xcuserdata/shelikhoo.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildLocationStyle 6 | UseAppPreferences 7 | CustomBuildLocationType 8 | RelativeToDerivedData 9 | DerivedDataLocationStyle 10 | Default 11 | IssueFilterStyle 12 | ShowActiveSchemeOnly 13 | LiveSourceIssuesEnabled 14 | 15 | ShowSharedSchemesAutomaticallyEnabled 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Testing.xcodeproj/xcuserdata/shelikhoo.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Testing.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Testing/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaokangwang/V2Ray-iOSProofOfConcept/36cf04f228eb4bee25599956ef2549f40a7ef002/Testing/.DS_Store -------------------------------------------------------------------------------- /Testing/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Testing/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Testing/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Testing/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // Testing 4 | // 5 | // Created by Shell on 6/26/21. 6 | // 7 | 8 | import SwiftUI 9 | import CoreLocation 10 | import V2binding 11 | 12 | struct ContentView: View { 13 | var LocationAssistInst = LocationAssist() 14 | 15 | init() { 16 | V2bindingStartAPIInstance("todo") 17 | } 18 | var body: some View { 19 | Text("The V2Ray/V2Fly instance should be running in background.\nLocation is required for it to stay in background.") 20 | .padding() 21 | Button("Open UI in Browser"){ 22 | if let url = URL(string: "http://127.0.0.1:18888"){ 23 | UIApplication.shared.open(url) 24 | } 25 | }.padding() 26 | Button("Enable Location Access"){ 27 | LocationAssistInst.createLocationAccess() 28 | } 29 | } 30 | } 31 | 32 | struct ContentView_Previews: PreviewProvider { 33 | static var previews: some View { 34 | ContentView() 35 | } 36 | } 37 | 38 | class LocationAssist: NSObject, CLLocationManagerDelegate{ 39 | var locationmgr = CLLocationManager() 40 | func createLocationAccess(){ 41 | locationmgr.delegate = self; 42 | locationmgr.requestWhenInUseAuthorization() 43 | switch(locationmgr.authorizationStatus){ 44 | case .notDetermined, .restricted, .denied: 45 | //no access 46 | break 47 | case .authorizedAlways, .authorizedWhenInUse: 48 | startlistenlocation() 49 | } 50 | } 51 | func startlistenlocation(){ 52 | locationmgr.distanceFilter = kCLDistanceFilterNone 53 | locationmgr.desiredAccuracy = kCLLocationAccuracyThreeKilometers 54 | locationmgr.allowsBackgroundLocationUpdates = true 55 | locationmgr.startUpdatingLocation() 56 | } 57 | 58 | 59 | 60 | } 61 | 62 | -------------------------------------------------------------------------------- /Testing/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | NSLocationAlwaysAndWhenInUseUsageDescription 24 | Won't run without it. 25 | NSLocationAlwaysUsageDescription 26 | It is required. 27 | NSLocationUsageDescription 28 | Submit your informaiton or else! 29 | NSLocationWhenInUseUsageDescription 30 | It is exclusively Apple's fault. 31 | UIApplicationSceneManifest 32 | 33 | UIApplicationSupportsMultipleScenes 34 | 35 | 36 | UIApplicationSupportsIndirectInputEvents 37 | 38 | UIBackgroundModes 39 | 40 | location 41 | 42 | UILaunchScreen 43 | 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UISupportedInterfaceOrientations~ipad 55 | 56 | UIInterfaceOrientationPortrait 57 | UIInterfaceOrientationPortraitUpsideDown 58 | UIInterfaceOrientationLandscapeLeft 59 | UIInterfaceOrientationLandscapeRight 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Testing/Preview Content/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaokangwang/V2Ray-iOSProofOfConcept/36cf04f228eb4bee25599956ef2549f40a7ef002/Testing/Preview Content/.DS_Store -------------------------------------------------------------------------------- /Testing/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Testing/TestingApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestingApp.swift 3 | // Testing 4 | // 5 | // Created by Shell on 6/26/21. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct TestingApp: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | ContentView() 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /TestingTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TestingTests/TestingTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestingTests.swift 3 | // TestingTests 4 | // 5 | // Created by Shell on 6/26/21. 6 | // 7 | 8 | import XCTest 9 | @testable import Testing 10 | 11 | class TestingTests: XCTestCase { 12 | 13 | override func setUpWithError() throws { 14 | // Put setup code here. This method is called before the invocation of each test method in the class. 15 | } 16 | 17 | override func tearDownWithError() throws { 18 | // Put teardown code here. This method is called after the invocation of each test method in the class. 19 | } 20 | 21 | func testExample() throws { 22 | // This is an example of a functional test case. 23 | // Use XCTAssert and related functions to verify your tests produce the correct results. 24 | } 25 | 26 | func testPerformanceExample() throws { 27 | // This is an example of a performance test case. 28 | self.measure { 29 | // Put the code you want to measure the time of here. 30 | } 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /TestingUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TestingUITests/TestingUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestingUITests.swift 3 | // TestingUITests 4 | // 5 | // Created by Shell on 6/26/21. 6 | // 7 | 8 | import XCTest 9 | 10 | class TestingUITests: XCTestCase { 11 | 12 | override func setUpWithError() throws { 13 | // Put setup code here. This method is called before the invocation of each test method in the class. 14 | 15 | // In UI tests it is usually best to stop immediately when a failure occurs. 16 | continueAfterFailure = false 17 | 18 | // 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. 19 | } 20 | 21 | override func tearDownWithError() throws { 22 | // Put teardown code here. This method is called after the invocation of each test method in the class. 23 | } 24 | 25 | func testExample() throws { 26 | // UI tests must launch the application that they test. 27 | let app = XCUIApplication() 28 | app.launch() 29 | 30 | // Use recording to get started writing UI tests. 31 | // Use XCTAssert and related functions to verify your tests produce the correct results. 32 | } 33 | 34 | func testLaunchPerformance() throws { 35 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { 36 | // This measures how long it takes to launch your application. 37 | measure(metrics: [XCTApplicationLaunchMetric()]) { 38 | XCUIApplication().launch() 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /V2binding.framework.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaokangwang/V2Ray-iOSProofOfConcept/36cf04f228eb4bee25599956ef2549f40a7ef002/V2binding.framework.zip -------------------------------------------------------------------------------- /v2ray-core.sh: -------------------------------------------------------------------------------- 1 | git checkout 04b384c61eade5bdee275c413f35fb123adeeb4b 2 | export PATH=$PATH:/Users/shelikhoo/go/bin/ 3 | /Users/shelikhoo/go/bin/gomobile bind -target ios 4 | 5 | --------------------------------------------------------------------------------