1

错误:

Ld DerivedData/SenseWatch/Build/Products/Debug-iphonesimulator/SenseWatch.app/SenseWatch normal x86_64
cd /Users/Jieyi/Documents/Repo/SenseWatch
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/Jieyi/Documents/Repo/SenseWatch/DerivedData/SenseWatch/Build/Products/Debug-iphonesimulator -F/Users/Jieyi/Documents/Repo/SenseWatch/DerivedData/SenseWatch/Build/Products/Debug-iphonesimulator -filelist /Users/Jieyi/Documents/Repo/SenseWatch/DerivedData/SenseWatch/Build/Intermediates/SenseWatch.build/Debug-iphonesimulator/SenseWatch.build/Objects-normal/x86_64/SenseWatch.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework MicrosoftBandKit_iOS -Xlinker -dependency_info -Xlinker /Users/Jieyi/Documents/Repo/SenseWatch/DerivedData/SenseWatch/Build/Intermediates/SenseWatch.build/Debug-iphonesimulator/SenseWatch.build/Objects-normal/x86_64/SenseWatch_dependency_info.dat -o /Users/Jieyi/Documents/Repo/SenseWatch/DerivedData/SenseWatch/Build/Products/Debug-iphonesimulator/SenseWatch.app/SenseWatch

ld: framework not found MicrosoftBandKit_iOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我刚刚创建了项目,在构建阶段添加了框架。该框架显然是在项目之下。但它仍然说找不到。我知道它可能需要完成框架搜索路径。但我不明白怎么做?喜欢放入框架的绝对路径?

4

2 回答 2

4

没有绝对路径是不好的方法,它只适用于您的计算机,不适用于您的合作伙伴。设置相对路径是最好的方法。为框架设置路径:

  1. 确保框架位于项目文件夹中

  2. 选择目标-> 构建设置-> 搜索路径-> 框架搜索路径。双击它将显示一个搜索路径输入文本视图

  3. 在 Finder 中转到文件夹内容框架。拖动此文件夹以搜索路径输入文本视图。它将是“$(SRCROOT)/Vendors/FacebookSDK”之类的东西

  4. 只需删除双引号“”,结果:$(SRCROOT)/Vendors/FacebookSDK

完毕!

在此处输入图像描述

于 2015-06-10T01:26:02.907 回答
0

http://stationinthemetro.com/2014/06/04/copy-file-path-as-text-in-mac-os-x 我使用它并复制绝对路径并将其放在框架搜索路径下并且它可以工作

于 2015-06-10T00:07:53.997 回答