testflight库和Xcode 5中没有任何变化现在说“ld:找不到-lTestFlight的库”。 [英] No changes in testflight libraries and Xcode 5 now says "ld: library not found for -lTestFlight"

查看:175
本文介绍了testflight库和Xcode 5中没有任何变化现在说“ld:找不到-lTestFlight的库”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了几个月的应用程序,突然Xcode 5不想构建它。它只是抱怨以下错误。

I've been creating some app for some months, and suddently Xcode 5 doesn't want to build it. It just complains with the following error.

Ld build/Debug-iphonesimulator/appname.app/appname normal i386
cd /Users/myname/proyectos/appname/dev/iOS/appname
setenv IPHONEOS_DEPLOYMENT_TARGET 5.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/myname/proyectos/appname/dev/iOS/appname/build/Debug-iphonesimulator -L\"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/FlurryAnalytics\" -L\"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/SmartADServer\" -L\"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/TestFlight\" -F/Users/myname/proyectos/appname/dev/iOS/appname/build/Debug-iphonesimulator -F/Users/myname/proyectos/appname/dev/iOS/appname/appname/External -filelist /Users/myname/proyectos/appname/dev/iOS/appname/build/appname.build/Debug-iphonesimulator/Appname.build/Objects-normal/i386/appname.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.1 -weak_framework AdSupport -framework Security -framework MessageUI -framework Twitter -framework CoreLocation -weak_framework CoreMotion -framework AudioToolbox -framework AVFoundation -framework MediaPlayer -framework SystemConfiguration -framework MobileCoreServices -lz -framework CFNetwork -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -lTestFlight -framework comScore -lFlurry -Xlinker -dependency_info -Xlinker /Users/myname/proyectos/appname/dev/iOS/appname/build/appname.build/Debug-iphonesimulator/Appname.build/Objects-normal/i386/appname_dependency_info.dat -o /Users/myname/proyectos/appname/dev/iOS/appname/build/Debug-iphonesimulator/appname.app/appname

ld: warning: directory not found for option '-L"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/FlurryAnalytics"'
ld: warning: directory not found for option '-L"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/SmartADServer"'
ld: warning: directory not found for option '-L"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/TestFlight"'
ld: library not found for -lTestFlight
clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果我理解它可以,它会抱怨testflight,但我几周没有改变它。它完美地编译了它。

If I understand it ok, it complains about testflight, but I haven't changed anything about it in weeks. It compiled it perfectly.

我不得不说我已经尝试将Adobe ADMS跟踪库添加到项目中(但随后撤消其添加)。然后,出现链接器错误。

I have to say I've tried adding Adobe ADMS tracking library onto the project (but then undoing its addition). And then after that, linker errors appear.

任何提示?我完全失去了沮丧和沮丧。我的项目文件可能会损坏吗? (我们希望不要!!)在这种情况下是否有希望恢复它们?

Any hint? I'm COMPLETELY at lost and frustrated. Are my project files corrupt maybe? (Let's hope not!!) Any hope to recover them in such case?

问候

推荐答案

问题解决了。

显然(正如ahwulf所说,我怀疑)我的项目路径/库/标题以某种方式腐败在Xcode 5中。

Apparently it seemed (as ahwulf said, and I suspected) that my Project paths/libraries/headers where somehow corrupt inside Xcode 5.

我的解决方案是什么?经过更多的额外测试后,我只是从项目中物理删除了一些显然存在冲突的库(testflight,flurry等等)(并从磁盘中删除)并开始编译,等待出现明显的编译错误。

What was my solution? After more additional tests, I just physically removed some of my apparently conflicting libraries (testflight, flurry, etc...) from the project (and ALSO from disk) and started compiling, waiting for the obvious compilation errors that would appear.

当它们出现时,我只是重新添加了XCode要求我添加的文件(一次一个文件/库),然后一个接一个,所有这些错误都开始了慢慢消失。
我的原始链接错误也消失了,所以我的项目再次构建。

When they appeared, I just re-added the files XCode asked me to add (one file/library at a time), and then one by one, all these errors started to slowly disappear. My original linking error ALSO disappeared, so my project builds again.

我感觉我真的不知道我做了什么,但是它有效。

I have the feeling I don't really know what I did, but "it worked".

这篇关于testflight库和Xcode 5中没有任何变化现在说“ld:找不到-lTestFlight的库”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆