Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS powershell-7.3.0-osx-arm64.pkg installs without rosetta but /Applications/PowerShell still requires rosetta #18548

Open
5 tasks done
rhubarb-geek-nz opened this issue Nov 13, 2022 · 5 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. WG-DevEx-Portability authoring cross-platform or cross-architecture modules, cmdlets, and scripts

Comments

@rhubarb-geek-nz
Copy link

rhubarb-geek-nz commented Nov 13, 2022

Prerequisites

Steps to reproduce

Install powershell-7.3.0-osx-arm64.pkg on ARM64 Mac without Rosetta installed.
Attempt to open program icon from /Applications/PowerShell

Expected behavior

PowerShell should open in a new terminal window

Actual behavior

Operating system dialog box to install Rosetta

Error details

PowerShell does not run

Environment data

macOS 13.0 ARM64

Name                           Value
----                           -----
PSVersion                      7.3.0
PSEdition                      Core
GitCommitId                    7.3.0
OS                             Darwin 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

Screenshot 2022-11-15 at 9 39 43 PM

@rhubarb-geek-nz rhubarb-geek-nz added the Needs-Triage The issue is new and needs to be triaged by a work group. label Nov 13, 2022
@rhubarb-geek-nz
Copy link
Author

rhubarb-geek-nz commented Nov 13, 2022

I believe the problem is that it is launching /Applications/PowerShell.app/Contents/MacOS/PowerShell.sh which macOS thinks requires Rosetta. I have tested by replacing this shell script with an ARM64 compiled C program and this solved the problem.

int main(int argc,char **argv)
{
	char *args[]={
		"/usr/bin/open",
		"/usr/local/bin/pwsh",
		NULL
	};

	execv(args[0],args);

	return 1;
}

@StevenBucher98 StevenBucher98 added the WG-DevEx-Portability authoring cross-platform or cross-architecture modules, cmdlets, and scripts label Nov 28, 2022
@rhubarb-geek-nz
Copy link
Author

7.3.1 for macOS arm64 has same issue.

@rhubarb-geek-nz
Copy link
Author

7.3.2 for macOS arm64 has same issue.

@rhubarb-geek-nz
Copy link
Author

rhubarb-geek-nz commented Nov 17, 2023

7.4.0 for macOS arm64 has same issue.

Recommend testing on a macOS arm machine that has never had rosetta installed.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Resolution-No Activity Issue has had no activity for 6 months or more label Nov 17, 2023
@dsm
Copy link

dsm commented May 11, 2024

7.4.2 for macos arm64 still has same issue. I tested on macos 14.4.1 m3 pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. WG-DevEx-Portability authoring cross-platform or cross-architecture modules, cmdlets, and scripts
Projects
None yet
Development

No branches or pull requests

3 participants