UIKit.h找不到错误 [英] UIKit.h not found error

查看:1545
本文介绍了UIKit.h找不到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为ipad制作了一个视图应用程序,带有电影,webview和按钮,当我尝试运行它时,我收到此错误。我已重新启动应用程序,并重新安装它,但没有任何工作。这个错误不断出现在我的MoviePlayer_Prefix.pch文件中。有人可以帮帮我吗?

I made a single view app for the ipad, with a movie, webview and button, and I get this error when I try and run it. I have restarted the application, and reinstalled it, but nothing is working. This error keeps coming up in my MoviePlayer_Prefix.pch file. Can someone help me out?

推荐答案

听起来你在某个时候从你的项目中删除了UIKit.framework。检查它是否列在项目导航器中。如果不存在,请转到项目导航器窗格中的项目,选择目标,转到构建阶段选项卡,单击链接二进制文件库,点击加号按钮,在那里找到UIKit.framework并将其添加到项目中。

It sounds like you removed the UIKit.framework from your project at some point. Check if it is listed in your project navigator. If it's not there, go to your project in the project navigator pane, select your target, go to the build phases tab, click on link binary with libraries, hit the plus button, find the UIKit.framework there and add it to your project.

编辑:
答案表明您的框架搜索路径构建设置可能存在问题。检查一下,如果路径是空的并且它仍然不起作用,我认为重新安装Xcode会修复它。

This answer suggests that there mayb be an issue with your framework search paths build setting. Check that out and if the path is empty and it still doesn't work, a re-install of Xcode would fix it, I think.

这篇关于UIKit.h找不到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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