Bug 144200 - LibreOffice 7.2 for ARM on Apple Silicon claims its an iOS application
Summary: LibreOffice 7.2 for ARM on Apple Silicon claims its an iOS application
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: ARM macOS (All)
: low trivial
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0 target:25.2.4 target:24...
Keywords:
: 150171 150234 (view as bug list)
Depends on: 152579
Blocks: macOS-UI-polish
  Show dependency treegraph
 
Reported: 2021-08-30 21:55 UTC by David W. Snow
Modified: 2025-05-02 04:30 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Image of LibreOffice details (506.90 KB, image/png)
2021-08-30 21:56 UTC, David W. Snow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David W. Snow 2021-08-30 21:55:30 UTC
Description:
I have both the Apple Silicon version installed on my MacBook Air M1 as the default version. I have the Intel version installed as LibreOffice-X86

When I look at how macOS views these applications lit show the Apple Silicon as Kind = "iOS". 

I think that something is wrong.  If not maybe we have an iOS version that I can run on my iPad ;=}

Steps to Reproduce:
1. Goto the Apple menu, click on About this Mac
2. Click on System Report, then select Software | Applications
3. Scroll down to LibreOffice

Actual Results:
See attached image

Expected Results:
Should say Universal or at least "Apple Silicon"


Reproducible: Always


User Profile Reset: No



Additional Info:
See Attached
Comment 1 David W. Snow 2021-08-30 21:56:19 UTC
Created attachment 174652 [details]
Image of LibreOffice details
Comment 2 leonid 2021-11-23 18:51:37 UTC
I confirm, it is also written that the version for iOS is on Version: 7.3.0.0.alpha1 / LibreOffice Community
Build ID: a3c29ae3d906f4692090bd4e5dab29623c66014a
CPU threads: 8; OS: Mac OS X 12.0.1; UI render: default; VCL: osx
Locale: ru-RU (ru.UTF-8); UI: ru-RU
Calc: threaded
Comment 3 Michael Warner 2022-07-28 12:55:13 UTC
*** Bug 150171 has been marked as a duplicate of this bug. ***
Comment 4 Julien Nabet 2022-08-02 18:13:19 UTC
*** Bug 150234 has been marked as a duplicate of this bug. ***
Comment 5 Julien Nabet 2022-08-02 18:14:51 UTC
David: please stop creating duplicates, the bug won't be fixed faster.
Comment 6 Sierk Bornemann 2022-12-18 17:18:11 UTC
I guess, it's system's fault, not LibreOffice's fault: macOS *itself* categorizes these apps in its system information dialoge as "iOS" apps rather than "Apple Silicon".

Whewn I open About this Mac -> More Information -> System Report -> Software -> Programs, then onle *one* single Application (an Apple application and part of macOS)



My environment and LibreOffice:

Version: 7.4.3.2 / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 10; OS: Mac OS X 13.1; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

Version: 7.6.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: 8635c9aa8c6f1078a9e220076d5a08daf30077e8
CPU threads: 10; OS: Mac OS X 13.1; UI render: Skia/Metal; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

% uname -m
arm64

% machine
arm64e

% sw_vers
ProductName:		macOS
ProductVersion:		13.1
BuildVersion:		22C65

% sw_vers -ProductName   
macOS

% sw_vers -ProductVersion
13.1

% sw_vers -BuildVersion
22C65
Comment 7 Wim M 2025-02-11 12:15:33 UTC
Confirming this bug in the (current) latest version.

In my System Information on my Mac, I noticed that not only is LibreOffice listed as an "iOS" app, but also some open source apps (VLC, Blender, openMSX) and all almost all apps that I installed through Macports. Maybe it has something to do with the way in which the app package was built?

Version: 25.2.0.3 (AARCH64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 10; OS: macOS 15.3.1; UI render: Skia/Metal; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded
Comment 8 Wim M 2025-02-11 12:32:25 UTC
A quick search showed that this has happened to some other apps as well. See e.g. these bugs.

VS Code: https://github.com/microsoft/vscode/issues/157551
Brave: https://github.com/brave/brave-browser/issues/12954

This comment seems particularly relevant.
https://github.com/microsoft/vscode/issues/121169#issuecomment-820653677

"Its just an issue with which attribute the storage info queries to decide the kind, the output of system_profiler SPApplicationsDataType -xml shows the arch_kind is arch_ios. I think these look for CFBundleSupportedPlatforms attribute and if not present default to the ios kind for arm64 executables.

Given the universal and intel labels show up correctly, and considering the output of other apple silicon apps in the image posted. I don't think this needs a fix, but leaving it open for anyone to address as a good first issue."

Maybe this helps to figure out how the reported kind of app for LibreOffice can be changed from "iOS" to "Apple Silicon".
Comment 9 Sierk Bornemann 2025-04-24 17:26:38 UTC
(In reply to Wim M from comment #8)
> A quick search showed that this has happened to some other apps as well. See
> e.g. these bugs.
> 
> VS Code: https://github.com/microsoft/vscode/issues/157551
> Brave: https://github.com/brave/brave-browser/issues/12954
> 
> This comment seems particularly relevant.
> https://github.com/microsoft/vscode/issues/121169#issuecomment-820653677
> 
> "Its just an issue with which attribute the storage info queries to decide
> the kind, the output of system_profiler SPApplicationsDataType -xml shows
> the arch_kind is arch_ios. I think these look for CFBundleSupportedPlatforms
> attribute and if not present default to the ios kind for arm64 executables.
> 
> Given the universal and intel labels show up correctly, and considering the
> output of other apple silicon apps in the image posted. I don't think this
> needs a fix, but leaving it open for anyone to address as a good first
> issue."
> 
> Maybe this helps to figure out how the reported kind of app for LibreOffice
> can be changed from "iOS" to "Apple Silicon".

Many thanks for the hint, Wim!

I've tested it – adding a

<key>CFBundleSupportedPlatforms</key>
    <array>
        <string>MacOSX</string>
    </array>

to LibreOfficeDev.app/Contents/Info.plist resp. LibreOffice.app/Contents/Info.plist

indeed changes, how LibreOffice is reported to the system profiler, indeed changes the result from "iOS" to "Apple Silicon" on my Apple Silicon machine (M1 Pro).

Who has write access to the repository and is able to add this little thing into the Info.plist file? Patrick Luby? Christian Lohmaier? Xisco Fauli?
Comment 10 Commit Notification 2025-04-29 13:10:18 UTC
Patrick Luby committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/562a40f453caa003187ff28c7798647d9e0b4ded

tdf#144200 Add CFBundleSupportedPlatforms key with MacOSX as its only platform

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Patrick (volunteer) 2025-04-29 15:20:57 UTC
I have copied the fix from the links in comment #8 and the fix should be in tomorrow's (30 April 2025) nightly master builds:

https://dev-builds.libreoffice.org/daily/master/current.html

Note for macOS testers: the nightly master build installer does *not* overwrite any LibreOffice official versions. Instead, it will be installed as a separate application called "LibreOfficeDev" in the /Applications folder.

Because this is a "test" build, you will need to do the following steps before you launch the LibreOfficeDev application:

1. Go to the Finder and navigate to the /Applications/Utilities folder
2. Launch the "Terminal" application
3. Paste the following command in the Terminal application window and press the Return key to execute the command:

   xattr -d com.apple.quarantine /Applications/LibreOfficeDev.app
Comment 12 Commit Notification 2025-04-30 10:24:41 UTC
Patrick Luby committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/29d56f91ee09f91dc7955e2f1ecb711f2f680c4e

tdf#144200 Add CFBundleSupportedPlatforms key with MacOSX as its only platform

It will be available in 24.8.8.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Commit Notification 2025-04-30 10:27:45 UTC
Patrick Luby committed a patch related to this issue.
It has been pushed to "libreoffice-24-8-7":

https://git.libreoffice.org/core/commit/441ddd6b6e64c7ff9c0995d40c09cdfe7e2dd907

tdf#144200 Add CFBundleSupportedPlatforms key with MacOSX as its only platform

It will be available in 24.8.7.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2025-05-02 04:28:40 UTC
Patrick Luby committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/361e6e0899c32bbf35496d33cb204243244a29e2

tdf#144200 Add CFBundleSupportedPlatforms key with MacOSX as its only platform

It will be available in 25.2.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.