我想为一些我想包含在其他 iPhone 应用程序中的可重用代码创建一个静态框架。我通过创建一个包来创建这个框架。我已经将 twitter 库添加到这个框架中。问题是<libxml/xmlreader.h>
需要 libxml2.dylib 的 twitter 库导入,所以我将 libxml2.dylib 添加到我的包的“Link Binary With Libraries”但是编译器给了我警告,代码无法编译。我收到了这些警告信息。
Unexpected dylib (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks//Foundation.framework/Foundation) on link line
Unexpected dylib (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation) on link line
Unexpected dylib (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics) on link line
Unexpected dylib (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks//MessageUI.framework/MessageUI) on link line
Unexpected dylib (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks//UIKit.framework/UIKit) on link line
Unexpected dylib (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libxml2.dylib) on link line