fastlane-old / gym

Building your iOS apps has never been easier
https://fastlane.tools
645 stars 54 forks source link

use_legacy_build_api always true #217

Closed yzlhccdec closed 8 years ago

yzlhccdec commented 8 years ago

I'm using circleci for daily build, I can't set use_legacy_build_api to false when building, It's just not working. I've tried gym -s "$BUILD_SCHEME" -n "XXX.$GIT_COUNT" -j "ad-hoc" -o "build" -c --use_legacy_build_api false gym -s "$BUILD_SCHEME" -n "XXX.$GIT_COUNT" -j "ad-hoc" -o "build" -c

the version of Xcode for building is 7.2,I always get the message "Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=4952000420642816"

Please help! Thank you

yzlhccdec commented 8 years ago

+----------------------+--------------------------+ | Summary for gym 1.6.1 | +----------------------+--------------------------+ | workspace | ./CalorieCal.xcworkspace | | scheme | iCalorie Dev | | clean | true | | output_directory | build | | output_name | iCalorie.49714c1 | | silent | false | | use_legacy_build_api | true | | export_method | ad-hoc | | buildlog_path | ~/Library/Logs/gym | | destination | generic/platform=iOS | +----------------------+--------------------------+

wxytjustb commented 8 years ago

if you use --use_legacy_build_api, it shows the use_legacy_build_api is true

mfurtak commented 8 years ago

Hi @yzlhccdec - thanks for the report! :+1:

@wxytjustb is right. Because --use_legacy_build_api is a boolean switch, just including it on the command line makes the value true. On the command line, specifying true or false after it has no effect.

Can you check on a couple things?

  1. Can you check to see if you have a Gymfile somewhere in your project which is specifying use_legacy_build_api true
  2. Can you make sure that the Xcode installation pointed to by xcode-select -p is indeed the Xcode 7.2 installation you want to be using

Thanks!

yzlhccdec commented 8 years ago

hi @mfurtak , thanks for your reply. I tried "gym -s "$BUILD_SCHEME" -n "XXX.$GIT_COUNT" -j "ad-hoc" -o "build" -c", but it doesn't work either. I don't have any Gymfile in my project, and the command "Xcode-select -p" shows "/Applications/Xcode-7.3.app/Contents/Developer"

lacostej commented 8 years ago

@yzlhccdec what does

ruby -e 'require "fastlane_core"; puts FastlaneCore::Helper.xcode_version ' outputs ?

yzlhccdec commented 8 years ago

./scripts/build.sh iCalorie Dev 01742c0 7.3(<-this is the output of the ruby command) [18:02:00]: xcrun xcodebuild -list -workspace './CalorieCal.xcworkspace' 2016-02-23 18:02:01.162 xcodebuild[965:6397] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now. [18:02:09]: Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=4952000420642816

+----------------------+--------------------------+ | Summary for gym 1.6.1 | +----------------------+--------------------------+ | workspace | ./CalorieCal.xcworkspace | | scheme | iCalorie Dev | | clean | true | | output_directory | build | | output_name | iCalorie.01742c0 | | silent | false | | use_legacy_build_api | true | | export_method | ad-hoc | | buildlog_path | ~/Library/Logs/gym | | destination | generic/platform=iOS | +----------------------+--------------------------+

fastlane-bot-helper commented 8 years ago

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