您可以使用 10.8 SDK 开发您的应用程序,并链接到 root-level CFNetwork.framework
,但您需要确保将部署目标设置为 10.6。这将确保链接器不会生成对CFNetwork.framework
.
将输出otool
与 10.8 部署进行比较:
MacPro:~ mdouma46$ otool -L /Users/mdouma46/.../CFNetwork\ Finagler
/Users/mdouma46/.../CFNetwork\ Finagler:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
/usr/lib/libobjc.A.dylib
/usr/lib/libSystem.B.dylib
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
和 10.6 部署目标:
MacPro:~ mdouma46$ otool -L /Users/mdouma46/.../CFNetwork\ Finagler
/Users/mdouma46/.../CFNetwork\ Finagler:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
/usr/lib/libobjc.A.dylib
/usr/lib/libSystem.B.dylib
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation