Swift - Unable to open file in target Xcode 10

前端 未结 15 1008
独厮守ぢ
独厮守ぢ 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:19

    I had this issue too with project I cloned from GitLab. Your error looks extremely similar to mine. I solved it by running this in Terminal:

    cd path/to/your/project
    pod install
    

    When I checked project folder in Finder, there was a Podfile. But same project viewed in Xcode had nothing under 'Pods' module. From this I figured out the pods are not installed (or installed properly?) and installing them solved this error.

    If there is some Pods or .xcworkspace file, it might be worth doing pod deintegrate before installation - just to be sure :)

提交回复
热议问题