{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/6583","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/6583/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/6583/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/6583/events","html_url":"https://github.com/fastlane/fastlane/issues/6583","id":183423507,"number":6583,"title":"Gym is failing but archive and .ipa are fine","user":{"login":"Antoine4011","id":1278363,"avatar_url":"https://avatars.githubusercontent.com/u/1278363?v=3","gravatar_id":"","url":"https://api.github.com/users/Antoine4011","html_url":"https://github.com/Antoine4011","followers_url":"https://api.github.com/users/Antoine4011/followers","following_url":"https://api.github.com/users/Antoine4011/following{/other_user}","gists_url":"https://api.github.com/users/Antoine4011/gists{/gist_id}","starred_url":"https://api.github.com/users/Antoine4011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antoine4011/subscriptions","organizations_url":"https://api.github.com/users/Antoine4011/orgs","repos_url":"https://api.github.com/users/Antoine4011/repos","events_url":"https://api.github.com/users/Antoine4011/events{/privacy}","received_events_url":"https://api.github.com/users/Antoine4011/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/gym","name":"gym","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-17T13:57:44Z","updated_at":"2016-10-26T01:16:19Z","closed_at":null,"body":"### New Issue Checklist\r\n\r\n- [x] Updated fastlane to the latest version\r\n- [x] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\n\r\nWhen I use the `gym` command it fails. But the archive is in the Xcode Organizer, I can export it via Xcode to make a valid ipa files or directly upload it to Crashlytics. So I don't get why it's failing with a code signing issue...\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\n[15:32:24]: ▸ Touching MyApp.app\r\n[15:32:30]: ▸ Signing /Users/iosdev/Library/Developer/Xcode/DerivedData/MyApp-Swift-bcjzmmodtukioeahmjcmxebomsln/Build/Intermediates/ArchiveIntermediates/MyApp\\ AdHoc/InstallationBuildProductsLocation/Applications/MyApp.app\r\n[15:32:35]: ▸ Touching MyApp.app.dSYM\r\n[15:32:42]: ▸ Archive Succeeded\r\n[15:32:43]: $ /usr/bin/xcrun /Users/iosdev/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/gym-1.11.2/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/df/vl8m_yxs0jqfybpr705d6mnc0000gq/T/gym_config20161017-27962-guejgq.plist' -archivePath /Users/iosdev/Library/Developer/Xcode/Archives/2016-10-17/MyApp\\ 2016-10-17\\ 15.21.51.xcarchive -exportPath '/var/folders/df/vl8m_yxs0jqfybpr705d6mnc0000gq/T/gym_output20161017-27962-1o30whd'\r\nrbenv detected, removing env variables\r\n+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/df/vl8m_yxs0jqfybpr705d6mnc0000gq/T/gym_config20161017-27962-guejgq.plist -archivePath '/Users/iosdev/Library/Developer/Xcode/Archives/2016-10-17/MyApp 2016-10-17 15.21.51.xcarchive' -exportPath /var/folders/df/vl8m_yxs0jqfybpr705d6mnc0000gq/T/gym_output20161017-27962-1o30whd\r\n2016-10-17 15:32:44.918 xcodebuild[30831:621414] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/df/vl8m_yxs0jqfybpr705d6mnc0000gq/T/MyApp AdHoc_2016-10-17_15-32-44.854.xcdistributionlogs'.\r\n1.2.840.113635.100.1.61\r\n2016-10-17 15:33:14.771 xcodebuild[30831:621414] [MT] IDEDistribution: Step failed: <IDEDistributionPackagingStep: 0x7feda664db70>: Error Domain=IDEFoundationErrorDomain Code=1 \"Codesign failed\" UserInfo={NSLocalizedDescription=Codesign failed}\r\nerror: exportArchive: Codesign failed\r\n\r\nError Domain=IDEFoundationErrorDomain Code=1 \"Codesign failed\" UserInfo={NSLocalizedDescription=Codesign failed}\r\n\r\n** EXPORT FAILED **\r\n[15:33:14]: Exit status: 70\r\n[15:33:14]: Variable Dump:\r\n[15:33:14]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios beta\", :SIGH_PROFILE_TYPE=>\"ad-hoc\", :CERT_FILE_PATH=>\"/Users/iosdev/GitHub/MyApp-Swift/4ABS8HUBQ5.cer\", :CERT_CERTIFICATE_ID=>\"4ABS8HUBQ5\", :SIGH_PROFILE_PATH=>\"/Users/iosdev/GitHub/MyApp-Swift/AdHoc_fr.company.MyApp-Swift-adhoc.mobileprovision\", :SIGH_PROFILE_PATHS=>[\"/Users/iosdev/GitHub/MyApp-Swift/AdHoc_fr.company.MyApp-Swift-adhoc.mobileprovision\"], :SIGH_UDID=>\"fe2bc241-e7dc-43a1-b480-ec9b3b5f5aef\"}\r\n[15:33:14]: Error packaging up the application\r\n\r\n+------+-------------------------------------+-------------+\r\n|                     fastlane summary                     |\r\n+------+-------------------------------------+-------------+\r\n| Step | Action                              | Time (in s) |\r\n+------+-------------------------------------+-------------+\r\n| 1    | Verifying required fastlane version | 0           |\r\n| 2    | default_platform                    | 0           |\r\n| 3    | match                               | 7           |\r\n| 4    | Switch to ios prompt_changelog lane | 0           |\r\n| 5    | prompt                              | 235         |\r\n| 6    | cert                                | 3           |\r\n| 7    | sigh                                | 6           |\r\n| 💥    | gym                                 | 685         |\r\n+------+-------------------------------------+-------------+\r\n\r\n[15:33:14]: fastlane finished with errors\r\n\r\n[!] Error packaging up the application\r\n```\r\n\r\n### Configuration Files\r\n\r\nPlease copy the complete content of your `Fastfile` and any other configuration files you use below:\r\n\r\nFastfile:\r\n```ruby\r\ndesc \"Submit a new Beta Build to Crashlytics\"\r\n  lane :beta do\r\n\r\n    # Ensure to have the certificates\r\n    match(type: \"adhoc\", app_identifier: \"fr.company.MyApp-swift-adhoc\")\r\n\r\n    # Ask the user of fastlane to enter a changelog\r\n    changelog = prompt_changelog()\r\n\r\n    cert\r\n    sigh(\r\n      app_identifier: \"fr.company.MyApp-swift-adhoc\",\r\n      adhoc: true\r\n    )\r\n    gym(\r\n      scheme:\"MyApp AdHoc\"\r\n    )\r\n    crashlytics(\r\n      api_token: \"xx\",\r\n      build_secret: \"xxxx\",\r\n      groups: \"mobile-devs,r&d\",\r\n      notes: changelog\r\n    )\r\n\r\n    slack(\r\n      message: \"Successfully deployed new App Update.\\n\"+changelog\r\n    )\r\n  end\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (run `fastlane -v`): \r\n1.105.2\r\n\r\nDo you use bundler to execute fastlane (i.e. `bundle exec fastlane`)? \r\nNo\r\n\r\nDo you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)? \r\nNo\r\n\r\nWhat Xcode version do you use (e.g. 7.3, 8.0) \r\n8.0\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/256223784","html_url":"https://github.com/fastlane/fastlane/issues/6583#issuecomment-256223784","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/6583","id":256223784,"user":{"login":"PetrosIchor","id":4358617,"avatar_url":"https://avatars.githubusercontent.com/u/4358617?v=3","gravatar_id":"","url":"https://api.github.com/users/PetrosIchor","html_url":"https://github.com/PetrosIchor","followers_url":"https://api.github.com/users/PetrosIchor/followers","following_url":"https://api.github.com/users/PetrosIchor/following{/other_user}","gists_url":"https://api.github.com/users/PetrosIchor/gists{/gist_id}","starred_url":"https://api.github.com/users/PetrosIchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PetrosIchor/subscriptions","organizations_url":"https://api.github.com/users/PetrosIchor/orgs","repos_url":"https://api.github.com/users/PetrosIchor/repos","events_url":"https://api.github.com/users/PetrosIchor/events{/privacy}","received_events_url":"https://api.github.com/users/PetrosIchor/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T01:16:18Z","updated_at":"2016-10-26T01:16:18Z","body":"Do a search for your appID in you xcodeproj and plist files.  Look for all the ones you use internally and externally.  I just had an issue where an appID was introduced but not linked correctly.  Fastlane would build without it and fail signing.  Xcode would pass though, I think it's auto caching or correcting the value, whereas xcodebuild was not.\r\n\r\nThe errors did not give me enough info to easily diagnose that.  Once I targeted that ID to be updated, it passed.  "}}
{"actor":{"display_login":"PetrosIchor"}}