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 not building a framework target tests scheme #101

Closed ricardolpd closed 8 years ago

ricardolpd commented 8 years ago

Hi,

Apologies if this has been discussed before, but i a workspace that contains quite a few framworks, all of which with a target for tests with no application.

When i run scan

xcodebuild: error: The scheme 'FooTests' is not configured for Running. [15:24:22]: ▸ The scheme 'FooTests' has nothing configured to build for Running and has no executable specified to Run. Edit the scheme to configure the Run action. 2016-02-26 15:24:22.119 xcodebuild[32384:197874] +[MCLog load], env: (null) 2016-02-26 15:24:22.120 xcodebuild[32384:197874] [MCLog] +MCLog pluginDidLoad: +[MCLog pluginDidLoad:], NSBundle </Users/C0238385/Library/Application Support/Developer/Shared/Xcode/Plug-ins/MCLog.xcplugin> (loaded) xcodebuild: error: The scheme 'FooTests' is not configured for Running. The scheme 'FooTests' has nothing configured to build for Running and has no executable specified to Run. Edit the scheme to configure the Run action.

As the target is just a framework, is this something that is possible to achieve? My fast lane is the following:

scan(workspace: "Foo.xcworkspace", scheme: "FooTests", destination: "platform=iOS Simulator,name=iPhone 6,OS=9.0", output_types: "html")

ricardolpd commented 8 years ago

Apologies found the issue.... it seems that pointing at the actual framework target solves this issue. Can we please close it.

fastlanebot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/3328. 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: