Adding MacPorts libraries to an Xcode project (was: Re: macports-users Digest, Vol 167, Issue 1)

Ryan Schmidt ryandesign at macports.org
Mon Jul 6 14:57:50 UTC 2020



On Jul 5, 2020, at 16:23, Thomas Bodlien wrote:

> is it possible to add MacPorts libraries to a Xcode project?
> Or is that not recommended?
> 
> I am getting this signature error:
> 
>> Process:               JavaScript Blocker [5806]
>> Path:                  /Volumes/*/JavaScript Blocker.app/Contents/MacOS/JavaScript Blocker
>> Identifier:            com.thomas.bodlien.software.JavaScript-Blocker
>> Version:               1.0 (1)
>> Code Type:             X86-64 (Native)
>> Parent Process:        ??? [1]
>> Responsible:           JavaScript Blocker [5806]
>> User ID:               501
>> 
>> Date/Time:             2020-07-05 22:41:17.414 +0200
>> OS Version:            Mac OS X 10.14.5 (18F132)
>> Report Version:        12
>> Anonymous UUID:        1410F5F7-61D5-9F0A-C85F-1535687032A4
>> 
>> 
>> Time Awake Since Boot: 400000 seconds
>> 
>> System Integrity Protection: enabled
>> 
>> Crashed Thread:        0
>> 
>> Exception Type:        EXC_CRASH (SIGABRT)
>> Exception Codes:       0x0000000000000000, 0x0000000000000000
>> Exception Note:        EXC_CORPSE_NOTIFY
>> 
>> Termination Reason:    DYLD, [0x5] Code Signature
>> 
>> Application Specific Information:
>> dyld: launch, loading dependent libraries
>> 
>> Dyld Error Message:
>>   Library not loaded: /opt/local/lib/libdbus-1.3.dylib
>>   Referenced from: /Volumes/*/JavaScript Blocker.app/Contents/MacOS/JavaScript Blocker
>>   Reason: no suitable image found.  Did find:
>> 	/opt/local/lib/libdbus-1.3.dylib: code signature in (/opt/local/lib/libdbus-1.3.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
>> 	/opt/local/lib/libdbus-1.3.dylib: stat() failed with errno=1


I guess you have two choices:

1. Don't use codesigning in your Xcode project
2. Codesign the MacPorts libraries that you want to use



More information about the macports-users mailing list