Xcode Read and Process Scheme Run Arguments
This tutorial demonstrates how to read and process command-line arguments passed to an iOS app through the Xcode scheme. swiftCopy codeimport Foundation // To view the arguments, you can let arguments = ProcessInfo.processInfo.arguments for any in arguments { print(any) } // To view a specific argument let customKeyIndex = arguments.firstIndex(of: “-customKey”) // -> Set the …