{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/6289","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/6289/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/6289/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/6289/events","html_url":"https://github.com/fastlane/fastlane/issues/6289","id":179157192,"number":6289,"title":"Export fails for enterprise with Xcode8","user":{"login":"hachibe","id":11911083,"avatar_url":"https://avatars.githubusercontent.com/u/11911083?v=3","gravatar_id":"","url":"https://api.github.com/users/hachibe","html_url":"https://github.com/hachibe","followers_url":"https://api.github.com/users/hachibe/followers","following_url":"https://api.github.com/users/hachibe/following{/other_user}","gists_url":"https://api.github.com/users/hachibe/gists{/gist_id}","starred_url":"https://api.github.com/users/hachibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hachibe/subscriptions","organizations_url":"https://api.github.com/users/hachibe/orgs","repos_url":"https://api.github.com/users/hachibe/repos","events_url":"https://api.github.com/users/hachibe/events{/privacy}","received_events_url":"https://api.github.com/users/hachibe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/awaiting-reply","name":"awaiting-reply","color":"bfe5bf"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/gym","name":"gym","color":"d4c5f9"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/you%20can%20do%20this","name":"you can do this","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-26T07:28:23Z","updated_at":"2016-09-28T14:07:42Z","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 Xcode8 and the following gym for exporting by enterprise, it is failed with message \"Exit status: 12\" and \"Error packaging up the application\".\r\n\r\n```\r\ngym(\r\n  workspace: \"xxx.xcworkspace\",\r\n  configuration: configuration,\r\n  scheme: scheme,\r\n  silent: true,\r\n  clean: true,\r\n  output_directory: output_directory,\r\n  output_name: output_name,\r\n  codesigning_identity: \"xxx\",\r\n  export_team_id: \"xxx\",\r\n  export_method: \"enterprise\",\r\n  toolchain: \"com.apple.dt.toolchain.Swift_2_3\",\r\n  use_legacy_build_api: true,\r\n  include_bitcode: false,\r\n)\r\nend\r\n```\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\n[09:46:24]: -------------------------------------------------\r\n[09:46:24]: --- Step: Verifying required fastlane version ---\r\n[09:46:24]: -------------------------------------------------\r\n[09:46:24]: fastlane version valid\r\n[09:46:24]: ------------------------------\r\n[09:46:24]: --- Step: default_platform ---\r\n[09:46:24]: ------------------------------\r\n[09:46:25]: Driving the lane 'ios ipa_inhouse' 🚀\r\n[09:46:25]: ------------------\r\n[09:46:25]: --- Step: sigh ---\r\n[09:46:25]: ------------------\r\n\r\n+-------------------------------------+---------------------------------------+\r\n|                           Summary for sigh 1.11.1                           |\r\n+-------------------------------------+---------------------------------------+\r\n| adhoc                               | false                                 |\r\n| development                         | false                                 |\r\n| skip_install                        | false                                 |\r\n| force                               | false                                 |\r\n| app_identifier                      | xxx                                   |\r\n| username                            | xxx                                   |\r\n| team_id                             | xxx                                   |\r\n| ignore_profiles_with_different_name | false                                 |\r\n| skip_fetch_profiles                 | false                                 |\r\n| skip_certificate_verification       | false                                 |\r\n+-------------------------------------+---------------------------------------+\r\n\r\n[09:46:25]: Starting login with user 'xxx'\r\n[09:46:29]: Successfully logged in\r\n[09:46:29]: Fetching profiles...\r\n[09:46:36]: Found 2 matching profile(s)\r\n[09:46:36]: Downloading provisioning profile...\r\n[09:46:37]: Successfully downloaded provisioning profile...\r\n[09:46:37]: Installing provisioning profile...\r\nxxx\r\n[09:46:37]: Setting Provisioning Profile type to 'enterprise'\r\n[09:46:37]: --------------------------------------------------\r\n[09:46:37]: --- Step: Switch to ios update_enterprise lane ---\r\n[09:46:37]: --------------------------------------------------\r\n[09:46:37]: Cruising over to lane 'ios update_enterprise' 🚖\r\n[09:46:37]: -------------------------------\r\n[09:46:37]: --- Step: update_info_plist ---\r\n[09:46:37]: -------------------------------\r\n[09:46:37]: Updated xxx/Application/Info.plist 💾.\r\n[09:46:37]: ---------------------------------\r\n[09:46:37]: --- Step: update_project_team ---\r\n[09:46:37]: ---------------------------------\r\n[09:46:37]: Updating development team (xxx) for the given project 'xxx.xcodeproj/project.pbxproj'\r\n[09:46:37]: Successfully updated project settings to use Developer Team ID 'xxx'\r\n[09:46:37]: -----------------------------------\r\n[09:46:37]: --- Step: update_app_identifier ---\r\n[09:46:37]: -----------------------------------\r\n[09:46:41]: Updated xxx.xcodeproj 💾.\r\n[09:46:41]: Cruising back to lane 'ios ipa_inhouse' 🚘\r\n[09:46:41]: -------------------------------------------------\r\n[09:46:41]: --- Step: Switch to ios build_enterprise lane ---\r\n[09:46:41]: -------------------------------------------------\r\n[09:46:41]: Cruising over to lane 'ios build_enterprise' 🚖\r\n[09:46:41]: ------------------------------------\r\n[09:46:41]: --- Step: increment_build_number ---\r\n[09:46:41]: ------------------------------------\r\n[09:46:41]: $ cd xxx && agvtool new-version -all 0.1.0 && cd -\r\n[09:46:41]: Setting version of project xxx to:\r\n[09:46:41]: 0.1.0.\r\n[09:46:41]: Also setting CFBundleVersion key (assuming it exists)\r\n[09:46:41]: Updating CFBundleVersion in Info.plist(s)...\r\n[09:46:41]: Updated CFBundleVersion in \"xxx/Info.plist\" to 0.1.0\r\n[09:46:41]: Updated CFBundleVersion in \"xxx/Info.plist\" to 0.1.0\r\n[09:46:41]: xxx\r\n[09:46:41]: -----------------\r\n[09:46:41]: --- Step: gym ---\r\n[09:46:41]: -----------------\r\n[09:46:41]: Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=xxx\r\n[09:46:41]: Installing provisioning profile...\r\n[09:46:41]: $ xcodebuild -list -workspace xxx.xcworkspace\r\n[09:46:43]: $ xcodebuild clean -showBuildSettings -workspace xxx.xcworkspace -scheme xxx\r\n\r\n+---------------------------+----------------------------------------------------------------------+\r\n|                                      Summary for gym 1.10.0                                      |\r\n+---------------------------+----------------------------------------------------------------------+\r\n| workspace                 | xxx.xcworkspace                                                      |\r\n| configuration             | Debug                                                                |\r\n| scheme                    | xxx                                                                  |\r\n| silent                    | true                                                                 |\r\n| clean                     | true                                                                 |\r\n| output_directory          | build                                                                |\r\n| output_name               | xxx                                                                  |\r\n| codesigning_identity      | iPhone Distribution: xxx                                             |\r\n| export_method             | enterprise                                                           |\r\n| toolchain                 | com.apple.dt.toolchain.Swift_2_3                                     |\r\n| use_legacy_build_api      | true                                                                 |\r\n| include_bitcode           | false                                                                |\r\n| provisioning_profile_path | /Users/xxx/....                                                      |\r\n| destination               | generic/platform=iOS                                                 |\r\n| buildlog_path             | ~/Library/Logs/gym                                                   |\r\n+---------------------------+----------------------------------------------------------------------+\r\n\r\n[09:46:47]: Cleaning\r\n[09:46:47]: Check Dependencies\r\n...\r\n[09:49:14]: Copying IconAssets2.framework\r\n[09:49:16]: Running script 'Embed Pods Frameworks'\r\n[09:49:16]: Running script 'Copy Pods Resources'\r\n[09:49:16]: Running script 'Strip Unsupported Architectures'\r\n[09:49:17]: Running script 'Run Script'\r\n[09:49:17]: Touching xxx.app\r\n[09:49:19]: Signing xxx.app\r\n[09:49:22]: Archive Succeeded\r\n[09:49:22]: Legacy build api is enabled, the `export_method` value will be ignored\r\n\r\n[09:49:39]: Exit status: 12\r\n[09:49:39]: Variable Dump:\r\n[09:49:39]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios ipa_inhouse\", :SIGH_PROFILE_PATH=>\"xxx.mobileprovision\", :SIGH_PROFILE_PATHS=>[\"xxx.mobileprovision\"], :SIGH_UDID=>\"xxx\", :SIGH_PROFILE_TYPE=>\"enterprise\", :BUILD_NUMBER=>\"0.1.0\"}\r\n[09:49:39]: 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    | sigh                                 | 12          |\r\n| 4    | Switch to ios update_enterprise lane | 0           |\r\n| 5    | update_info_plist                    | 0           |\r\n| 6    | update_project_team                  | 0           |\r\n| 7    | update_app_identifier                | 3           |\r\n| 8    | Switch to ios build_enterprise lane  | 0           |\r\n| 9    | increment_build_number               | 0           |\r\n| 10   | gym                                  | 178         |\r\n+------+--------------------------------------+-------------+\r\n\r\n[09:49:39]: 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\nfastlane_version \"1.104.0\"\r\n\r\ndefault_platform :ios\r\n\r\nCONFIGURATION_DEBUG   = \"Debug\"\r\nCONFIGURATION_RELEASE     = \"Release\"\r\n\r\nplatform :ios do\r\n  #====================== Public =================#\r\n  lane :ipa_inhouse do |options|\r\n    version = options[:version]\r\n    config = options[:config] || CONFIGURATION_DEBUG\r\n    config_name = config == CONFIGURATION_DEBUG ? \"debug\" : \"release\"\r\n    disp_config = config == CONFIGURATION_DEBUG ? \"D\" : \"R\"\r\n    disp_name = options[:disp_name] || \"xxx\" + version + disp_config\r\n\r\n    sigh()\r\n\r\n    update_enterprise(\r\n      display_name: disp_name,\r\n    )\r\n\r\n    build_enterprise(\r\n      version: version,\r\n      scheme: \"xxx\",\r\n      output_directory: \"build\",\r\n      output_name: \"xxx_\" + config_name + \"_inhouse.ipa\",\r\n      configuration: config,\r\n    )\r\n  end\r\n\r\n  #===================== Private =================#\r\n  private_lane :build_enterprise do |options|\r\n    version          = options[:version]\r\n    scheme           = options[:scheme]\r\n    output_directory = options[:output_directory]\r\n    output_name      = options[:output_name]\r\n    configuration    = options[:configuration]\r\n    production       = options[:production]\r\n\r\n    if version\r\n      increment_build_number(\r\n        build_number: version,\r\n        xcodeproj: \"xxx.xcodeproj\"\r\n      )\r\n    end\r\n\r\n    ENV[\"FASTLANE_XCODE_LIST_TIMEOUT\"] = \"120\"\r\n\r\n    gym(\r\n      workspace: \"xxx.xcworkspace\",\r\n      configuration: configuration,\r\n      scheme: scheme,\r\n      silent: true,\r\n      clean: true,\r\n      output_directory: output_directory,\r\n      output_name: output_name,\r\n      codesigning_identity: \"xxx\",\r\n      export_team_id: \"xxx\",\r\n      export_method: \"enterprise\",\r\n      toolchain: \"com.apple.dt.toolchain.Swift_2_3\",\r\n      use_legacy_build_api: true,\r\n      include_bitcode: false,\r\n    )\r\n  end\r\n\r\n  private_lane :update_enterprise do |options|\r\n    # Update Display Name\r\n    display_name  = options[:display_name]\r\n    update_info_plist(\r\n      plist_path: \"xxx/Application/Info.plist\",\r\n      display_name: display_name\r\n    )\r\n\r\n    # Update Team\r\n    update_project_team(\r\n      path: \"xxx.xcodeproj\",\r\n      teamid: \"xxx\"\r\n    )\r\n\r\n    # Update BundleIdentifier\r\n    update_app_identifier(\r\n      plist_path: \"xxx/Application/Info.plist\",\r\n      app_identifier: \"xxx\"\r\n    )\r\n  end\r\n\r\n  error do |lane, exception|\r\n  end\r\nend\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (run `fastlane -v`): 1.104.0\r\n\r\nDo you use bundler to execute fastlane (i.e. `bundle exec fastlane`)? yes\r\n\r\nDo you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)? no\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/250176835","html_url":"https://github.com/fastlane/fastlane/issues/6289#issuecomment-250176835","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/6289","id":250176835,"user":{"login":"hachibe","id":11911083,"avatar_url":"https://avatars.githubusercontent.com/u/11911083?v=3","gravatar_id":"","url":"https://api.github.com/users/hachibe","html_url":"https://github.com/hachibe","followers_url":"https://api.github.com/users/hachibe/followers","following_url":"https://api.github.com/users/hachibe/following{/other_user}","gists_url":"https://api.github.com/users/hachibe/gists{/gist_id}","starred_url":"https://api.github.com/users/hachibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hachibe/subscriptions","organizations_url":"https://api.github.com/users/hachibe/orgs","repos_url":"https://api.github.com/users/hachibe/repos","events_url":"https://api.github.com/users/hachibe/events{/privacy}","received_events_url":"https://api.github.com/users/hachibe/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T14:07:42Z","updated_at":"2016-09-28T14:07:42Z","body":"@pirocso I would like to confirm just in case,\r\nwhy does this issue only exists with Xcode 8 not Xcode 7?"}}
{"actor":{"display_login":"hachibe"}}