xcode <FacebookSDK/FacebookSDK.h> 文件未找到

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29465662/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:55:19  来源:igfitidea点击:

<FacebookSDK/FacebookSDK.h> file not found

iosxcodefacebook-ios-sdk

提问by Anand Prakash

when I transfer my project from one system to another for work , I got error " file not found" then I remove the sdk and add new sdk in my system and then add in framework but still I'm getting same problem. I stuck ! help me.

当我将我的项目从一个系统转移到另一个系统进行工作时,出现错误“找不到文件”,然后我删除了 sdk 并在我的系统中添加了新的 sdk,然后添加到框架中,但我仍然遇到同样的问题。我卡住了!帮我。

回答by Hemali Luhar

Fo to your project-> Build Phases -> Open Link Binary with Phases & delete Facebook SDK & Add again.

转到您的项目-> 构建阶段-> 使用阶段打开链接二进制文件并删除 Facebook SDK 并再次添加。

Then go to your project->Build Settings ->Framework Search Path ->Just drag & drop your Proj to dilough Box.It will take path automatically

然后转到您的项目->构建设置->框架搜索路径->只需将您的 Proj 拖放到 dilough Box.It 将自动采用路径

Now Clean & Build your Project.It will work.

现在清理并构建您的项目。它将起作用。

Be sure that Facebook SDK is placed inside your project folder

确保 Facebook SDK 位于您的项目文件夹中

回答by vani lucky

import the FaceBookSDK framework into yourClass and AppDelegate Also

将 FaceBookSDK 框架导入 yourClass 和 AppDelegate 中

Go to "Build Settings" in Xcode, and under "Search Paths" there is a "Framework Search Paths" item. Double-click it and paste the file path like "/Users/Vani/Documents/FaceBookSDK/"

转到 Xcode 中的“Build Settings”,在“Search Paths”下有一个“Framework Search Paths”项。双击它并粘贴文件路径,如“/Users/Vani/Documents/FaceBookSDK/”

Be aware this setting exists both under 'Project' and 'Target', so paste it in both places.

请注意,此设置同时存在于“项目”和“目标”下,因此请将其粘贴到两个位置。

Clean project and build. This time it should work.

清理项目并构建。这次应该可以了。

I hope it works

我希望它有效