框架未找到MicrosoftBandKit_iOS [英] Framework not found MicrosoftBandKit_iOS

查看:113
本文介绍了框架未找到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)

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

I just created the project, added the framework in build phases. the framework is clearly under the project. but it still says not found. i know that it may needs to finish framework search path. but i don't understand how to? like put in the absolute path for the framework?

推荐答案

没有绝对路径是不好的方式,它只能在你的计算机上工作,而不是与你的伙伴一起工作。设置相对路径是最好的方法。设置框架的路径:

no absolute path is bad way, it only work in your computer, not work with your partner. Set relative path is best way. To set path for framework:


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

  1. be sure framework locate in project folder

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

select target -> Build Setting -> Search Path-> Framework Search Paths. Double click it will show an Search Paths input text view

转到文件夹内容框架。拖动此文件夹以搜索路径输入文本视图。这将是$(SRCROOT)/ Vendors / FacebookSDK

in Finder go to folder content framework. Drag this folder to search paths input text view. it will be some thing like "$(SRCROOT)/Vendors/FacebookSDK"

只需删除double qoute,结果:$(SRCROOT)/ Vendors / FacebookSDK

just remove double qoute "", result: $(SRCROOT)/Vendors/FacebookSDK

完成!

这篇关于框架未找到MicrosoftBandKit_iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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