{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/6986","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/6986/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/6986/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/6986/events","html_url":"https://github.com/fastlane/fastlane/issues/6986","id":189109668,"number":6986,"title":"Resign can not find provision profile at path '~/Library/MobileDevice/Provisioning Profiles/'","user":{"login":"ruslanfutureuniverse","id":22910963,"avatar_url":"https://avatars.githubusercontent.com/u/22910963?v=3","gravatar_id":"","url":"https://api.github.com/users/ruslanfutureuniverse","html_url":"https://github.com/ruslanfutureuniverse","followers_url":"https://api.github.com/users/ruslanfutureuniverse/followers","following_url":"https://api.github.com/users/ruslanfutureuniverse/following{/other_user}","gists_url":"https://api.github.com/users/ruslanfutureuniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslanfutureuniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslanfutureuniverse/subscriptions","organizations_url":"https://api.github.com/users/ruslanfutureuniverse/orgs","repos_url":"https://api.github.com/users/ruslanfutureuniverse/repos","events_url":"https://api.github.com/users/ruslanfutureuniverse/events{/privacy}","received_events_url":"https://api.github.com/users/ruslanfutureuniverse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T13:16:07Z","updated_at":"2016-11-14T14:43:54Z","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\nResign fails to find provisioning profile at path '~/Library/MobileDevice/Provisioning Profiles/something.mobileprovision'. But '/Users/user/Library/MobileDevice/Provisioning Profiles/something.mobileprovision' works. And this is fragile.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n> You can use: `--capture_output` as the last commandline argument to get that collected for you\r\n\r\nbundle exec fastlane resign_ipa\r\n[14:11:00]: -------------------------------------------------\r\n[14:11:00]: --- Step: Verifying required fastlane version ---\r\n[14:11:00]: -------------------------------------------------\r\n[14:11:00]: Your fastlane version 1.108.0 matches the minimum requirement of 1.107  ✅\r\n[14:11:00]: ------------------------------\r\n[14:11:00]: --- Step: default_platform ---\r\n[14:11:00]: ------------------------------\r\n[14:11:00]: Driving the lane 'ios resign_ipa' 🚀\r\n[14:11:00]: --------------------\r\n[14:11:00]: --- Step: resign ---\r\n[14:11:00]: --------------------\r\n[14:11:00]: Error setting value '~/Library/MobileDevice/Provisioning Profiles/f100dffe-dca0-4a73-9363-9bec3de7aa19.mobileprovision' for option 'provisioning_profile'\r\n[14:11:00]: You passed invalid parameters to 'resign'.\r\n[14:11:00]: Check out the error below and available options by running `fastlane action resign`\r\n[14:11:00]: Variable Dump:\r\n[14:11:00]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios resign_ipa\"}\r\n[14:11:00]: Couldn't find provisiong profile at path '~/Library/MobileDevice/Provisioning Profiles/f100dffe-dca0-4a73-9363-9bec3de7aa19.mobileprovision'\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| 💥    | resign                              | 0           |\r\n+------+-------------------------------------+-------------+\r\n\r\n[14:11:00]: fastlane finished with errors\r\n\r\n[!] Couldn't find provisiong profile at path '~/Library/MobileDevice/Provisioning Profiles/f100dffe-dca0-4a73-9363-9bec3de7aa19.mobileprovision'\r\n\r\n### Environment\r\n\r\n<details><summary>🚫 fastlane environment 🚫</summary>\r\n\r\n### Stack\r\n\r\n| Key                 | Value                                       |\r\n| ------------------- | ------------------------------------------- |\r\n| OS                  | 10.12.1                                     |\r\n| Ruby                | 2.3.1                                       |\r\n| Bundler?            | false                                       |\r\n| Xcode Path          | /Applications/Xcode.app/Contents/Developer/ |\r\n| Xcode Version       | 8.1                                         |\r\n| Git                 | git version 2.10.1                          |\r\n| Installation Source | /usr/local/bin/fastlane                     |\r\n| Host                | Mac OS X 10.12.1 (16B2555)                  |\r\n| Ruby Lib Dir        | /usr/local/Cellar/ruby/2.3.1_2/lib          |\r\n| OpenSSL Version     | OpenSSL 1.0.2j  26 Sep 2016                 |\r\n\r\n\r\n### System Locale\r\n\r\n| Error                       |\r\n| --------------------------- |\r\n| No Locale with UTF8 found 🚫 |\r\n\r\n\r\n### fastlane files:\r\n\r\n<details><summary>`./fastlane/Fastfile`</summary>\r\n\r\n```ruby\r\n# Customise this file, documentation can be found here:\r\n# https://github.com/fastlane/fastlane/tree/master/fastlane/docs\r\n# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md\r\n# can also be listed using the `fastlane actions` command\r\n\r\n# Change the syntax highlighting to Ruby\r\n# All lines starting with a # are ignored when running `fastlane`\r\n\r\n# If you want to automatically update fastlane if a new version is available:\r\n# update_fastlane\r\n\r\n# This is the minimum version number required.\r\n# Update this, if you use features of a newer version\r\nfastlane_version \"1.107\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  before_all do\r\n    # ENV[\"SLACK_URL\"] = \"https://hooks.slack.com/services/...\"\r\n  end\r\n\r\n  desc \"Runs all the tests\"\r\n  lane :test do\r\n    scan\r\n  end\r\n\r\n  desc \"Prepare certificates\"\r\n  lane :certificates do\r\n    register_devices(devices_file: \"fastlane/devices.txt\")\r\n    match(type: \"development\", force_for_new_devices: true)\r\n    match(type: \"appstore\")\r\n  end\r\n\r\n  desc \"Submit a new Beta Build to Apple TestFlight\"\r\n  lane :beta do |options|\r\n    pem(\r\n      save_private_key: true,\r\n      new_profile: proc do |profile_path| # this block gets called when a new profile was generated\r\n        puts profile_path # the absolute path to the new PEM file\r\n        # insert the code to upload the PEM file to the server\r\n      end\r\n    )\r\n    pilot(skip_submission: true,\r\n          ipa: options[:ipa],\r\n          skip_waiting_for_build_processing: true)\r\n  end\r\n\r\n  desc \"Resigns app with correct entitlements from profile\"\r\n  lane :resign_ipa do\r\n    # sh \"sigh resign Binaries/IOS/FutureMobile-IOS-Shipping.ipa\r\n    #  --signing_identity 'iPhone Distribution: The Future Group AS (4TM2DK894Y)'\r\n    #   -n 'match AppStore com.futuregroup.futureuniverse'\"\r\n    resign(\r\n      ipa: \"Binaries/IOS/FutureMobile-IOS-Shipping.ipa\", # can omit if using the `ipa` action\r\n      signing_identity: \"iPhone Distribution: The Future Group AS (4TM2DK894Y)\",\r\n      use_app_entitlements: true,\r\n      provisioning_profile: \"~/Library/MobileDevice/Provisioning\\ Profiles/f100dffe-dca0-4a73-9363-9bec3de7aa19.mobileprovision\"\r\n    )\r\n\r\n  end\r\n\r\n  # desc \"Deploy a new version to the App Store\"\r\n  # lane :release do\r\n  #   # match(type: \"appstore\")\r\n  #   # snapshot\r\n  #   gym # Build your app - more options available\r\n  #   deliver(force: true)\r\n  #   # frameit\r\n  # end\r\n\r\n  # You can define as many lanes as you want\r\n\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n\r\n    # slack(\r\n    #   message: \"Successfully deployed new App Update.\"\r\n    # )\r\n  end\r\n\r\n  error do |lane, exception|\r\n    # slack(\r\n    #   message: exception.message,\r\n    #   success: false\r\n    # )\r\n  end\r\nend\r\n\r\n\r\n# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md\r\n# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md\r\n\r\n# fastlane reports which actions are used\r\n# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer\r\n```\r\n</details>\r\n\r\n<details><summary>`./fastlane/Appfile`</summary>\r\n\r\n```ruby\r\napp_identifier \"com.futuregroup.futureuniverse\" # The bundle identifier of your app\r\napple_id \"developer@futureuniverse.com\" # Your Apple email address\r\n\r\nteam_id \"4TM2DK894Y\"  # Developer Portal Team ID\r\n\r\n# you can even provide different app identifiers, Apple IDs and team names per lane:\r\n# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md\r\n```\r\n</details>\r\n\r\n### fastlane gems\r\n\r\n| Gem                 | Version | Update-Status |\r\n| ------------------- | ------- | ------------- |\r\n| credentials_manager | 0.16.2  | ✅ Up-To-Date  |\r\n| fastlane_core       | 0.55.0  | ✅ Up-To-Date  |\r\n| spaceship           | 0.37.0  | ✅ Up-To-Date  |\r\n| deliver             | 1.15.0  | ✅ Up-To-Date  |\r\n| snapshot            | 1.16.3  | ✅ Up-To-Date  |\r\n| frameit             | 3.0.0   | ✅ Up-To-Date  |\r\n| pem                 | 1.4.0   | ✅ Up-To-Date  |\r\n| cert                | 1.4.4   | ✅ Up-To-Date  |\r\n| sigh                | 1.11.2  | ✅ Up-To-Date  |\r\n| produce             | 1.3.0   | ✅ Up-To-Date  |\r\n| gym                 | 1.12.0  | ✅ Up-To-Date  |\r\n| pilot               | 1.12.0  | ✅ Up-To-Date  |\r\n| scan                | 0.14.1  | ✅ Up-To-Date  |\r\n| supply              | 0.7.1   | ✅ Up-To-Date  |\r\n| match               | 0.11.0  | ✅ Up-To-Date  |\r\n| screengrab          | 0.5.5   | ✅ Up-To-Date  |\r\n| fastlane            | 1.108.0 | ✅ Up-To-Date  |\r\n\r\n\r\n### Loaded fastlane plugins:\r\n\r\n**No plugins Loaded**\r\n\r\n\r\n<details><summary><b>Loaded gems</b></summary>\r\n\r\n| Gem                       | Version      |\r\n| ------------------------- | ------------ |\r\n| did_you_mean              | 1.0.0        |\r\n| highline                  | 1.7.8        |\r\n| commander                 | 4.4.0        |\r\n| terminal-table            | 1.4.5        |\r\n| json                      | 1.8.3        |\r\n| dotenv                    | 2.1.1        |\r\n| net-ssh                   | 3.2.0        |\r\n| net-sftp                  | 2.1.2        |\r\n| rubyzip                   | 1.1.7        |\r\n| security                  | 0.1.3        |\r\n| krausefx-shenzhen         | 0.14.11      |\r\n| slack-notifier            | 1.5.1        |\r\n| i18n                      | 0.7.0        |\r\n| thread_safe               | 0.3.5        |\r\n| tzinfo                    | 1.2.2        |\r\n| activesupport             | 4.2.7.1      |\r\n| CFPropertyList            | 2.3.3        |\r\n| claide                    | 1.0.1        |\r\n| colored                   | 1.2          |\r\n| nanaimo                   | 0.2.2        |\r\n| xcodeproj                 | 1.4.1        |\r\n| rouge                     | 1.11.1       |\r\n| xcpretty                  | 0.2.4        |\r\n| terminal-notifier         | 1.7.1        |\r\n| multipart-post            | 2.0.0        |\r\n| word_wrap                 | 1.0.0        |\r\n| multi_json                | 1.12.1       |\r\n| babosa                    | 1.0.2        |\r\n| excon                     | 0.54.0       |\r\n| gh_inspector              | 1.0.2        |\r\n| credentials_manager       | 0.16.2       |\r\n| fastlane_core             | 0.55.0       |\r\n| bundler                   | 1.13.6       |\r\n| multi_xml                 | 0.5.5        |\r\n| unf_ext                   | 0.0.7.2      |\r\n| unf                       | 0.1.4        |\r\n| domain_name               | 0.5.20161021 |\r\n| http-cookie               | 1.0.3        |\r\n| faraday-cookie_jar        | 0.0.6        |\r\n| fastimage                 | 1.6.8        |\r\n| mini_magick               | 4.5.1        |\r\n| xcpretty-travis-formatter | 0.0.4        |\r\n| io-console                | 0.4.5        |\r\n| plist                     | 3.2.0        |\r\n| xcode-install             | 2.0.9        |\r\n</details>\r\n\r\n\r\n*generated on:* **2016-11-14**\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/260352685","html_url":"https://github.com/fastlane/fastlane/issues/6986#issuecomment-260352685","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/6986","id":260352685,"user":{"login":"hjanuschka","id":2891702,"avatar_url":"https://avatars.githubusercontent.com/u/2891702?v=3","gravatar_id":"","url":"https://api.github.com/users/hjanuschka","html_url":"https://github.com/hjanuschka","followers_url":"https://api.github.com/users/hjanuschka/followers","following_url":"https://api.github.com/users/hjanuschka/following{/other_user}","gists_url":"https://api.github.com/users/hjanuschka/gists{/gist_id}","starred_url":"https://api.github.com/users/hjanuschka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjanuschka/subscriptions","organizations_url":"https://api.github.com/users/hjanuschka/orgs","repos_url":"https://api.github.com/users/hjanuschka/repos","events_url":"https://api.github.com/users/hjanuschka/events{/privacy}","received_events_url":"https://api.github.com/users/hjanuschka/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T14:43:53Z","updated_at":"2016-11-14T14:43:53Z","body":"just a blind guess - have you tried removing: the `\\ `  for the space?\r\nas it seems that `shellescape` is done here: https://github.com/fastlane/fastlane/blob/master/sigh/lib/sigh/resign.rb#L30 so in your case this will result in a double shell escape 💥 "}}
{"actor":{"display_login":"hjanuschka"}}