我有一個二進制文件,我鏈接到Python.framework
。針對當前版本的Python.framework鏈接
通過otool -L <binary>
,它似乎鏈接到完整的符號鏈接解析路徑,即/System/Library/Frameworks/Python.framework/Versions/2.7/Python
而不是/System/Library/Frameworks/Python.framework/Versions/Current/Python
。從只有Python的2.6框架的用戶,我也得到了它拋出這個錯誤報告:
Dyld Error Message:
Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/MusicPlayer.app/Contents/MacOS/MusicPlayer
Reason: image not found
我怎麼能告訴Xcode中,它應該鏈接到/System/Library/Frameworks/Python.framework/Versions/Current/Python
?
我使用libpython2.6.dylib,因爲它使測試更容易。但是,謝謝! – Albert