{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/6866","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/6866/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/6866/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/6866/events","html_url":"https://github.com/fastlane/fastlane/issues/6866","id":187289378,"number":6866,"title":"Keychain prompts for permission to use private key regardless of access control settings on sierra","user":{"login":"godrei","id":12427060,"avatar_url":"https://avatars.githubusercontent.com/u/12427060?v=3","gravatar_id":"","url":"https://api.github.com/users/godrei","html_url":"https://github.com/godrei","followers_url":"https://api.github.com/users/godrei/followers","following_url":"https://api.github.com/users/godrei/following{/other_user}","gists_url":"https://api.github.com/users/godrei/gists{/gist_id}","starred_url":"https://api.github.com/users/godrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godrei/subscriptions","organizations_url":"https://api.github.com/users/godrei/orgs","repos_url":"https://api.github.com/users/godrei/repos","events_url":"https://api.github.com/users/godrei/events{/privacy}","received_events_url":"https://api.github.com/users/godrei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T09:38:38Z","updated_at":"2016-11-04T09:55:30Z","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\nFastlan gym hangs on `xcodebuild archive` commands.\r\n\r\nKeychain prompts for permission to use private key regardless of access control settings on sierra this cases a hang on build servers when tools calling `codesign` tool, like signing an archive, or during copying a framework or embedding pods.\r\n\r\nRelated [openradar issue](https://openradar.appspot.com/28524119).\r\n\r\nThe mentioned solution seems to be working, our implementation: https://github.com/bitrise-io/steps-certificate-and-profile-installer/blob/master/main.go#L548\r\n\r\n# Log 1:\r\n\r\n```\r\n+----------------------+-------------------------+\r\n|             \u001B[32mSummary for gym 1.11.3\u001B[0m             |\r\n+----------------------+-------------------------+\r\n| scheme               | [REDACTED]                 |\r\n| configuration        | Alpha                   |\r\n| use_legacy_build_api | true                    |\r\n| export_method        | development             |\r\n| workspace            | ./[REDACTED].xcworkspace   |\r\n| destination          | generic/platform=iOS    |\r\n| output_name          | [REDACTED]                 |\r\n| clean                | false                   |\r\n| output_directory     | .                       |\r\n| silent               | false                   |\r\n| buildlog_path        | ~/Library/Logs/gym      |\r\n| xcode_path           | /Applications/Xcode.app |\r\n+----------------------+-------------------------+\r\n\r\n[07:58:19]: \u001B[4m\u001B[36m$ set -o pipefail && xcodebuild -workspace ./[REDACTED].xcworkspace -scheme [REDACTED] -configuration 'Alpha' -destination 'generic/platform=iOS' -archivePath /Users/vagrant/Library/Developer/Xcode/Archives/2016-11-03/[REDACTED]\\ 2016-11-03\\ 07.58.19.xcarchive archive | tee /Users/vagrant/Library/Logs/gym/[REDACTED]-[REDACTED].log | xcpretty\u001B[0m\u001B[0m\r\n[07:58:24]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mBuilding\u001B[0m [REDACTED]/[REDACTED]-notification [(Release)]\u001B[0m\r\n[07:58:24]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mCheck Dependencies\u001B[0m\u001B[0m\r\n[07:58:24]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mProcessing\u001B[0m Info.plist\u001B[0m\r\n[07:58:24]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mCompiling\u001B[0m NotificationService.swift\u001B[0m\r\n[07:58:29]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mCompiling\u001B[0m NotificationService.swift\u001B[0m\r\n[07:58:37]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mLinking\u001B[0m [REDACTED]-notification\u001B[0m\r\n[07:58:38]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mLinking\u001B[0m [REDACTED]-notification\u001B[0m\r\n[07:58:43]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mGenerating '[REDACTED]-notification.appex.dSYM'\u001B[0m\u001B[0m\r\n[07:58:45]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mTouching\u001B[0m [REDACTED]-notification.appex\u001B[0m\r\n[07:58:45]: \u001B[35m\u001B[33m▸\u001B[0m \u001B[39;1mSigning\u001B[0m /Users/vagrant/Library/Developer/Xcode/DerivedData/[REDACTED]-euwzwswygybbklfshqvjvmmgzspa/Build/Intermediates/ArchiveIntermediates/[REDACTED]/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/[REDACTED]-notification.appex\u001B[0m\r\n\r\nhang on this line...\r\n```\r\n\r\n# Log 2:\r\n\r\n```\r\n+----------------------+-------------------------+ \r\n| Summary for gym 1.11.3 | \r\n+----------------------+-------------------------+ \r\n| scheme | Palace | \r\n| configuration | Adhoc | \r\n| use_legacy_build_api | true | \r\n| export_method | ad-hoc | \r\n| project | ./[REDACTED].xcodeproj | \r\n| destination | generic/platform=iOS | \r\n| output_name | [REDACTED] | \r\n| clean | false | \r\n| output_directory | . | \r\n| silent | false | \r\n| buildlog_path | ~/Library/Logs/gym | \r\n| xcode_path | /Applications/Xcode.app | \r\n+----------------------+-------------------------+\r\n\r\n[12:13:35]: $ set -o pipefail && xcodebuild -scheme [REDACTED] -project ./[REDACTED].xcodeproj -configuration 'Adhoc' -destination 'generic/platform=iOS' -archivePath /Users/vagrant/Library/Developer/Xcode/Archives/2016-11-03/[REDACTED]\\ 2016-11-03\\ 12.13.35.xcarchive archive | tee /Users/vagrant/Library/Logs/gym/[REDACTED]-[REDACTED].log | xcpretty \r\n[12:13:37]: ▸ Building [REDACTED]/[REDACTED] [Adhoc] \r\n[12:13:37]: ▸ Check Dependencies \r\n[12:14:36]: ▸ Compiling [REDACTED]_vers.c \r\n[12:14:37]: ▸ Compiling [REDACTED]_vers.c \r\n[12:14:37]: ▸ Linking [REDACTED] \r\n[12:14:39]: ▸ Linking [REDACTED] \r\n[12:14:39]: ▸ Compiling LaunchScreen.storyboard \r\n[12:14:45]: ▸ Processing Info.plist \r\n[12:14:45]: ▸ Generating '[REDACTED].app.dSYM' \r\n[12:14:45]: ▸ Running script 'Copy Frameworks'\r\n\r\nhang on this line...\r\n```\r\n\r\n# Log 3:\r\n\r\n```\r\nCompiling alot...\r\n\r\n[20:42:44]: ▸ Compiling Main.storyboard\r\n[20:42:50]: ▸ Processing Info.plist\r\n[20:42:50]: ▸ Generating '[REDACTED].app.dSYM'\r\n[20:42:50]: ▸ Running script 'Run Script'\r\n[20:42:50]: ▸ Running script '[CP] Embed Pods Frameworks'\r\n\r\nhang on this line...\r\n```"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/258386936","html_url":"https://github.com/fastlane/fastlane/issues/6866#issuecomment-258386936","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/6866","id":258386936,"user":{"login":"godrei","id":12427060,"avatar_url":"https://avatars.githubusercontent.com/u/12427060?v=3","gravatar_id":"","url":"https://api.github.com/users/godrei","html_url":"https://github.com/godrei","followers_url":"https://api.github.com/users/godrei/followers","following_url":"https://api.github.com/users/godrei/following{/other_user}","gists_url":"https://api.github.com/users/godrei/gists{/gist_id}","starred_url":"https://api.github.com/users/godrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godrei/subscriptions","organizations_url":"https://api.github.com/users/godrei/orgs","repos_url":"https://api.github.com/users/godrei/repos","events_url":"https://api.github.com/users/godrei/events{/privacy}","received_events_url":"https://api.github.com/users/godrei/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T09:55:30Z","updated_at":"2016-11-04T09:55:30Z","body":"All of these builds was working fine before sierra, all of these builds are failing on the same part of `xcodebuild archive` calls (when it uses `codesign`).\r\n\r\nBased on the openradar issue i mentioned previously and on our tests, it seems without calling `security set-key-partition-list ...` you can not avoid to keychain prompt for permission (on sierra), even if you installed the certificate correctly and opened the keychain with `security` command calls.\r\n\r\nAm i missing something?"}}
{"actor":{"display_login":"godrei"}}