{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/10510","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/10510/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/10510/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/10510/events","html_url":"https://github.com/fastlane/fastlane/issues/10510","id":263107490,"number":10510,"title":"Syntax issue with export_options","user":{"login":"TimMumsnet","id":16475573,"avatar_url":"https://avatars0.githubusercontent.com/u/16475573?v=4","gravatar_id":"","url":"https://api.github.com/users/TimMumsnet","html_url":"https://github.com/TimMumsnet","followers_url":"https://api.github.com/users/TimMumsnet/followers","following_url":"https://api.github.com/users/TimMumsnet/following{/other_user}","gists_url":"https://api.github.com/users/TimMumsnet/gists{/gist_id}","starred_url":"https://api.github.com/users/TimMumsnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimMumsnet/subscriptions","organizations_url":"https://api.github.com/users/TimMumsnet/orgs","repos_url":"https://api.github.com/users/TimMumsnet/repos","events_url":"https://api.github.com/users/TimMumsnet/events{/privacy}","received_events_url":"https://api.github.com/users/TimMumsnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-05T12:31:42Z","updated_at":"2017-10-26T08:38:26Z","closed_at":null,"author_association":"NONE","body":"### New Issue Checklist\r\n\r\n- [x] Updated fastlane to the latest version\r\n- [x] I read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n- [x] I read [docs.fastlane.tools](https://docs.fastlane.tools)\r\n- [x] I searched for [existing GitHub issues](https://github.com/fastlane/fastlane/issues)\r\n\r\n### Issue Description\r\n\r\nWhen running this lane:\r\n```\r\n  lane :build_adhoc do \r\n\r\n    gym(\r\n      scheme: \"Talk\",\r\n      configuration: \"AdHoc\",\r\n      clean: true,\r\n      output_directory:\"./fastlane\",\r\n      export_xcargs: \"-allowProvisioningUpdates\",\r\n      export_options(\r\n        method: \"ad-hoc\",\r\n        provisioningProfiles: { \r\n          \"com.mumsnet.app\" => \"Talk Ad Hoc\" \r\n        } \r\n      )\r\n    )\r\n  end\r\n```\r\nI receive this syntax error, referencing the close of `export_options` \r\n```\r\n[!] Syntax error in your Fastfile on line 30: Fastfile:30: syntax error, unexpected '\\n', expecting =>\r\n```\r\n\r\nAny ideas what I'm doing wrong?\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.6                                       |\r\n| Ruby                        | 2.3.3                                         |\r\n| Bundler?                    | false                                         |\r\n| Git                         | git version 2.13.5 (Apple Git-94)             |\r\n| Installation Source         | /usr/local/bin/fastlane                       |\r\n| Host                        | Mac OS X 10.12.6 (16G29)                      |\r\n| Ruby Lib Dir                | /usr/local/Cellar/ruby/2.3.3/lib              |\r\n| OpenSSL Version             | OpenSSL 1.0.2j  26 Sep 2016                   |\r\n| Is contained                | false                                         |\r\n| Is homebrew                 | false                                         |\r\n| Is installed via Fabric.app | false                                         |\r\n| Xcode Path                  | /Applications/Xcode 9.app/Contents/Developer/ |\r\n| Xcode Version               | 9.0                                           |\r\n\r\n\r\n### System Locale\r\n\r\n| Variable | Value       |   |\r\n| -------- | ----------- | - |\r\n| LANG     | en_GB.UTF-8 | ✅ |\r\n| LC_ALL   |             |   |\r\n| LANGUAGE |             |   |\r\n\r\n\r\n### fastlane files:\r\n\r\n<details><summary>`./Fastfile`</summary>\r\n\r\n```ruby\r\n\r\n\r\nupdate_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 \"2.20\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  before_all do\r\n    xcode_select \"/Applications/Xcode.app\" # Specifies the Xcode version\r\n  end\r\n\r\n\r\n  lane :build_adhoc do \r\n\r\n    gym(\r\n      scheme: \"Talk\",\r\n      configuration: \"AdHoc\",\r\n      clean: true,\r\n      output_directory:\"./fastlane\",\r\n      export_xcargs: \"-allowProvisioningUpdates\",\r\n      export_options(\r\n        method: \"ad-hoc\",\r\n        provisioningProfiles: { \r\n          \"com.mumsnet.app\" => \"Talk Ad Hoc\" \r\n        } \r\n      )\r\n    )\r\n  end\r\n\r\n\r\nend\r\n\r\n\r\n```\r\n</details>\r\n\r\n\r\n### fastlane gems\r\n\r\n| Gem      | Version | Update-Status |\r\n| -------- | ------- | ------------- |\r\n| fastlane | 2.60.1  | ✅ 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| slack-notifier            | 1.5.1        |\r\n| CFPropertyList            | 2.3.4        |\r\n| claide                    | 1.0.2        |\r\n| colored2                  | 3.1.2        |\r\n| nanaimo                   | 0.2.3        |\r\n| xcodeproj                 | 1.5.1        |\r\n| rouge                     | 1.11.1       |\r\n| xcpretty                  | 0.2.4        |\r\n| terminal-notifier         | 1.7.1        |\r\n| unicode-display_width     | 1.1.3        |\r\n| terminal-table            | 1.7.3        |\r\n| plist                     | 3.2.0        |\r\n| multipart-post            | 2.0.0        |\r\n| word_wrap                 | 1.0.0        |\r\n| public_suffix             | 2.0.5        |\r\n| tty-screen                | 0.5.0        |\r\n| babosa                    | 1.0.2        |\r\n| colored                   | 1.2          |\r\n| highline                  | 1.7.8        |\r\n| commander-fastlane        | 4.4.5        |\r\n| excon                     | 0.54.0       |\r\n| faraday                   | 0.11.0       |\r\n| unf_ext                   | 0.0.7.2      |\r\n| unf                       | 0.1.4        |\r\n| domain_name               | 0.5.20161129 |\r\n| http-cookie               | 1.0.3        |\r\n| faraday-cookie_jar        | 0.0.6        |\r\n| fastimage                 | 2.1.0        |\r\n| gh_inspector              | 1.0.3        |\r\n| mini_magick               | 4.5.1        |\r\n| multi_json                | 1.12.1       |\r\n| multi_xml                 | 0.6.0        |\r\n| rubyzip                   | 1.2.0        |\r\n| security                  | 0.1.3        |\r\n| xcpretty-travis-formatter | 0.0.4        |\r\n| dotenv                    | 2.1.2        |\r\n| bundler                   | 1.14.3       |\r\n| faraday_middleware        | 0.11.0.1     |\r\n| uber                      | 0.0.15       |\r\n| declarative               | 0.0.9        |\r\n| declarative-option        | 0.1.0        |\r\n| representable             | 3.0.4        |\r\n| retriable                 | 2.1.0        |\r\n| addressable               | 2.5.1        |\r\n| mime-types-data           | 3.2016.0521  |\r\n| mime-types                | 3.1          |\r\n| little-plugger            | 1.1.4        |\r\n| logging                   | 2.1.0        |\r\n| jwt                       | 1.5.6        |\r\n| memoist                   | 0.15.0       |\r\n| os                        | 0.9.6        |\r\n| signet                    | 0.7.3        |\r\n| googleauth                | 0.5.1        |\r\n| httpclient                | 2.8.3        |\r\n| google-api-client         | 0.13.4       |\r\n| json                      | 1.8.6        |\r\n| io-console                | 0.4.5        |\r\n</details>\r\n\r\n\r\n*generated on:* **2017-10-05**\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/339594110","html_url":"https://github.com/fastlane/fastlane/issues/10510#issuecomment-339594110","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/10510","id":339594110,"user":{"login":"TimMumsnet","id":16475573,"avatar_url":"https://avatars0.githubusercontent.com/u/16475573?v=4","gravatar_id":"","url":"https://api.github.com/users/TimMumsnet","html_url":"https://github.com/TimMumsnet","followers_url":"https://api.github.com/users/TimMumsnet/followers","following_url":"https://api.github.com/users/TimMumsnet/following{/other_user}","gists_url":"https://api.github.com/users/TimMumsnet/gists{/gist_id}","starred_url":"https://api.github.com/users/TimMumsnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimMumsnet/subscriptions","organizations_url":"https://api.github.com/users/TimMumsnet/orgs","repos_url":"https://api.github.com/users/TimMumsnet/repos","events_url":"https://api.github.com/users/TimMumsnet/events{/privacy}","received_events_url":"https://api.github.com/users/TimMumsnet/received_events","type":"User","site_admin":false},"created_at":"2017-10-26T08:38:26Z","updated_at":"2017-10-26T08:38:26Z","author_association":"NONE","body":"@ohayon thanks! That appears to have fixed the syntax issue. As it builds, however, the following warning is raised:\r\n\r\n```\r\n[09:17:05]: Couldn't automatically detect the provisioning profile mapping\r\n[09:17:05]: There were multiple profiles for bundle identifier(s): com.mumsnet.app\r\n[09:17:05]: You need to provide an explicit mapping of what provisioning\r\n[09:17:05]: profile to use for each bundle identifier of your app\r\n[09:17:05]: Couldn't automatically detect the provisioning profile mapping\r\n[09:17:05]: There were multiple profiles for bundle identifier(s): com.mumsnet.app\r\n[09:17:05]: You need to provide an explicit mapping of what provisioning\r\n[09:17:05]: profile to use for each bundle identifier of your app\r\n[09:17:05]: Couldn't automatically detect the provisioning profile mapping\r\n[09:17:05]: There were multiple profiles for bundle identifier(s): com.mumsnet.app\r\n[09:17:05]: You need to provide an explicit mapping of what provisioning\r\n[09:17:05]: profile to use for each bundle identifier of your app\r\n[09:17:05]: Couldn't automatically detect the provisioning profile mapping\r\n[09:17:05]: There were multiple profiles for bundle identifier(s): com.mumsnet.app\r\n[09:17:05]: You need to provide an explicit mapping of what provisioning\r\n[09:17:05]: profile to use for each bundle identifier of your app\r\n[09:17:05]: Detected provisioning profile mapping: {:\"com.mumsnet.app\"=>\"Talk Ad Hoc\", :\"Mumsnet.TalkFramework\"=>\"52b4bb6e-6a5c-49c9-9b8f-2dc7ee553a33\"}\r\n```\r\n\r\nThis is a little confusing though, since after building successfully, the plist file is:\r\n```\r\n[09:10:30]: Generated plist file with the following values:\r\n[09:10:30]: ▸ -----------------------------------------\r\n[09:10:30]: ▸ {\r\n[09:10:30]: ▸   \"method\": \"ad-hoc\",\r\n[09:10:30]: ▸   \"provisioningProfiles\": {\r\n[09:10:30]: ▸     \"com.mumsnet.app\": \"Talk Ad Hoc\",\r\n[09:10:30]: ▸     \"Mumsnet.TalkFramework\": \"52b4bb6e-6a5c-49c9-9b8f-2dc7ee553a33\"\r\n[09:10:30]: ▸   },\r\n[09:10:30]: ▸   \"signingStyle\": \"manual\"\r\n[09:10:30]: ▸ }\r\n[09:10:30]: ▸ -----------------------------------------\r\n```\r\nSo the archive succeeds, but the warnings are perplexing 🤔 any ideas?"}}
{"actor":{"display_login":"TimMumsnet"}}