我新的iOS开发,我用这家伙的OAuth实现: https://github.com/Christian-Hansen/simple-oauth1, 所以我建立一个基于项目为了简单起见,在他的项目文件中。 过了一段时间,我意识到我不喜欢文件夹结构,所以我通过重命名一些文件夹来改变它。我不得不更换一堆红色的文件。当我尝试编译时,现在出现这些错误:iOS的项目将无法编译,因为它无法找到PCH文件,因为我不得不重命名文件夹
- Check dependencies:
Warning: The Copy Bundle Resources build phase contains this target's info.plist file '/Users/Manuel/Desktop/MyApp/MyApp/MyApp-info.plist'
- Precompile MyApp-Prefix.pch ...in /Users/Manuel/Desktop/MyApp/Simple-OAuth1
... a bunch of ProcessPCH stuff here that I can't decipher
clang: error: no such file or directory: '/Users/Manuel/Desktop/MyApp/Simple-OAuth1/MyApp-Prefix.pch
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
我已将文件夹名称从Simple-OAuth1更改为MyApp。我替换了前缀文件,所以它不再是红色的。是否有某些设置需要更改才能使其运行?我也尝试清理这个项目。
创建一个缺少文件名的新文件。并添加这些行#ifdef __OBJC__ #import #import #endif –
iphonic
2015-03-02 08:41:05
不幸的是没有工作。 – 2015-03-02 08:42:59
正如错误所述,它找不到pch文件。查看构建设置并搜索预编译头。在那里重命名文件名,你很好。 – Sandeep 2015-03-02 08:46:17