fastlane-old / scan

The easiest way to run tests of your iOS and Mac app
https://fastlane.tools
221 stars 25 forks source link

Scan hangs running test against target with missing linked files #96

Closed micnguyen closed 8 years ago

micnguyen commented 8 years ago

Hi,

I've been using scan for a bit and it's been working great.

I have recently added a new Target and a new test for that target (that is a duplicate of the 1st test but with the target app changed). When I do CMD+U in Xcode to run, it fails on the test because the new Target didn't have some files linked when you add a file (that checkbox that appears when adding new files to a project). That's all fine - but when I try and run a scan on the project with the missing linked files, it just stalls and doesn't error out on any compilation.

fatuhoku commented 8 years ago

Same here. I've been slowly moving my codebase to using Carthage for dependency management and often rely on errors like the following to get my tests fixed:

2016-02-26 02:10:59.434 xctest[66043:748130] The bundle “MyTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-02-26 02:10:59.436 xctest[66043:748130] (dlopen_preflight(~/Library/Developer/Xcode/DerivedData/Root-hayabszkpldtmbcjgnpajteymhnb/Build/Products/Debug-iphonesimulator/MyTests.xctest/MakeEatSeeKitITests): Library not loaded: @rpath/Result.framework/Result
  Referenced from: ~/Library/Developer/Xcode/DerivedData/Root-hayabszkpldtmbcjgnpajteymhnb/Build/Products/Debug-iphonesimulator/MyTests.xctest/Frameworks/ReactiveCocoa.framework/ReactiveCocoa
  Reason: image not found)
Program ended with exit code: 82
mfurtak commented 8 years ago

Hi folks - if possible, can you please provide some more information about your setup? It would be good to know your:

Also, if you can provide the full command output (until it hangs :frowning:) when running with the --verbose flag, that would be :100:!

fastlane-bot-helper commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1929. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: