fastlane / fastlane

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

modify_services Does Not Work #20855

Open enchorb opened 1 year ago

enchorb commented 1 year ago

New Issue Checklist

Issue Description

Getting an error when running modify_services that teamId is an invalid attribute. I have my TEAMID set as an env variable but it isnt being passed into modify_services.

Command executed
    modify_services(
      app_identifier: "app.example.name",
      services: {
        access_wifi: "on",
        associated_domains: "on",
        auto_fill_credential: "on",
        hotspot: "on",
        push_notification: "on"
      }
    )
Complete output when running fastlane, including the stack trace and command used
/Users/name/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/fastlane-2.206.0/spaceship/lib/spaceship/connect_api/api_client.rb:199:in `handle_response': \e[31m[!] { (Spaceship::UnexpectedResponse)
  "errors" : [ {
    "id" : "a8b8ab16-d0f8-4c75-ba1c-e76f853ce2a2",
    "status" : "409",
    "code" : "ENTITY_ERROR.ATTRIBUTE.ILLEGAL",
    "title" : "An attribute in the provided entity is not allowed for this request",
    "detail" : "The attribute 'teamId' can not be used with this request",
    "source" : {
      "pointer" : "data/attributes/teamId"
    }
  } ]
}\e[0m
🚫 fastlane environment 🚫 ### Stack | Key | Value | | --------------------------- | -------------------------------------------------------- | | OS | 12.6 | | Ruby | 3.0.0 | | Bundler? | true | | Git | git version 2.37.1 (Apple Git-137.1) | | Installation Source | ~/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/bin/fastlane | | Host | macOS 12.6 (21G115) | | Ruby Lib Dir | ~/.rbenv/versions/3.0.0/lib | | OpenSSL Version | OpenSSL 1.1.1l 24 Aug 2021 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 14.1 | | Swift Version | 5.7.1 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | en_US.UTF-8 | ✅ | | LC_ALL | en_US.UTF-8 | ✅ | | LANGUAGE | en_US.UTF-8 | ✅ | ### fastlane files:
`./Appfile` ```ruby apple_id "REDACTED" team_id ENV["APPLE_TEAM_ID"] # For more information about the Appfile, see: https://docs.fastlane.tools/advanced/#appfile ```
### fastlane gems | Gem | Version | Update-Status | | -------- | ------- | ------------- | | fastlane | 2.211.0 | ✅ Up-To-Date | ### Loaded fastlane plugins: | Plugin | Version | Update-Status | | ----------------------------------------- | ------- | ------------------ | | fastlane-plugin-versioning_android | 0.1.0 | ✅ Up-To-Date | | fastlane-plugin-versioning | 0.5.1 | ✅ Up-To-Date | | fastlane-plugin-firebase_app_distribution | 0.3.4 | 🚫 Update available |
Loaded gems | Gem | Version | | ----------------------------------------- | ------------ | | did_you_mean | 1.5.0 | | bundler | 2.3.6 | | tsort | 0.1.0 | | set | 1.0.1 | | uri | 0.10.1 | | pathname | 0.1.0 | | rake | 13.0.6 | | rexml | 3.2.5 | | CFPropertyList | 3.0.5 | | concurrent-ruby | 1.1.9 | | i18n | 1.9.1 | | minitest | 5.15.0 | | tzinfo | 2.0.4 | | zeitwerk | 2.5.4 | | activesupport | 6.1.4.6 | | public_suffix | 4.0.7 | | addressable | 2.8.1 | | httpclient | 2.8.3 | | json | 2.6.2 | | algoliasearch | 1.27.5 | | artifactory | 3.0.15 | | atomos | 0.1.3 | | aws-eventstream | 1.2.0 | | aws-partitions | 1.660.0 | | aws-sigv4 | 1.5.2 | | jmespath | 1.6.1 | | aws-sdk-core | 3.167.0 | | aws-sdk-kms | 1.59.0 | | aws-sdk-s3 | 1.117.1 | | babosa | 1.0.4 | | claide | 1.0.3 | | fuzzy_match | 2.0.4 | | nap | 1.1.0 | | netrc | 0.11.0 | | ffi | 1.15.5 | | ethon | 0.15.0 | | typhoeus | 1.4.0 | | cocoapods-core | 1.11.2 | | cocoapods-deintegrate | 1.0.5 | | cocoapods-downloader | 1.5.1 | | cocoapods-plugins | 1.0.0 | | cocoapods-search | 1.0.1 | | cocoapods-trunk | 1.6.0 | | cocoapods-try | 1.2.0 | | colored2 | 3.1.2 | | escape | 0.0.4 | | fourflusher | 2.3.1 | | gh_inspector | 1.1.3 | | molinillo | 0.8.0 | | ruby-macho | 2.5.1 | | nanaimo | 0.3.0 | | xcodeproj | 1.22.0 | | cocoapods | 1.11.2 | | colored | 1.2 | | highline | 2.0.3 | | commander | 4.6.0 | | declarative | 0.0.20 | | digest-crc | 0.6.4 | | unf_ext | 0.0.8.2 | | unf | 0.1.4 | | domain_name | 0.5.20190701 | | dotenv | 2.8.1 | | emoji_regex | 3.2.3 | | excon | 0.94.0 | | faraday-em_http | 1.0.0 | | faraday-em_synchrony | 1.0.0 | | faraday-excon | 1.1.0 | | faraday-httpclient | 1.0.1 | | multipart-post | 2.0.0 | | faraday-multipart | 1.0.4 | | faraday-net_http | 1.0.1 | | faraday-net_http_persistent | 1.2.0 | | faraday-patron | 1.0.0 | | faraday-rack | 1.0.0 | | faraday-retry | 1.0.3 | | ruby2_keywords | 0.0.5 | | faraday | 1.10.2 | | http-cookie | 1.0.5 | | faraday-cookie_jar | 0.0.7 | | faraday_middleware | 1.2.0 | | fastimage | 2.2.6 | | jwt | 2.5.0 | | memoist | 0.16.2 | | multi_json | 1.15.0 | | os | 1.1.4 | | signet | 0.17.0 | | googleauth | 1.3.0 | | mini_mime | 1.1.2 | | trailblazer-option | 0.1.2 | | uber | 0.1.0 | | representable | 3.2.0 | | retriable | 3.1.2 | | webrick | 1.7.0 | | google-apis-core | 0.9.1 | | google-apis-androidpublisher_v3 | 0.31.0 | | google-apis-playcustomapp_v1 | 0.12.0 | | google-apis-iamcredentials_v1 | 0.16.0 | | google-apis-storage_v1 | 0.19.0 | | google-cloud-env | 1.6.0 | | google-cloud-errors | 1.3.0 | | google-cloud-core | 1.6.0 | | google-cloud-storage | 1.44.0 | | mini_magick | 4.11.0 | | naturally | 2.2.1 | | optparse | 0.1.1 | | plist | 3.6.0 | | rubyzip | 2.3.2 | | security | 0.1.3 | | simctl | 1.6.8 | | terminal-notifier | 2.0.0 | | unicode-display_width | 1.8.0 | | terminal-table | 1.8.0 | | tty-screen | 0.8.1 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | word_wrap | 1.0.0 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | xcpretty-travis-formatter | 1.0.1 | | fastlane-plugin-firebase_app_distribution | 0.3.4 | | fastlane-plugin-versioning | 0.5.1 | | fastlane-plugin-versioning_android | 0.1.0 | | xcode-install | 2.8.0 |
*generated on:* **2022-11-14**
hyh1256191239 commented 1 year ago

Hello, I'm not sure if you have solved this problem. I'm also experiencing this problem now, and I haven't found a solution yet. If you have solved it, could you please let me know?