[MacPorts] #64312: iaito: ld: cannot link directly with dylib/framework, your binary is not an allowed client of /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Python.framework/Python.tbd

MacPorts noreply at macports.org
Thu Feb 3 01:46:56 UTC 2022


#64312: iaito: ld: cannot link directly with dylib/framework, your binary is not an
allowed client of
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Python.framework/Python.tbd
-------------------------+------------------------
  Reporter:  ryandesign  |      Owner:  i0ntempest
      Type:  defect      |     Status:  reopened
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:
      Port:  iaito       |
-------------------------+------------------------

Comment (by ryandesign):

 Replying to [comment:9 i0ntempest]:
 > But it never needed Python 2 framework, it has always been linking just
 MacPorts Python 3 without problems for me.

 I showed [comment:3 above] that it links with both MacPorts Python 3 and
 system Python 2 frameworks.

 > You can see in the log it's {{{Project MESSAGE: Using Python.framework
 at /opt/local/Library/Frameworks}}}, and nowhere other than the final
 error message does it mention this {{{Python.tbd}}} in the SDK. I probably
 need to remove this SDK framework path from framework search paths but
 I'll need to figure out how first. There's no mention of
 {{{/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks}}}
 being in framework search paths in the log either.

 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
 is presumably a default framework search path. Your goal should probably
 not be to try to remove that, but to correct the other wrong frameworks
 paths that are being specified. I showed [comment:2 above] how it arrives
 at the decision to link with the system's framework rather than the
 intended MacPorts one.

-- 
Ticket URL: <https://trac.macports.org/ticket/64312#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list