Swift - Unable to open file in target Xcode 10

前端 未结 15 850
独厮守ぢ
独厮守ぢ 2020-12-30 23:06

I am trying to run Aplication which I have downloaded from GitHub.

When I run get error unable to open file in target, I have Xcode 10.

I already searched f

相关标签:
15条回答
  • 2020-12-30 23:33
    1. Quit Xcode
    2. Open Terminal
    3. Change to directory (where podfile is present)
    4. pod install

    I was trying to do pod install after removing unwanted pod(steps 2,3 & 4), but it still was not working. Quitting Xcode (steps 1, 2, 3 & 5) worked.

    0 讨论(0)
  • 2020-12-30 23:34

    I tried below and error went away !!

    project name - SwiftExample

    Went to Pods -> Info -> Configurations -> Debug Change to None for Pods-SwiftExample

    Code compiles even after setting it back to original.

    0 讨论(0)
  • 2020-12-30 23:36

    I can see many solutions already given there. But I believe the easiest way to resolve this problem is

    1. Open the project directory in Terminal
    2. Delete .xcworkspace file
    3. Run pod install

    That's it. The newly created .xcworkspace file will work without any problem.

    0 讨论(0)
  • 2020-12-30 23:37

    Open your project file (project.pbxproj) and check of 'Pods' is added to the path before the 'Target Support Files' folder. Remove that and i got it to build fine.

    0 讨论(0)
  • 2020-12-30 23:41

    If you suddenly start seeing this issue on an existing project, before you try anything else, try

    • pod update
    • Make sure your pod build settings looks good
    • Clean build folder
    • Retry building
    0 讨论(0)
  • 2020-12-30 23:42

    In File -> Project setting -> select Legacy Build System

    Make sure you have opened .xcworkspace file and pod installed properly.

    0 讨论(0)
提交回复
热议问题