-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello,
I have included the SBTUITestTunnelHost from SMP in order to trigger a push notification. I have installed xcodegen and run the build server script but nothing seems to happen despite outputing a success message. No .app file is produced. I also changed the script to take as input the xcodeproj instead of xcodeworkspace but issue still remains, no .app file is produced. I have provided Accessibility Access to SBTUITestTunnelServer but still nothing happens. I keep getting the error indicating:
Task <11BFC1CE-CA0E-4446-9CDC-924A984030E4>.<1> HTTP load failed, 454/0 bytes (error code: -1005 [4:-4]) Task <11BFC1CE-CA0E-4446-9CDC-924A984030E4>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost.
func triggerBetSettlementPush() throws {
//Calculate simulator's UDID:
let udid: String = {
let bundleURL = Bundle.main.bundleURL.pathComponents
if let devicesIndex = bundleURL.firstIndex(of: "Devices"),
devicesIndex + 1 < bundleURL.count {
return bundleURL[devicesIndex + 1]
}
fatalError("Could not find UDID in bundle path: \(bundleURL)")
}()
let bundleId = "com.something.something"
let jsonRelative = "UITests/Mocks/MockResponses/Sportsbook/PushNotifications/push_notification_bet_settlement.json"
let jsonFullPath = "\(FileManager.default.currentDirectoryPath)/\(jsonRelative)"
print(jsonFullPath)
let out = host.executeCommand("echo hello")
let pushNotificationCommand = "xcrun simctl push \(udid) \(bundleId) \(jsonFullPath)"
let commandExecution = host.executeCommand(pushNotificationCommand)
print("executeCommand output: \(String(describing: commandExecution))")
}
Could you please assist on this? Is this an issue of SPM?
Kind regards,
Maria