我新的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