regarding - Xcode error-> Clang: error: no input files

后端 未结 9 2100
你的背包
你的背包 2020-12-25 12:52

I am totally new to the Xcode and getting the error below:

clang: error: no such file or directory: \'/usersd/chairman/desktop/MySecondTabApp/MySeco

相关标签:
9条回答
  • 2020-12-25 13:02

    Had the same problem. Try replacing MySecondTabbApp/MySecondTabbApp-Prefix.pch with MySecondTabbApp-Prefix.pch.

    0 讨论(0)
  • 2020-12-25 13:02
    clang: error: no such file or directory: '/usersd/chairman/desktop/MySecondTabApp/MySecondTabbApp/"MySecondTabbApp/MySecondTabbApp-Prefix.pch"'
    

    It means your Pch file does not exists in above path. Check in you code where PCH file is available and and take that path and upload in PrefixHeader in Apple LLVM 8.0. Like

    $(SRCROOT)/PATH/app_PrefixHeader.pch
    
    0 讨论(0)
  • 2020-12-25 13:03

    updating the pods helped me

    pod update
    

    It turned out to be a dependency issue. Updating the pod installed necessary components

    0 讨论(0)
  • 2020-12-25 13:06

    Did you move your folder/files after making the project? It's because Xcode can't find the prefix header for some reason. It can be easily fixed by relocating it.

    Change the Prefix Header to where the .pch file is located in your folder.

    0 讨论(0)
  • 2020-12-25 13:11

    Had same problem. Had to go into Finder (outside of Xcode) and place my .pch file in a new folder to match the requested path.

    Once the file's location matched the path it was fixed.

    0 讨论(0)
  • 2020-12-25 13:16
    1. Make new file: ⌘cmd+N iOS/Mac > Other > PCH File >
    2. YourProject-Prefix.pch. Project > Build Settings > Search:
    3. "Prefix Header". Under "Apple LLVM 6.0" you will get the Prefix
    4. Header key. Type in: "YourProjectName/YourProject-Prefix.pch"
    5. Clean project: ⌘cmd+⇧shift+K Build project: ⌘cmd+B
    0 讨论(0)
提交回复
热议问题