Build failed: unable to open file (in target '' in project '')(in target '')

青春壹個敷衍的年華 提交于 2021-01-07 07:37:12

问题


I'm trying to open a sample app from Prebid.

When I open the project from the PrebidDemo directory, I receive the error:

I'm attempting to open the project from the PrebidDemo directory: https://github.com/prebid/prebid-mobile-ios/tree/master/example/Swift/PrebidDemo

Sorry for what may be a basic question, I'm new to Swift.


回答1:


It looks like an issue with cocoPods not being installed. If you install cocoPods that should resolve it for you.




回答2:


  1. command on your terminal to install it.

    sudo gem install cocoapods-deintegrate
    
  2. command on your terminal to install it.

    sudo gem install cocoapods-clean
    

3.Go to your project folder from terminal and type

    pod deintegrate
  1. Again

    pod clean
    

5.delete the podfile manually or type in

rm Podfile

Note: make sure you copy all the pod names before deleting

  1. follow the same procedure you do to install pod. paste all the pod name and then pod install


来源:https://stackoverflow.com/questions/57262276/build-failed-unable-to-open-file-in-target-in-project-in-target

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!