CpResource sage-document-cython.icns build/Debug/Sage.app/Contents/Resources/sage-document-cython.icns
cd /Users/michael/sage-8.1/src/mac-app
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/michael/sage-8.1/src/mac-app/sage-document-cython.icns /Users/michael/sage-8.1/src/mac-app/build/Debug/Sage.app/Contents/Resources
StripNIB English.lproj/MainMenu.nib
cd /Users/michael/sage-8.1/src/mac-app
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --write /Users/michael/sage-8.1/src/mac-app/build/Debug/Sage.app/Contents/Resources/English.lproj/MainMenu.nib --output-format human-readable-text /Users/michael/sage-8.1/src/mac-app/English.lproj/MainMenu.nib
2017-12-10 12:49:59.678 ibtoold[97811:5456402] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration (/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework), error = Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found
2017-12-10 12:49:59.678 ibtoold[97811:5456402] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension Xcode.InterfaceBuilderKit.PepperIntegration.Singletons: Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration” at path “/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7fd2c160a8d0 {Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}}}
2017-12-10 12:49:59.680 ibtoold[97811:5456402] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error getting value for parameter key 'name' of extension 'Xcode.InterfaceBuilderKit.PepperIntegration.Singletons' in plug-in 'com.apple.dt.IDE.IDEInterfaceBuilderWatchKitIntegration''
*** First throw call stack:
(
0 CoreFoundation 0x00007fff4162900b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff68203c76 objc_exception_throw + 48
2 DVTFoundation 0x000000010c8c352d -[DVTExtensionParameter valueForKey:error:] + 0
3 IDEInterfaceBuilderKit 0x000000010c051bed -[IBScopedSingletonRegistry init] + 722
4 IDEInterfaceBuilderKit 0x000000010c051901 __43+[IBScopedSingletonRegistry sharedInstance]_block_invoke + 41
5 libdispatch.dylib 0x00007fff68db9d50 _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff68db9d03 dispatch_once_f + 41
7 IDEInterfaceBuilderKit 0x000000010c0518d5 +[IBScopedSingletonRegistry sharedInstance] + 45
8 IDEInterfaceBuilderKit 0x000000010be68d05 -[IBInterfaceBuilderPlugin init] + 146
9 IDEInterfaceBuilderKit 0x000000010be68c59 +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] + 34
10 IDEFoundation 0x000000010d1f1f42 _IDEInitializeOnePlugInAndPrerequisites + 2324
11 IDEFoundation 0x000000010d1f1849 _IDEInitializeOnePlugInAndPrerequisites + 539
12 IDEFoundation 0x000000010d1f1849 _IDEInitializeOnePlugInAndPrerequisites + 539
13 IDEFoundation 0x000000010d1eff3e _IDEInitializePlugIns + 1604
14 IDEFoundation 0x000000010d1ef2f5 IDEInitialize + 8547
15 ibtoold 0x000000010bb60170 ibtoold + 74096
16 ibtoold 0x000000010bb5f2eb ibtoold + 70379
17 libdyld.dylib 0x00007fff68df3115 start + 1
18 ??? 0x0000000000000009 0x0 + 9
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 6
StripNIB English.lproj/MyDocument.nib
cd /Users/michael/sage-8.1/src/mac-app
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --write /Users/michael/sage-8.1/src/mac-app/build/Debug/Sage.app/Contents/Resources/English.lproj/MyDocument.nib --output-format human-readable-text /Users/michael/sage-8.1/src/mac-app/English.lproj/MyDocument.nib
** BUILD FAILED **
The following build commands failed:
StripNIB English.lproj/MainMenu.nib
(1 failure)
make: *** [sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app] Error 65
I am trying to build the sage 8.1 mac-app on macOS 10.13.2 with Xcode V9.2 and Command Line Tools for Xcode V9.1.
I have been able to compile sage and run make ptests (all tests passed).When I try to build the Mac-app in sage-8.1/src/mac-app it crashes with a failure to build MainMenu.nib, see below.
sent 5283312336 bytes received 2867200 bytes 26104590.30 bytes/sec
total size is 5273738227 speedup is 1.00
test -d sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents/Resources/sage && touch sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents/Resources/sage
rm -f sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/sage
ln -s Contents/Resources/sage/sage sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/sage
cp /Users/michael/sage-8.1/src/bin/sage-README-osx.txt sage-8.1-OSX_10.13.2_x86_64/README.txt
mkdir -p sage-8.1-OSX_10.13.2_x86_64/.background
cp sage-dmg-background.png sage-8.1-OSX_10.13.2_x86_64/.background/sage.png
rm -f sage-8.1-OSX_10.13.2_x86_64/Applications
ln -s /Applications/ sage-8.1-OSX_10.13.2_x86_64/Applications
hdiutil create -srcfolder sage-8.1-OSX_10.13.2_x86_64 -volname sage-8.1-OSX_10.13.2_x86_64 -format UDRW tmp-sage-8.1-OSX_10.13.2_x86_64.app.dmg
........................................................................................................................................
created: /Users/michael/sage-8.1/src/mac-app/tmp-sage-8.1-OSX_10.13.2_x86_64.app.dmg
mkdir -p mnt
hdiutil attach tmp-sage-8.1-OSX_10.13.2_x86_64.app.dmg -mountpoint mnt
/dev/disk6 GUID_partition_scheme
/dev/disk6s1 EFI
/dev/disk6s2 Apple_APFS
/dev/disk7 EF57347C-0000-11AA-AA11-0030654
/dev/disk7s1 41504653-0000-11AA-AA11-0030654 /Users/michael/sage-8.1/src/mac-app/mnt
osascript arrangeIcons.applescript mnt SageMath-8.1.app
arrangeIcons.applescript:107:111: execution error: Finder got an error: Can’t get disk "mnt". (-1728)
make: *** [tmp-sage-8.1-OSX_10.13.2_x86_64.app.dmg] Error 1
It appears that diskimage still has the tmp-sage-8.1-OSX_10.13.2_x86_64.app.dmg file open. You can find this with "sudo lsof |fgrep tmp-sage-8.1". Killing disk image allows the "hdiutil convert -format UDBZ -o sage-8.1-OSX_10.13.2_x86_64.app.dmg tmp-sage-8.1-OSX_10.13.2_x86_64.app.dmg" command to succeed.Mike