Error building Managed Software Center.app: 65

36 views
Skip to first unread message

Tom Carpenter

unread,
Sep 28, 2021, 9:41:01 PMSep 28
to munki-dev
I tried building Munki from source for the purpose of signing the applications and the installer, using the information from these pages



Just prior to the "Error building Managed Software Center.app: 65" message, the following lines were displayed (full output is in the attached file)

==========================

Building Managed Software Update.xcodeproj...

** BUILD FAILED **

The following build commands failed:

CompileXIB /Users/Shared/munki/munki-git/code/apps/Managed\ Software\ Center/Managed\ Software\ Center/Base.lproj/MainMenu.xib (in target 'Managed Software Center' from project 'Managed Software Center')

CompileAssetCatalog /Users/Shared/munki/munki-git/code/apps/Managed\ Software\ Center/build/Release/Managed\ Software\ Center.app/Contents/Resources /Users/Shared/munki/munki-git/code/apps/Managed\ Software\ Center/Managed\ Software\ Center/Assets.xcassets (in target 'Managed Software Center' from project 'Managed Software Center')

(2 failures)

==========================

System used to build Munki is a Mac mini (2018) running Big Sur 11.6. The installed version of the Xcode Command Line Developer Tools is 13.0.0.0.1.1630607135; the installed version of Xcode is 13.0, Build version 13A233.




munki-build.txt

Gregory Neagle

unread,
Sep 28, 2021, 9:42:19 PMSep 28
to munk...@googlegroups.com
Building under Xcode 13 has not been tested by me. Looks like perhaps it currently doesn’t work!

Sent from my iPhone

On Sep 28, 2021, at 6:41 PM, Tom Carpenter <thom...@umass.edu> wrote:

I tried building Munki from source for the purpose of signing the applications and the installer, using the information from these pages
--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-dev/deef38e9-41e5-4de3-b3f1-2ef9bf64c913n%40googlegroups.com.
<munki-build.txt>

hunte...@gmail.com

unread,
Sep 29, 2021, 10:01:07 AMSep 29
to munki-dev
Are you building on Apple M1 or Intel CPU?

Munki v5.5.0 & v5.5.1 on Apple M1 problems
There is a known problem with packaging Munki v5.5.0 and v5.5.1 caused by PyobjC that triggers problems for Xattr during the build process.
There is also a problem with Xcode 12.5 and 12.5.1 

If you want to notarize or build Munki v5.5.0 & v5.5.1 i would recommended to use the following:
CPU: Intel
OS: macOS 11.4 maybe 11.5 and 11.6 will work but i havent tried.
Xcode: 12.4 (12.3 might work) 12.5 and 12.5.1 DONT work, Not tested on Xcode 13 yet

Tom Carpenter

unread,
Sep 29, 2021, 7:41:27 PMSep 29
to munki-dev
Build system is Intel. After my initial post I tried compiling Munki 5.5.1 on the same system using Xcode 12.5.1, Build version 12E507; FWIW attached is the output from that attempt. Will try again with Xcode 12.4 after sending this.
munki-build-xcode-12.5.1.txt

Tom Carpenter

unread,
Sep 29, 2021, 8:48:56 PMSep 29
to munki-dev
Built Munki 5.5.1 using Xcode 12.4, Build version 12D4e; build output attached.
munki-build-xcode-12.4.txt

Tom Carpenter

unread,
Sep 29, 2021, 10:42:44 PMSep 29
to munki-dev
Just providing info in case it's useful to others.

Tried an experiment building Munki 5.5.1 with Xcode 13.0 again - added the "-p" argument for make_munki_mpkg_from_git.sh. Got the error

CoreSimulator is out of date. Current version (757.5.0) is older than build version (776.3.0).

full output from that build is in "munki-build-xcode-13.0-build-python.txt". Started Xcode 13.0 which installed an update(s); then started Simulator and checked the "About" information - CoreSimulator version is 776.3. Got a fresh copy of the Munki source and built Munki, again adding the "-p" argument. The build appears to have succeeded, though I haven't tested the resultant package. Full output is in "munki-build-xcode-13.0-ios-coresimulator-776-build-python.txt"

munki-build-xcode-13.0-build-python.txt
munki-build-xcode-13.0-ios-coresimulator-776-build-python.txt

Gregory Neagle

unread,
Sep 30, 2021, 2:59:26 PMSep 30
to munki-dev
Tom: would you care to summarize your findings as far as what combinations succeeded or failed?

-Greg

To view this discussion on the web visit https://groups.google.com/d/msgid/munki-dev/475c2bf5-0b52-4fe3-a00a-eac8440b4d47n%40googlegroups.com.
<munki-build-xcode-13.0-build-python.txt><munki-build-xcode-13.0-ios-coresimulator-776-build-python.txt>

Message has been deleted

Tom Carpenter

unread,
Sep 30, 2021, 9:31:19 PMSep 30
to munki-dev

Starting with my initial post, I’ve tried building Munki 5.5.1 on Big Sur 11.6, using


Xcode 13.0, executing “./code/tools/make_munki_mpkg_from_git.sh -S "Developer ID Application: University of Massachusetts at Amherst (**********)" -s "Developer ID Installer: University of Massachusetts at Amherst (**********)”

Build failed


Xcode 12.5.1, executing “./code/tools/make_munki_mpkg_from_git.sh -S "Developer ID Application: University of Massachusetts at Amherst (**********)" -s "Developer ID Installer: University of Massachusetts at Amherst (**********)”

Errors produced during build



Xcode 12.4, excuting “./code/tools/make_munki_mpkg_from_git.sh -S "Developer ID Application: University of Massachusetts at Amherst (**********)" -s "Developer ID Installer: University of Massachusetts at Amherst (**********)”

Build appears to be successful



Xcode 13.0, executing “./code/tools/make_munki_mpkg_from_git.sh -p -S "Developer ID Application: University of Massachusetts at Amherst (**********)" -s "Developer ID Installer: University of Massachusetts at Amherst (**********)”

Build appears to be successful


Prior to each attempt to build Munki 5.5.1, a fresh copy of the source was retrieved using "git clone https://github.com/munki/munki" and the active developer directory was set to the appropriate ‘Xcode.app’ using “xcode-select -s /Applications/Xcode-<version>.app”. So far I've only tested the package generated by the final build attempt with Xcode 13.0 that included the "-p" option for "make_munki_mpkg_from_git.sh".


Details for the build system that generated munkitools-5.5.1.4365.pkg and the system used to test the package are


build system

==========


Mac mini (2018)

Big Sur 11.6

Xcode 13.0, Build version 13A233 ("About Simulator" info: 13.0 (970), SimulatorKit 612, CoreSimulator 776.3)


     1. in Terminal, "cd /Users/Shared", then run "git clone https://github.com/munki/munki"


      2. "cd munki", then run "./code/tools/make_munki_mpkg_from_git.sh -p -S "Developer ID Application: University of Massachusetts at Amherst (**********)" -s "Developer ID Installer: University of Massachusetts at Amherst (**********)"



test system

=========


MacBook Air (13-inch, 2017)

Big Sur 11.6


    Successfully used MSC to retrieve and install applications assigned to the manifest for the test system

Gregory Neagle

unread,
Oct 1, 2021, 1:36:18 PMOct 1
to munki-dev
FWIW, I’ve successfully built a 5.5.1 package from the current main branch on an (Intel) iMac Pro running macOS 11.6 and using Xcode 13.

$ xcodebuild -version
Xcode 13.0
Build version 13A233

$ cd /Users/Shared/
$ cd munki/
$ ./code/tools/make_munki_mpkg.sh

Note I did not need to specify any options. (-p should be unneeded as that would be the default behavior on a new clone anyway)
This appears to have resulted in a functional package.
During the build, there was one unexpected bit of output:

Creating core package template...
./code/tools/make_munki_mpkg.sh: line 415: 98708 Killed: 9               chmod -R 755 "$COREROOT/usr"
./code/tools/make_munki_mpkg.sh: line 445: 98728 Killed: 9               chmod -R 755 "$COREROOT/private"
Creating admin package source...
./code/tools/make_munki_mpkg.sh: line 475: 98738 Killed: 9               chmod -R 755 "$ADMINROOT/usr"
./code/tools/make_munki_mpkg.sh: line 489: 98748 Killed: 9               chmod -R 755 "$ADMINROOT/private"
Creating applications package source...
Creating launchd package source...
Creating app_usage package source...
./code/tools/make_munki_mpkg.sh: line 588: 98772 Killed: 9               chmod -R 755 "$APPUSAGEROOT/usr"
Creating python package source...
./code/tools/make_munki_mpkg.sh: line 625: 98784 Killed: 9               chmod -R 755 "$PYTHONROOT/usr"
Creating metapackage source...

This did not appear to cause any problems, but I’d still like to understand what is happening here. In any case, these bits have nothing to do with the version of Xcode in use or the success or failure of the Python framework build.

-Greg

Tom Carpenter

unread,
Oct 1, 2021, 3:39:44 PMOct 1
to munki-dev
I seem to have successfully built Munki 5.5.1 using Xcode 13.0 on my Mac mini (2018) running Big Sur 11.6, this time without using the "-p" option with make_munki_mpkg.sh.

% xcodebuild -version

Xcode 13.0
Build version 13A233

% cd  /Users/Shared
% cd munki
./code/tools/make_munki_mpkg_from_git.sh -S "Developer ID Application: University of Massachusetts at Amherst (**********)" -s "Developer ID Installer: University of Massachusetts at Amherst (**********)"
.
.
.
Distribution package created at /Users/Shared/munki/munkitools-5.5.1.4365.pkg.

Removing temporary files...
Done.




The corresponding output from my build is

Creating core package template...
Creating admin package source...
Creating applications package source...
Signing Managed Software Center.app...
/var/folders/97/468njc4j3mbckmq5b5k52dl80000gn/T/munkipkg.mzrGDRi1/munki_app/Applications/Managed Software Center.app/Contents/PlugIns/MSCDockTilePlugin.docktileplugin: signed bundle with Mach-O universal (x86_64 arm64) [com.googlecode.munki.MSCDockTilePlugin]
/var/folders/97/468njc4j3mbckmq5b5k52dl80000gn/T/munkipkg.mzrGDRi1/munki_app/Applications/Managed Software Center.app/Contents/Resources/MunkiStatus.app: signed app bundle with Mach-O universal (x86_64 arm64) [com.googlecode.munki.MunkiStatus]
/var/folders/97/468njc4j3mbckmq5b5k52dl80000gn/T/munkipkg.mzrGDRi1/munki_app/Applications/Managed Software Center.app/Contents/Resources/munki-notifier.app: signed app bundle with Mach-O universal (x86_64 arm64) [com.googlecode.munki.munki-notifier]
/var/folders/97/468njc4j3mbckmq5b5k52dl80000gn/T/munkipkg.mzrGDRi1/munki_app/Applications/Managed Software Center.app: signed app bundle with Mach-O universal (x86_64 arm64) [com.googlecode.munki.ManagedSoftwareCenter]

Creating launchd package source...
Creating app_usage package source...
Creating python package source...
Creating metapackage source...



I wonder if the errors I got on my first attempt at compiling with Xcode 13.0 (when I didn't use "-p" for make_munki_mpkg_from_git.sh)

==========================
Building Managed Software Update.xcodeproj...
** BUILD FAILED **


The following build commands failed:
        CompileXIB /Users/Shared/munki/munki-git/code/apps/Managed\ Software\ Center/Managed\ Software\ Center/Base.lproj/MainMenu.xib (in target 'Managed Software Center' from project 'Managed Software Center')
        CompileAssetCatalog /Users/Shared/munki/munki-git/code/apps/Managed\ Software\ Center/build/Release/Managed\ Software\ Center.app/Contents/Resources /Users/Shared/munki/munki-git/code/apps/Managed\ Software\ Center/Managed\ Software\ Center/Assets.xcassets (in target 'Managed Software Center' from project 'Managed Software Center')
(2 failures)
Error building Managed Software Center.app: 65
==========================


were indicative of not having all Xcode components updated; as I mentioned in another post in this thread, it was when I tried building Munki with Xcode 13.0 and the "-p" option, that I got error messages about CoreSimulator being out of date. Could be, haven't investigated when CoreSimulator 776.3.0 was released; build attempt that produced the output above was done on 9/28/2021, the one below on 9/29/2021,  when I tried building with Xcode 13.0 a second time and "-p" with make_munki_mpkg_from_git.sh.


==========================
Building Managed Software Update.xcodeproj...
2021-09-29 21:09:02.755 xcodebuild[41124:709026]  DVTErrorPresenter: Unable to load simulator devices.
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
Failure Reason: The version of the CoreSimulator framework installed on this Mac is out-of-date and not supported by this version of Xcode.
Recovery Suggestion: Please ensure that you have installed all available updates to your Mac's software, and that you are running the most recent version of Xcode supported by macOS.
--

CoreSimulator is out of date. Current version (757.5.0) is older than build version (776.3.0).
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
--
2021-09-29 21:09:02.755 xcodebuild[41124:709026]  iOSSimulator: [SimServiceContext sharedServiceContextForDeveloperDir:error:] returned nil (Error Domain=DVTCoreSimulatorAdditionsErrorDomain Code=3 "CoreSimulator is out of date. Current version (757.5.0) is older than build version (776.3.0)." UserInfo={NSLocalizedDescription=CoreSimulator is out of date. Current version (757.5.0) is older than build version (776.3.0).}). Simulator device support disabled.
2021-09-29 21:09:07.151 xcodebuild[41137:709616]  DVTErrorPresenter: Unable to load simulator devices.
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
Failure Reason: The version of the CoreSimulator framework installed on this Mac is out-of-date and not supported by this version of Xcode.
Recovery Suggestion: Please ensure that you have installed all available updates to your Mac's software, and that you are running the most recent version of Xcode supported by macOS.
--

CoreSimulator is out of date. Current version (757.5.0) is older than build version (776.3.0).
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
--
2021-09-29 21:09:07.152 xcodebuild[41137:709616]  iOSSimulator: [SimServiceContext sharedServiceContextForDeveloperDir:error:] returned nil (Error Domain=DVTCoreSimulatorAdditionsErrorDomain Code=3 "CoreSimulator is out of date. Current version (757.5.0) is older than build version (776.3.0)." UserInfo={NSLocalizedDescription=CoreSimulator is out of date. Current version (757.5.0) is older than build version (776.3.0).}). Simulator device support disabled.

** BUILD FAILED **


The following build commands failed:
        CompileXIB /Users/Shared/munki/munki-git/code/apps/Managed\ Software\ Center/Managed\ Software\ Center/Base.lproj/MainMenu.xib (in target 'Managed Software Center' from project 'Managed Software Center')
(1 failure)

Error building Managed Software Center.app: 65
==========================

Tom
Reply all
Reply to author
Forward
0 new messages