Skip to content

Build_server.sh is not generating the app file #20

@MariaTp

Description

@MariaTp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions