ios - Xcode 4.5 和 iOS 6 与 Tapuku 库的链接错误

标签 ios xcode three20 ios6 xcode4.5

只有当我的项目编译为在 iOS 设备上运行时,我才会收到此错误。有没有人遇到过类似的问题?我正在尝试在设备上运行我的项目。我几乎到处都看过,但找不到解决方案。如有任何帮助,我们将不胜感激。

Ld /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/McKendree.app/McKendree normal armv7
    cd /Users/dapage/Developer/workspace/McKendree
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.0
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos -L/Users/dapage/Developer/workspace/McKendree -L/Users/dapage/Developer/workspace/McKendree/Libraries -L/Users/dapage/Developer/workspace/McKendree/Libraries/OAuthConsumer -L/Users/dapage/Developer/workspace/McKendree/Libraries/TestFlight -L/Users/dapage/Developer/workspace/McKendree/../../../Downloads/TestFlightSDK1 -F/Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos -filelist "/Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Intermediates/McKendree University.build/Debug-iphoneos/McKendree.build/Objects-normal/armv7/McKendree.LinkFileList" -dead_strip -ObjC -fobjc-link-runtime -miphoneos-version-min=4.0 /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libThree20UI.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libThree20UICommon.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libThree20UINavigator.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libextThree20XML.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libThree20.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libThree20Core.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libThree20Network.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libThree20Style.a /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libTapkuLibrary.a -framework AddressBook -framework AddressBookUI -framework AudioToolbox -lz -framework QuartzCore -framework Foundation -framework UIKit -framework CoreGraphics -framework MapKit -framework MessageUI -framework MediaPlayer -framework AVFoundation -framework SystemConfiguration -framework CoreLocation -lxml2 -lsqlite3.0 -framework CFNetwork -framework Security -lOAuth -lTestFlight -o /Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/McKendree.app/McKendree\

错误是:

clang: error: no such file or directory: '/Users/dapage/Library/Developer/Xcode/DerivedData/McKendree_University-clkfusicbtxoumeeuoisuduipobw/Build/Products/Debug-iphoneos/libTapkuLibrary.a'

最佳答案

确保二进制库位于项目根目录下,并将其添加为引用。您可以通过在项目导航器 (Cmd-1) 中选择项目然后选择构建阶段来执行此操作。在 Link Binary with Libraries 下,您应该有对二进制文件的引用。您可能还想将库二进制文件添加到您的项目中,这可能会自动将其作为链接二进制文件。您还可以在build设置下编辑库搜索路径,并添加您拥有此二进制文件的文件夹。

"$(SRCROOT)/lib"

如果您在那个文件夹中有二进制文件,它可能会发现这样做更容易。您还需要引用此库的 header ,因此请查看设置 header 搜索路径并将 header 文件添加到您的项目。

如果可以,我更愿意将来自第三方库的代码添加为静态库并将它们添加为依赖项。您可以先将其作为一个单独的项目来执行,然后让它自己成功构建。然后你可以将该项目文件拖到 Xcode 中的另一个项目中并将其设置为依赖项。您将需要了解方案如何管理依赖项的构建项目以设置子项目。您可能会发现这种方法比链接到预编译库容易得多,后者可能不包含 Apple 发布的设备所需的架构。如果您有源代码作为依赖项,您将能够构建必要的二进制版本。

关于ios - Xcode 4.5 和 iOS 6 与 Tapuku 库的链接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12557121/

相关文章:

xcode - 在xcode中学习高级调试技术GDB的提示或资源

ios - 如何检测包含很多部分的 tableview 的底部? ( swift )

ios - AVPlayer 的 iOS 应用程序中的 FairPlay DRM 支持

xcode - 我对 xcode-select -switch 使用什么设置?

iphone - 从 Content-Disposition header 获取文件名

ios - 带有 Three20 的字母 TableView

iphone - iPad 上图像的最佳尺寸是多少?

ios - 在 XCode 4.2 中添加 ARCHS_STANDARD_32_BIT = armv6 armv7 是否安全?

android - 是否需要任何配置来使用 Android 和 IOS 的 Web Api 服务(为黑莓开发)

ios - 自定义 UIButton 的 subview 不在正确的位置