gpt4 book ai didi

objective-c - 向我的框架中添加动态库会给我警告

转载 作者:行者123 更新时间:2023-12-01 19:15:02 26 4
gpt4 key购买 nike

我想为一些想包含在其他iPhone应用程序中的可重用代码创建一个静态框架。我通过创建捆绑包创建了这个框架。我已经在这个框架中添加了twitter库。问题是twitter库导入了需要libxml2.dylib的<libxml/xmlreader.h>,所以我将libxml2.dylib添加到了我捆绑包的“使用库链接二进制文件”中但是编译器警告我,代码无法编译。我收到了这些警告消息。

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

最佳答案

我只是努力解决了这个问题。将诸如CoreFoundation.Framework之类的标准框架添加到自定义框架中,您将一无所获。一旦将它们从自定义框架中删除,这些警告将消失。最终用户在实现自定义框架时必须将必需的标准框架添加到他们的应用程序中。

关于objective-c - 向我的框架中添加动态库会给我警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13899634/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com