Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#64912 closed defect (fixed)

qt5-qtcreator @6.0.2_1: unexpected error messages about macosx12 SDK

Reported by: jeremy-murphy (Jeremy W. Murphy) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Low Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: qt5-qtcreator

Description

During the Configuring stage, I get this 'error':

xcodebuild: error: SDK "macosx12" cannot be located.
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx12 -find ld 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "ld", not a developer tool or in PATH

which is understandable since this is Monterey 12.3, and the relevant output from xcodebuild -showsdks is:

macOS SDKs:
	macOS 12.3                    	-sdk macosx12.3

It actually builds and installs successfully, so evidently it finds ld another way.

Attachments (1)

main.log (2.3 MB) - added by dl8dtl (Jörg Wunsch) 2 years ago.
main.log from building on MacOS 12.3.1 / ARM M1

Change History (17)

comment:1 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:2 Changed 2 years ago by dl8dtl (Jörg Wunsch)

Same error message here, MacOS 12.3.1 on M1 CPU. However, here it's during the final link, so it doesn't build at all.

comment:3 Changed 2 years ago by dl8dtl (Jörg Wunsch)

Addition:

% /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -showsdks
DriverKit SDKs:
        DriverKit 21.4                  -sdk driverkit21.4

iOS SDKs:
        iOS 15.4                        -sdk iphoneos15.4

iOS Simulator SDKs:
        Simulator - iOS 15.4            -sdk iphonesimulator15.4

macOS SDKs:
        macOS 12.3                      -sdk macosx12.3

tvOS SDKs:
        tvOS 15.4                       -sdk appletvos15.4

tvOS Simulator SDKs:
        Simulator - tvOS 15.4           -sdk appletvsimulator15.4

watchOS SDKs:
        watchOS 8.5                     -sdk watchos8.5

watchOS Simulator SDKs:
        Simulator - watchOS 8.5         -sdk watchsimulator8.5

comment:4 Changed 2 years ago by dl8dtl (Jörg Wunsch)

Tried to download older SDKs (as part of the commandline tools): there is no such thing as a macosx12 SDK, only macosx12.0.

comment:5 in reply to:  2 ; Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Replying to dl8dtl:

Same error message here, MacOS 12.3.1 on M1 CPU. However, here it's during the final link, so it doesn't build at all.

Could you please post your main.log?

comment:6 Changed 2 years ago by kencu (Ken)

adding:

use_xcode yes

to the portfile usually fixes this

comment:7 in reply to:  6 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Replying to kencu:

adding:

use_xcode yes

to the portfile usually fixes this

qt5-qtcreator already has use_xcode yes (qt5-qtcreator-docs does not—I’m not aware whether it should).

comment:8 Changed 2 years ago by kencu (Ken)

Ah, I should have checked first. Thanks, Christopher.

Changed 2 years ago by dl8dtl (Jörg Wunsch)

Attachment: main.log added

main.log from building on MacOS 12.3.1 / ARM M1

comment:9 in reply to:  5 ; Changed 2 years ago by dl8dtl (Jörg Wunsch)

Replying to chrstphrchvz:

Could you please post your main.log?

Filed as an attachment.

comment:10 in reply to:  9 ; Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Replying to dl8dtl:

Replying to chrstphrchvz:

Could you please post your main.log?

Filed as an attachment.

I believe this is the relevant command (although the “One of the two will be used. Which one is undefined.” messages can be ignored):

:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/actool --app-icon qtcreator --output-partial-info-plist /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-6.0.2/src/app/asset_catalog_compiler.Info.plist --platform macosx --minimum-deployment-target 12.0 --compile '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-6.0.2/bin/Qt Creator.app/Contents/Resources' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-6.0.2/src/app/qtcreator.xcassets
…
:info:build objc[58607]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1fedc2098) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c2c8). One of the two will be used. Which one is undefined.
:info:build objc[58607]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1fedc20e8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c318). One of the two will be used. Which one is undefined.
:info:build objc[58607]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1fedc1eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c4f8). One of the two will be used. Which one is undefined.
:info:build objc[58607]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fedc1f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c548). One of the two will be used. Which one is undefined.
:info:build objc[58607]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fedc1f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c598). One of the two will be used. Which one is undefined.
:info:build objc[58607]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1fedc1fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c5e8). One of the two will be used. Which one is undefined.
:info:build objc[58607]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1fedc1ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c638). One of the two will be used. Which one is undefined.
:info:build objc[58607]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1fedc2040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10794c688). One of the two will be used. Which one is undefined.
:info:build 2022-05-20 22:12:57.206 ibtoold[58607:3165480] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition for extension Xcode.IBCocoaTouchBuildSupport.PlatformDefinition.MacCatalyst of plug-in com.apple.dt.IDE.IBCocoaBuildSupport
:info:build 2022-05-20 22:12:57.206 ibtoold[58607:3165480] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition for extension Xcode.IBCocoaBuildSupport.PlatformDefinition.Cocoa of plug-in com.apple.dt.IDE.IBCocoaBuildSupport
:info:build 2022-05-20 22:12:57.206 ibtoold[58607:3165480] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition for extension Xcode.IBCocoaTouchBuildSupport.PlatformDefinition.CocoaTouch of plug-in com.apple.dt.IDE.IBCocoaTouchBuildSupport
:info:build 2022-05-20 22:12:57.206 ibtoold[58607:3165480] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition for extension Xcode.IBAppleTVBuildSupport.PlatformDefinition.AppleTV of plug-in com.apple.dt.IDE.IBAppleTVBuildSupport
:info:build 2022-05-20 22:12:57.207 ibtoold[58607:3165480] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition for extension Xcode.IDEInterfaceBuilder.PlatformDefinition.WatchOS of plug-in com.apple.dt.IDE.IDEInterfaceBuilderWatchKitBuildSupport
:info:build 2022-05-20 22:12:57.219 ibtoold[58607:3165480] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.AssetCatalogCocoaTouchKit (/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file)" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), NSBundlePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework, NSLocalizedDescription=The bundle “AssetCatalogCocoaTouchKit” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0000): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file)
:info:build 2022-05-20 22:12:57.220 ibtoold[58607:3165480] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension AssetCatalogCocoaTouchKit.plugindata/plug-in[1]/extension[1]: Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.AssetCatalogCocoaTouchKit, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 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/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0000): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework, NSLocalizedFailureReason=The plug-in “com.apple.dt.AssetCatalogCocoaTouchKit” at path “/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600000c3a6d0 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file)" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), NSBundlePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework, NSLocalizedDescription=The bundle “AssetCatalogCocoaTouchKit” couldn’t be loaded.}}}
:info:build Uncaught exception: NSInternalInconsistencyException Error getting value for key 'initializationClass' of extension 'AssetCatalogCocoaTouchKit.plugindata/plug-in[1]/extension[1]' in plug-in 'com.apple.dt.AssetCatalogCocoaTouchKit': Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.AssetCatalogCocoaTouchKit, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 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/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0000): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework, NSLocalizedFailureReason=The plug-in “com.apple.dt.AssetCatalogCocoaTouchKit” at path “/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600000c3a6d0 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file)" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
:info:build   Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration
:info:build   Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), NSBundlePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework, NSLocalizedDescription=The bundle “AssetCatalogCocoaTouchKit” couldn’t be loaded.}}} {
:info:build     NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.AssetCatalogCocoaTouchKit, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 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/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0000): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator\n  Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration\n  Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.AssetCatalogCocoaTouchKit\U201d at path \U201c/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework\U201d could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600000c3a6d0 {Error Domain=NSCocoaErrorDomain Code=3588 \"dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator\n  Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration\n  Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file)\" UserInfo={NSLocalizedFailureReason=The bundle couldn\U2019t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework/AssetCatalogCocoaTouchKit, 0x0109): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator\n  Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/Versions/A/IDEInterfaceBuilderCocoaTouchIntegration\n  Reason: tried: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), '/System/Library/Frameworks/CoreSimulator.framework/Versions/A/CoreSimulator' (no such file), NSBundlePath=/Applications/Xcode.app/Contents/Frameworks/AssetCatalogCocoaTouchKit.framework, NSLocalizedDescription=The bundle \U201cAssetCatalogCocoaTouchKit\U201d couldn\U2019t be loaded.}}}";
:info:build }
:info:build Backtrace:
:info:build   0   __exceptionPreprocess (in CoreFoundation)
:info:build   1   objc_exception_throw (in libobjc.A.dylib)
:info:build   2   -[DVTExtension valueForKey:error:] (in DVTFoundation)
:info:build   3   _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
:info:build   4   _IDEInitializePlugIns (in IDEFoundation)
:info:build   5   IDEInitialize (in IDEFoundation)
:info:build   6   IBIDEInitialize (in ibtoold)
:info:build   7   main (in ibtoold)
:info:build   8   start (in dyld)
:info:build make[2]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-6.0.2/src/app/asset_catalog_compiler.Info.plist] Error 255

actool crashes due to plugin AssetCatalogCocoaTouchKit failing to load. The error message suggests reinstalling the bundle for it; I’m not aware how to do that aside from reinstalling Xcode entirely or if that will actually help, but since Xcode 13.4 is now out you may as well update. This also seems separate from the issue in this ticket’s description, and not a problem during linking.

comment:11 Changed 2 years ago by kencu (Ken)

I believe the "error" in this original ticket is not an error at all. I suspect it's just the way the code was written here in the qmake5 portgroup:

https://github.com/macports/macports-ports/blob/81fa4a06d2d1d419029bf9714b0558819cd164ea/_resources/port1.0/group/qmake5-1.0.tcl#L58

as per this commit:

https://github.com/macports/macports-ports/commit/9887e90d69f4265f9056cddc45e41551d7400235#commitcomment-49824261

The code is supposed to generate an error if the specific SDK can't be found, and as written is meant to then fall back to a generic sdk named "macosx".

So, short answer -- there is nothing to fix here, for the original ticket at least, other than find a way to prevent the error from being printed to the screen that confuses people.

What other errors might be causing people to have build issues remain to be discovered, I suppose. My build of qt5-qtcreator on Monterey 12.3.1 is still going on.

Last edited 2 years ago by kencu (Ken) (previous) (diff)

comment:12 Changed 2 years ago by kencu (Ken)

the port installed without any trouble, without touching a single thing in any Portfile or PortGroup:

% port -v installed qt5-qtcreator
The following ports are currently installed:
  qt5-qtcreator @6.0.2_1 (active) requested_variants='' platform='darwin 21' archs='x86_64' date='2022-05-20T22:14:02-0700'

on:

macOS 12.3.1 21E258 x86_64
Xcode 13.4 13F17a

comment:13 Changed 2 years ago by kencu (Ken)

see https://github.com/macports/macports-ports/pull/14914 for a PR that attempts to improve this error message’s optics

Last edited 2 years ago by kencu (Ken) (previous) (diff)

comment:14 in reply to:  10 Changed 2 years ago by dl8dtl (Jörg Wunsch)

Replying to chrstphrchvz:

actool crashes due to plugin AssetCatalogCocoaTouchKit failing to load. The error message suggests reinstalling the bundle for it; I’m not aware how to do that aside from reinstalling Xcode entirely or if that will actually help, but since Xcode 13.4 is now out you may as well update. This also seems separate from the issue in this ticket’s description, and not a problem during linking.

Thanks, you are right. I have been fooled by the obvious "ld" message.

I removed and reinstalled XCode, the problem was still there. I started XCode once manually, and it told me that it needs to install further components. This seems to have been the key, afterwards the build went fine (the "ld" message is still there, as in the original report here).

Thanks for your help, I've been close to file a new ticket …

comment:15 Changed 2 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

comment:16 Changed 2 years ago by jeremy-murphy (Jeremy W. Murphy)

Thanks for the improvement, Ken!

Note: See TracTickets for help on using tickets.