fastlane: Can't save IAP details

New Issue Checklist

Issue Description

I’m trying to use Spaceship to update IAP products. Every time that I try I get a ITC.response.error.OPERATION_FAILED. I’m a Ruby newbie, so maybe I’m missing anything! I try to do the following:

require 'Spaceship'
Spaceship::Tunes.login('########', '#########')
iap = Spaceship::Tunes::Application.all.first.in_app_purchases.all.first.edit
iap.save!

The iTunes user I’m using to login has the App Manager role, so it should be ok, no?

Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

$ bundle exec ruby scripts/updateIAP.rb 
/Users/jose.gonzalez/Documents/projects/rakuten/ios/ios-v3/vendor/bundle/ruby/2.4.0/gems/fastlane-2.47.0/spaceship/lib/spaceship/tunes/tunes_client.rb:162:in `handle_itc_response': ITC.response.error.OPERATION_FAILED (Spaceship::TunesClient::ITunesConnectError)
	from /Users/jose.gonzalez/Documents/projects/rakuten/ios/ios-v3/vendor/bundle/ruby/2.4.0/gems/fastlane-2.47.0/spaceship/lib/spaceship/tunes/tunes_client.rb:964:in `block in update_iap!'
	from /Users/jose.gonzalez/Documents/projects/rakuten/ios/ios-v3/vendor/bundle/ruby/2.4.0/gems/fastlane-2.47.0/spaceship/lib/spaceship/tunes/tunes_client.rb:1296:in `with_tunes_retry'
	from /Users/jose.gonzalez/Documents/projects/rakuten/ios/ios-v3/vendor/bundle/ruby/2.4.0/gems/fastlane-2.47.0/spaceship/lib/spaceship/tunes/tunes_client.rb:958:in `update_iap!'
	from /Users/jose.gonzalez/Documents/projects/rakuten/ios/ios-v3/vendor/bundle/ruby/2.4.0/gems/fastlane-2.47.0/spaceship/lib/spaceship/tunes/iap_detail.rb:211:in `save!'
	from scripts/updateIAP.rb:26:in `<main>'

Environment

Please run fastlane env and copy the output below. This will help us help you 👍 If you used --capture_output option please remove this block - as it is already included there.

🚫 fastlane environment 🚫

Stack

Key Value
OS 10.12.6
Ruby 2.4.0
Bundler? true
Git git version 2.11.0 (Apple Git-81)
Installation Source ~/Documents/projects/rakuten/ios/ios-v3/vendor/bundle/ruby/2.4.0/bin/fastlane
Host Mac OS X 10.12.6 (16G29)
Ruby Lib Dir ~/.rbenv/versions/2.4.0/lib
OpenSSL Version OpenSSL 1.0.2k 26 Jan 2017
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 8.3.3

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

`./fastlane/Fastfile`
fastlane_version "2.29.0"

default_platform :ios

platform :ios do
  desc "Install dependencies"
  lane :pods do
    cocoapods(use_bundle_exec: true)
  end


  desc "Runs Wuaki-iOS tests"
  lane :test do
    scan(scheme: 'wuaki-ios-sim', devices: ['iPhone 7'], code_coverage: true, output_directory: 'build/reports/tests')
    slather(workspace: 'wuaki-ios.xcworkspace', proj: 'wuaki-ios/wuaki-ios.xcodeproj', scheme: 'wuaki-ios-sim', output_directory: 'build/reports/coverage', html: true, use_bundle_exec: true)
  end


  desc "Badge the Spartan app icon with version and build number"
  lane :badge_app_icon do
    assetsPath = 'wuaki-ios/wuaki-ios/resources/images/WKAssets.xcassets'
    version = get_version_number(xcodeproj: 'wuaki-ios/wuaki-ios.xcodeproj', target: 'wuaki-ios')
    build = get_build_number(xcodeproj: 'wuaki-ios/wuaki-ios.xcodeproj')

    # Copy original app icons
    sh("cp #{ENV['PWD']}/#{assetsPath}/AppIcon.appiconset/*.png #{ENV['PWD']}/#{assetsPath}/AppIcon.spartan.appiconset/")
    badge(glob: '/**/AppIcon.spartan.appiconset/*.png', shield: "#{version}-#{build}-orange", shield_io_timeout: 30)
  end


  desc "Submit a new Wuaki-iOS Beta Build to Apple TestFlight"
  lane :beta do |options|
    # match(type: "appstore") -> Share certificates, not right now

    ensure_git_status_clean
    increment_build_number(xcodeproj: 'wuaki-ios/wuaki-ios.xcodeproj')
    scheme = options[:external_beta] == true ? 'wuaki-ios' : 'wuaki-ios-spartan'

    if options[:external_beta] != true
      badge_app_icon
      appIcons = Dir["#{ENV['PWD']}/wuaki-ios/wuaki-ios/resources/images/WKAssets.xcassets/AppIcon.spartan.appiconset/*.png"]
      git_add(path: appIcons)
      git_commit(path: appIcons, message: 'Badge app icon')
    end

    gym(workspace: 'wuaki-ios.xcworkspace', scheme: scheme, output_directory: 'build/ipa', output_name: 'wuaki-ios.ipa')
    pilot(ipa: 'build/ipa/wuaki-ios.ipa', distribute_external: options[:external_beta] == true)

    commit_version_bump(xcodeproj: 'wuaki-ios/wuaki-ios.xcodeproj')
    add_git_tag
    push_to_git_remote
  end


  desc "Deploy a new Wuaki-iOS version to the App Store"
  lane :release do
    # match(type: "appstore")
    # snapshot
    gym(scheme: 'wuaki-ios')
    deliver(force: true)
    # frameit
  end


  after_all do |lane|
    # nothing right now
  end


  error do |lane, exception|
  end
end
`./fastlane/Appfile`
app_identifier "tv.wuaki.Wuakitv-Player" # The bundle identifier of the app
apple_id "mobile@wuaki.tv"               # Apple email address -> This should be put elsewhere

team_id "NQ7GNB56L5"                     # Developer Portal Team ID

itc_team_name "Wuaki TV S.L."            # iTunes Connect team name
itc_team_id "1263804"                    # iTunes Connect team id (from https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/user/detail)

fastlane gems

Gem Version Update-Status
fastlane 2.47.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.1.0
bundler 1.15.2
io-console 0.4.6
CFPropertyList 2.3.5
i18n 0.8.1
minitest 5.10.2
thread_safe 0.3.6
tzinfo 1.2.3
activesupport 4.2.8
public_suffix 2.0.5
addressable 2.5.1
babosa 1.0.2
curb 0.9.3
fastimage 2.1.0
colored 1.2
highline 1.7.8
commander-fastlane 4.4.5
dotenv 2.2.1
excon 0.57.1
multipart-post 2.0.0
faraday 0.12.2
unf_ext 0.0.7.4
unf 0.1.4
domain_name 0.5.20170404
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday_middleware 0.11.0.1
gh_inspector 1.0.3
jwt 1.5.6
little-plugger 1.1.4
multi_json 1.12.1
logging 2.2.2
memoist 0.16.0
os 0.9.6
signet 0.7.3
googleauth 0.5.2
httpclient 2.8.3
mime-types-data 3.2016.0521
mime-types 3.1
declarative 0.0.9
declarative-option 0.1.0
uber 0.1.0
representable 3.0.4
retriable 3.0.2
google-api-client 0.12.0
json 2.1.0
mini_magick 4.5.1
multi_xml 0.6.0
plist 3.3.0
rubyzip 1.2.1
security 0.1.3
slack-notifier 1.5.1
terminal-notifier 1.8.0
unicode-display_width 1.3.0
terminal-table 1.8.0
tty-screen 0.5.0
word_wrap 1.0.0
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.3
xcodeproj 1.5.1
rouge 2.0.7
xcpretty 0.2.8
xcpretty-travis-formatter 0.0.4
badge 0.8.4
clamp 0.6.5
fuzzy_match 2.0.4
nap 1.1.0
cocoapods-core 1.2.0
cocoapods-deintegrate 1.0.1
cocoapods-downloader 1.1.3
cocoapods-plugins 1.0.0
cocoapods-search 1.0.0
cocoapods-stats 1.0.0
netrc 0.7.8
cocoapods-trunk 1.2.0
cocoapods-try 1.1.0
escape 0.0.4
fourflusher 2.0.1
molinillo 0.5.7
ruby-macho 0.2.6
cocoapods 1.2.0
coderay 1.1.1
method_source 0.8.2
mini_portile2 2.1.0
nokogiri 1.6.8.1
slop 3.6.0
pry 0.10.4
slather 2.4.1

generated on: 2017-07-21

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

@luongm Any progress in getting this PR created? We’re experiencing this same issue. Let me know if you need any help.