未找到框架 MicrosoftBandKit_iOS

Framework not found MicrosoftBandKit_iOS

错误:

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)

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

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

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

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

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

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

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

完成!