fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.69k stars 5.72k forks source link

Fastlane don´t recognize my Scheme when building #11869

Closed jpghelfi closed 6 years ago

jpghelfi commented 6 years ago

New Issue Checklist

Issue Description

[related to this Issue but don´t understand the solution] Fastlane don´t recognize the scheme of my app. It´s odd because I´ve integrated fastlane in the same git project on another Mac, and there is no problem there.

Complete output when running fastlane, including the stack trace and command used
➜  TTCheck git:(development) ✗ fastlane beta
[09:09:49]: -----------------------
[09:09:49]: --- Step: build_app ---
[09:09:49]: -----------------------
[09:09:49]: $ xcodebuild -list -workspace ./TTCheck.xcworkspace
[09:09:51]: Couldn't find specified scheme 'TTCheck'.
Select Scheme: 
1. Alamofire-iOS
2. Alamofire-watchOS
3. Flurry-iOS-SDK
4. lottie-ios
5. Pods-TTCheck
6. Pods-TTCheck-wachOS Extension
7. Pods-TTCheckTests
8. Pods-TTCheckUITests
9. PureLayout
10. SwipeCellKit

Environment

[09:29:15]: fastlane detected a Gemfile in the current directory
[09:29:15]: however it seems like you don't use `bundle exec`
[09:29:15]: to launch fastlane faster, please use
[09:29:15]: 
[09:29:15]: $ bundle exec fastlane env
[09:29:15]: 
[09:29:15]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[09:29:15]: Generating fastlane environment output, this might take a few seconds...
✅ fastlane environment ✅ ### Stack | Key | Value | | --------------------------- | --------------------------------------------- | | OS | 10.12.6 | | Ruby | 2.1.10 | | Bundler? | false | | Git | git version 2.14.3 (Apple Git-98) | | Installation Source | ~/.rvm/gems/ruby-2.1.10/bin/fastlane | | Host | Mac OS X 10.12.6 (16G29) | | Ruby Lib Dir | ~/.rvm/rubies/ruby-2.1.10/lib | | OpenSSL Version | OpenSSL 1.0.2n 7 Dec 2017 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode92.app/Contents/Developer/ | | Xcode Version | 9.2 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | en_US.UTF-8 | ✅ | | LC_ALL | | | | LANGUAGE | | | ### fastlane files:
`./fastlane/Fastfile` ```ruby # This file contains the fastlane.tools configuration # You can find the documentation at https://docs.fastlane.tools # # For a list of all available actions, check out # # https://docs.fastlane.tools/actions # # Uncomment the line if you want fastlane to automatically update itself # update_fastlane default_platform(:ios) platform :ios do desc "Description of what the lane does" lane :custom_lane do # add actions here: https://docs.fastlane.tools/actions end end lane :beta do increment_build_number( build_number: latest_testflight_build_number + 1, xcodeproj: "TTCheck.xcodeproj") build_app ENV["FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD"] = "mqhp-aaph-egvw-mhqd" ENV["PILOT_USERNAME"] = "juanpablo.ghelfi@gmail.com" upload_to_testflight(skip_waiting_for_build_processing: true) end ```
`./fastlane/Appfile` ```ruby app_identifier "juanpabloghelfi.TTCheck" apple_id "juanpablo.ghelfi@gmail.com" # For more information about the Appfile, see: # https://docs.fastlane.tools/advanced/#appfile ```
### fastlane gems | Gem | Version | Update-Status | | -------- | ------- | ------------- | | fastlane | 2.81.0 | ✅ Up-To-Date | ### Loaded fastlane plugins: **No plugins Loaded**
Loaded gems | Gem | Version | | ------------------------- | ------------ | | executable-hooks | 1.4.2 | | bundler-unload | 1.0.2 | | rubygems-bundler | 1.4.4 | | bundler | 1.16.1 | | slack-notifier | 2.3.2 | | atomos | 0.1.2 | | CFPropertyList | 2.3.6 | | claide | 1.0.2 | | colored2 | 3.1.2 | | nanaimo | 0.2.3 | | xcodeproj | 1.5.6 | | rouge | 2.0.7 | | xcpretty | 0.2.8 | | terminal-notifier | 1.8.0 | | unicode-display_width | 1.3.0 | | terminal-table | 1.8.0 | | plist | 3.4.0 | | public_suffix | 2.0.5 | | addressable | 2.5.2 | | multipart-post | 2.0.0 | | word_wrap | 1.0.0 | | tty-screen | 0.6.4 | | tty-cursor | 0.5.0 | | tty-spinner | 0.8.0 | | babosa | 1.0.2 | | colored | 1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | excon | 0.60.0 | | faraday | 0.14.0 | | unf_ext | 0.0.7.5 | | unf | 0.1.4 | | domain_name | 0.5.20170404 | | http-cookie | 1.0.3 | | faraday-cookie_jar | 0.0.6 | | fastimage | 2.1.1 | | gh_inspector | 1.1.2 | | json | 1.8.1 | | mini_magick | 4.5.1 | | multi_json | 1.13.1 | | multi_xml | 0.6.0 | | rubyzip | 1.2.1 | | security | 0.1.3 | | xcpretty-travis-formatter | 1.0.0 | | dotenv | 2.2.1 | | faraday_middleware | 0.12.2 | | uber | 0.1.0 | | declarative | 0.0.10 | | declarative-option | 0.1.0 | | representable | 3.0.4 | | retriable | 3.1.1 | | mime-types-data | 3.2016.0521 | | mime-types | 3.1 | | little-plugger | 1.1.4 | | logging | 2.2.2 | | jwt | 2.1.0 | | memoist | 0.16.0 | | os | 0.9.6 | | signet | 0.8.1 | | googleauth | 0.6.2 | | httpclient | 2.8.3 | | google-api-client | 0.13.6 |
*generated on:* **2018-02-18**
minuscorp commented 6 years ago

So I think the best thing you can do is to provide the scheme attribute into upload_to_testflight. 😄

jpghelfi commented 6 years ago

I did it! You mean inside de Fastfile like this?

upload _to_testflight(scheme : “TTCheck”)

jpghelfi commented 6 years ago

But didn’t work

minuscorp commented 6 years ago

Is your scheme shared?

jpghelfi commented 6 years ago

Mmm, don’t know what you mean by “shared”

On Sun, 18 Feb 2018 at 19:19 Jorge notifications@github.com wrote:

Is your scheme shared?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fastlane/fastlane/issues/11869#issuecomment-366553153, or mute the thread https://github.com/notifications/unsubscribe-auth/AbtHsHp6Kw0TKbkETdquyofsdxIZHTiyks5tWKHxgaJpZM4SJrFr .

-- Juan Pablo Ghelfi Project Manager mobile: +54 911 7014 0292 <javascript:void(0);> mobile: +1 347 878 5744 <javascript:void(0);> office: +54 <javascript:void(0);>011 5236 0528 skype: jp.tictapps http://myskype.info/jp.tictapps email: juan.ghelfi@tictapps.com www.tictapps.com [image: Tictapps] http://www.tictapps.com/

minuscorp commented 6 years ago

Here!

jpghelfi commented 6 years ago

worked! thanks! It´s weird, because in another project I have, the schemes aren´t shared and fastlane works too