Xcode 5.0.2 dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest

后端 未结 15 772
再見小時候
再見小時候 2020-12-08 19:54

I have problems running a project in Xcode 5.0.2

I get the following error:

dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest
  Ref         


        
15条回答
  •  不思量自难忘°
    2020-12-08 20:06

    A solution that worked for me was changing your test target's inherit attribute in your Podfile from :search_paths to :complete. Although this answer suggests that :search_paths is designed for test environments.

    target 'myapp' do    
      use_frameworks!
    
      target 'myappTests' do
        #inherit! :search_paths
        inherit! :complete
      end
    
    end
    

提交回复
热议问题