ios - 未找到框架 MicrosoftBandKit_iOS

标签 ios objective-c xcode microsoft-band

错误:

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)

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

最佳答案

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

  • 确保框架位于项目文件夹
  • 选择目标-> build设置-> 搜索路径-> 框架搜索路径。双击它将显示一个搜索路径输入 TextView
  • 在 Finder 中转到文件夹内容框架。拖动此文件夹以搜索路径输入 TextView 。会是类似“$(SRCROOT)/Vendors/FacebookSDK”
  • 只需删除双引号“”,结果:$(SRCROOT)/Vendors/FacebookSDK

  • 完毕!



    enter image description here

    关于ios - 未找到框架 MicrosoftBandKit_iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30744761/

    相关文章:

    ios - 从模态呈现的 UINavigationVController 导航到根 UINavigationVController - swift

    ios - 如何知道 tableview 行是奇数还是什至不可知它所在的部分

    ios - UICollectionViewCells 在 reloadData() 后不显示

    iOS CAGradientLayer 不适用于某些颜色

    ios - AWS IOS SDK + Facebook 登录问题

    ios - 如何创建瓦片 map 属性 ios cocos2d

    objective-c - 字符串范围 : high CPU usage

    objective-c - 使用 CLLocation 对象作为字典中的键

    iphone - iOS : How to allign UITableView to bottom?

    iphone - 无法从另一个 View 的 NSMutable 数组填充 UITableView