mardi 2 août 2016

SDK image not found when running OSX UI Tests with Cocoapods

I am trying to add my first automated UI tests to my application and am running into quite a bit of difficultly.

The app will build in its current state and the main application itself runs just fine. However, when I try to run my tests I get the following error:

2016-08-02 19:39:33.340 XCTRunner[17590:966857] Running tests...
2016-08-02 19:39:33.407 XCTRunner[17590:966857] The bundle “MYAPPUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-08-02 19:39:33.407 XCTRunner[17590:966857] (dlopen_preflight(/Users/username/Library/Developer/Xcode/DerivedData/MYAPP-bdpxtxtxmsobtreqnojvykobjlts/Build/Products/Debug/http://ift.tt/2atgv79): Library not loaded: @rpath/HockeySDK.framework/Versions/A/HockeySDK
  Referenced from: /Users/username/Library/Developer/Xcode/DerivedData/MYAPP-bdpxtxtxmsobtreqnojvykobjlts/Build/Products/Debug/http://ift.tt/2atgv79
  Reason: image not found)

I've seen that there are a few related questions on SO but none of them see to help me out.

Originally, I was implementing my tests in Swift on top of an Objective C application and thought that might be the problem. However, I discovered after making an Objective-C based test target that I am running into exactly the same issue in Objective C.

Thanks for any help.

EDIT

Some additional information: I have tried this using both Cocoapods 0.39.0 as well as the latest non-beta 1.x release. Both resulted in the same error.

My podfile is listed below (for 0.39.0)

platform :osx, '10.9'
link_with 'MYAPP', 'MYAPP MAS', 'MYAPPUITests'


pod 'AFNetworking', '~> 2.5.0'
pod 'ISO8601DateFormatter'
pod 'CDEvents', :git => 'http://ift.tt/1FRyUzi'
pod 'MASShortcut', '1.3.1'
pod 'libPusher', '1.6'
pod 'NPReachability', :git => 'http://ift.tt/2atg3FU', :commit => 'e57753d'
pod 'CocoaLumberjack'
pod 'SocketRocket', :git => 'http://ift.tt/2aHiXnb'
pod 'HockeySDK-Mac'
pod 'INAppStoreWindow', '~> 1.4'

Aucun commentaire:

Enregistrer un commentaire