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 Bridge not compatible with Apple Silicon #293

Open
MiMoHo opened this issue Mar 21, 2024 · 3 comments
Open

macOS Bridge not compatible with Apple Silicon #293

MiMoHo opened this issue Mar 21, 2024 · 3 comments

Comments

@MiMoHo
Copy link

MiMoHo commented Mar 21, 2024

macOS version: 14.4
Browser version: 123
Extension version: 0.3.1
Bridge version: 0.3.0 arm64

Description
I can't install the macOS Bridge on an Apple Silicon Mac with M2 chip as it requires the Intel emulator "Rosetta 2" to be installed.

Steps to reproduce

  1. Download fx_cast_bridge-0.3.0-arm64.pkg or via Homebrew: brew install --cask fx-cast-bridge
  2. Error will be: "This package requires Rosetta 2 to be installed. Please install Rosetta 2 and then try again."

Expected behaviour
As it is an ARM installer, it is supposed to work natively on Apple Silicon without requiring the Rosetta 2 emulator to be installed.

@hensm
Copy link
Owner

hensm commented Mar 21, 2024

I don't have an easy way to test this since removing Rosetta seems to require disabling SIP and manually deleting files.

Some searching seems to suggest this is due to a missing option in the distribution definition file.

Does this package trigger the popup? (zipped so GitHub will allow the upload)
fx_cast_bridge-0.3.0-arm64-fix.pkg.zip

@habib
Copy link

habib commented Nov 24, 2024

I tried the fixed installer. It started installing and I didn't get the Rosetta popup. However it failed with the following logs:

sudo installer -dumplog -pkg fx_cast_bridge-0.3.0-arm64-fix.pkg -target /var > install.log 2>&1

cat install.log

Nov 23 19:57:26  installer[28833] <Debug>: Product archive /Users/username/Downloads/fx_cast_bridge-0.3.0-arm64-fix.pkg trustLevel=100
Nov 23 19:57:26  installer[28833] <Debug>: External component packages (1) trustLevel=100 (trust evaluation failed: Error Domain=PKInstallErrorDomain Code=101 "The package “fx_cast_bridge-0.3.0-arm64-fix.pkg” is not signed." UserInfo={NSURL=#fx_cast_bridge_component.pkg -- file:///Users/username/Downloads/fx_cast_bridge-0.3.0-arm64-fix.pkg#Distribution, PKInstallPackageIdentifier=tf.matt.fx_cast_bridge, NSLocalizedDescription=The package “fx_cast_bridge-0.3.0-arm64-fix.pkg” is not signed.})
Nov 23 19:57:26  installer[28833] <Debug>: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
Nov 23 19:57:26  installer[28833] <Debug>: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/username/Downloads/fx_cast_bridge-0.3.0-arm64-fix.pkg#fx_cast_bridge_component.pkg
Nov 23 19:57:26  installer[28833] <Info>: Set authorization level to root for session
Nov 23 19:57:26  installer[28833] <Info>: Authorization is being checked, waiting until authorization arrives.
Nov 23 19:57:26  installer[28833] <Info>: Administrator authorization granted.
Nov 23 19:57:26  installer[28833] <Info>: Packages have been authorized for installation.
Nov 23 19:57:26  installer[28833] <Debug>: Will use PK session
Nov 23 19:57:26  installer[28833] <Debug>: Using authorization level of root for IFPKInstallElement
Nov 23 19:57:26  installer[28833] <Info>: Starting installation:
Nov 23 19:57:26  installer[28833] <Notice>: Configuring volume "Macintosh HD"
Nov 23 19:57:26  installer[28833] <Info>: Preparing disk for local booted install.
Nov 23 19:57:26  installer[28833] <Notice>: Free space on "Macintosh HD": 522.05 GB (522049478656 bytes).
Nov 23 19:57:26  installer[28833] <Notice>: Create temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.28833h09qgx"
Nov 23 19:57:26  installer[28833] <Notice>: IFPKInstallElement (1 packages)
Nov 23 19:57:26  installer[28833] <Info>: Current Path: /usr/sbin/installer
Nov 23 19:57:26  installer[28833] <Info>: Current Path: /usr/bin/sudo
Nov 23 19:57:26  installer[28833] <Notice>: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Nov 23 19:57:26  installer[28833] <Debug>: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “fx_cast_bridge-0.3.0-arm64-fix.pkg”." UserInfo={NSUnderlyingError=0x600003f18c30 {Error Domain=BOMCopierFatalError Code=1 "cpio read error: bad file format" UserInfo={destinationPath=/Library/InstallerSandboxes/.PKInstallSandboxManager/A9E992D9-70E1-444E-B4F2-797660CC044D.activeSandbox/Scripts/tf.matt.fx_cast_bridge.5CYzc0, offset=17021103, type=BOMCopierFatalError, sourcePath=/Users/username/Downloads/fx_cast_bridge-0.3.0-arm64-fix.pkg, NSLocalizedFailureReason=cpio read error: bad file format}}, NSURL=file:///Users/username/Downloads/fx_cast_bridge-0.3.0-arm64-fix.pkg#fx_cast_bridge_component.pkg, PKInstallPackageIdentifier=tf.matt.fx_cast_bridge, PKInstallPackageSHA256Digest=cb0ba8dc347703559a4d9267b52565b2b4cc3d3406f1ed1e1cfdcb89ca2fc54f, NSLocalizedDescription=An error occurred while extracting files from the package “fx_cast_bridge-0.3.0-arm64-fix.pkg”.}
Nov 23 19:57:27  installer[28833] <Error>: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
installer: Package name is fx_cast_bridge
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while extracting files from the package “fx_cast_bridge-0.3.0-arm64-fix.pkg”.)

I am running Sequoia 15.1.1 on an M3 Max.

@MiMoHo
Copy link
Author

MiMoHo commented Feb 10, 2025

Screenshot when installing Bridge v0.3.0 using pkg installer on Apple Silicon running macOS 14.7.3:

Image

Issue can be bypassed when using the fixed pkg installer referenced above:
#293 (comment)

Image

But, the installation fails for me as well @hensm

install.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants