Skip to content

ipatool doen't work correctly with PowerShell (or other shell/wrapper environment) on macOS 27 #587

Closed

Description

@kda2495

What happened?

@majd I think, that this is powershell issue, but can you check, that problem isn't with ipatool.
Via Terminal all works fine, but I'm using PowerShell in my IPA_Downloader script.
Maybe there would be easy workaround or I should wait for PowerShell update?
Cause I don't know how to write issue on PowerShell GitHub correctly)

Version

2.6.0

Relevant log output

PS /Users/123> /Users/123/Desktop/IPA_Downloader_Beta/MainApp/macOS_arm64_ipatool/ipatool-darwin-arm64 auth login
enter email: ***
enter password: ***
5:18PM INF preparing authentication; the first login may take a few minutes
enter 2FA code: ***
5:19PM ERR error="apple returned no usable authentication response (HTTP 200): missing account credentials or unexpected status; try again later or from another network" success=false

Activity

  1. majd commented on Sep 19, 2026

    @majd
    Owner

    Can you check out this PR and test ipatool with the latest commit there? #588

  2. kda2495 commented on Sep 19, 2026

    @kda2495
    Author

    Can you check out this PR and test ipatool with the latest commit there? #588

    5:59PM ERR error="apple did not complete verification; try a fresh 2FA code" success=false

  3. kda2495 commented on Sep 19, 2026

    @kda2495
    Author

    If I start ipatool via Terminal - all works excellent.
    Why PowerShell causing problems?
    On macOS 26 all was fine with PowerShell too.

  4. majd commented on Sep 19, 2026

    @majd
    Owner

    I'm not sure. At this point, I'm wondering why you'd even use PowerShell.

  5. kda2495 commented on Sep 19, 2026

    @kda2495
    Author

    I'm not sure. At this point, I'm wondering why you'd even use PowerShell.

    Cause I want cross-platform support.
    Problem isn't in PowerShell.
    If I rewrite my script on Go and start Go-script, it also doesn't login.

  6. kda2495 commented on Sep 19, 2026

    @kda2495
    Author

    @majd To test this you can run this go-script:

    package main
    
    import (
    	"fmt"
    	"os"
    	"os/exec"
    )
    
    func main() {
    	exePath := "./ipatool-darwin-arm64"
    	
    	cmd := exec.Command(exePath, "auth", "login", "--verbose")
    
    	cmd.Stdin = os.Stdin
    	cmd.Stdout = os.Stdout
    	cmd.Stderr = os.Stderr
    	
    	err := cmd.Run()
    	if err != nil {
    		fmt.Printf("\n[Error] ipatool closed with code: %v\n", err)
    		os.Exit(1)
    	}
    	
    	fmt.Println("\n=== Succeed ===")
    }
    

    Put ipatool-darwin-arm64 near this file and run go run test_login.go in Terminal.
    Have you error with login too or not?
    I've tested on 2 MacBook Air with macOS 27 and both have error with 100% true credentials.

  7. changed the title [-]ipatool doen't work correctly with PowerShell on macOS 27[/-] [+]ipatool doen't work correctly with PowerShell (or other non-standard utilities) on macOS 27[/+] on Sep 20, 2026
  8. kda2495 commented on Sep 20, 2026

    @kda2495
    Author

    @majd here is difference of direct executable launch vs shell/wrapper environment on macOS 27. But I haven't found any solution.

  9. changed the title [-]ipatool doen't work correctly with PowerShell (or other non-standard utilities) on macOS 27[/-] [+]ipatool doen't work correctly with PowerShell (or other shell/wrapper environment) on macOS 27[/+] on Sep 20, 2026
  10. kda2495 commented on Sep 22, 2026

    @kda2495
    Author

    @majd Here's what Claude says:
    type this command in Terminal and PowerShell (pwsh):
    ifconfig en0 | grep ether
    You will see different mac addresses in Terminal and pwsh, so, maybe here's a key?
    And fix should be with MacAddress() in ./pkg/util/machine/machine.go?

  11. majd commented on Sep 29, 2026

    @majd
    Owner

    Can you try out the build in the following commit and see if it fixes the issue? 50312a9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions