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 picks the wrong project name for Slack message #73

Closed anton-matosov closed 8 years ago

anton-matosov commented 8 years ago

I am using xcworkspace for my projects and for some of them scan picks the wrong project name to be posted on Slack:

Pods Tests:
Build Errors: 0
Test Failures: x
Successful Tests: x

Is there a way to specify slack_project_name?

KrauseFx commented 8 years ago

The code below finds the name

def app_name
      # WRAPPER_NAME: Example.app
      # WRAPPER_SUFFIX: .app
      name = build_settings(key: "WRAPPER_NAME")

      return name.gsub(build_settings(key: "WRAPPER_SUFFIX"), "") if name
      return "App" # default value
    end

I wonder if that's the case for all CocoPods apps

anton-matosov commented 8 years ago

There was a configuration issue inside the scheme file. Fixed that and name comes correctly.

KrauseFx commented 8 years ago

:+1:

fastlanebot commented 8 years ago

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