Libraries not found when using CocoaPods with iOS logic tests

前端 未结 14 1391
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 15:41

I am trying to write some iOS logic tests against classes in my project that use functionality from some of the libraries in my podspec. I am using the standard unit test bu

14条回答
  •  臣服心动
    2020-11-29 16:25

    I had a similar occurrence when I lost some library files during some version control. I still saw the library file in my Pods but with the actual code missing, XCode said it was gone. To my dismay, running 'pod install' wasn't immediately bringing the lost files back.

    I had to remove and replace the pod manually by doing the following:

    1. Remove the library from the Podfile
    2. Run 'pod install' to remove the library completely
    3. Put the library back into the Podfile
    4. Run 'pod install' again

    This should put the library in question back in it's original form.

提交回复
热议问题