Title: Codesigning on test target fails silently, preventing tests from running and causing confusion · Issue #72 · dempseyatgithub/BuildSettingExtractor · GitHub
Open Graph Title: Codesigning on test target fails silently, preventing tests from running and causing confusion · Issue #72 · dempseyatgithub/BuildSettingExtractor
X Title: Codesigning on test target fails silently, preventing tests from running and causing confusion · Issue #72 · dempseyatgithub/BuildSettingExtractor
Description: I noticed an issue when working with the BuildSettingExtractor repo that we've been having in our projects as well. When the code signing for the test target is set to Team: None Signing Certificate: Sign to Run Locally The tests hang du...
Open Graph Description: I noticed an issue when working with the BuildSettingExtractor repo that we've been having in our projects as well. When the code signing for the test target is set to Team: None Signing Certificat...
X Description: I noticed an issue when working with the BuildSettingExtractor repo that we've been having in our projects as well. When the code signing for the test target is set to Team: None Signing Certif...
Opengraph URL: https://github.com/dempseyatgithub/BuildSettingExtractor/issues/72
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Codesigning on test target fails silently, preventing tests from running and causing confusion","articleBody":"I noticed an issue when working with the BuildSettingExtractor repo that we've been having in our projects as well.\r\n\r\nWhen the code signing for the test target is set to\r\n\r\n- Team: None\r\n- Signing Certificate: Sign to Run Locally\r\n\r\nThe tests hang during the start of the tests, and never actually run. This comes down to some issue with the way codesigning works for the test target specifically and seems to be a new issue with Xcode 12.\r\n\r\nThe annoying part though is that there are no error messages thrown or anything. It just hangs silently, which causes confusion. I was finally able to get a little more detail by running the tests via the command line using:\r\n\r\n```shell\r\nxcodebuild test -project BuildSettingExtractor.xcodeproj -scheme BuildSettingExtractor -destination 'platform=OS X,arch=x86_64'\r\n```\r\n\r\nThat _does_ print out an error:\r\n\r\n```\r\ndyld: warning: could not load inserted library '/Users/username/Library/Developer/Xcode/DerivedData/BuildSettingExtractor-gexjqvcazybyggesggvvqlnbhxdm/Build/Products/Debug/BuildSettingExtractor.app/Contents/Frameworks/libXCTestBundleInject.dylib' into hardened process because no suitable image found. Did find:\r\n\t/Users/username/Library/Developer/Xcode/DerivedData/BuildSettingExtractor-gexjqvcazybyggesggvvqlnbhxdm/Build/Products/Debug/BuildSettingExtractor.app/Contents/Frameworks/libXCTestBundleInject.dylib: code signature in (/Users/username/Library/Developer/Xcode/DerivedData/BuildSettingExtractor-gexjqvcazybyggesggvvqlnbhxdm/Build/Products/Debug/BuildSettingExtractor.app/Contents/Frameworks/libXCTestBundleInject.dylib) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)\r\n\t/Users/username/Library/Developer/Xcode/DerivedData/BuildSettingExtractor-gexjqvcazybyggesggvvqlnbhxdm/Build/Products/Debug/BuildSettingExtractor.app/Contents/Frameworks/libXCTestBundleInject.dylib: stat() failed with errno=1\r\n2020-10-20 08:24:50.415510-0500 BuildSettingExtractor[59650:864840] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)\r\n```\r\n\r\nThe issue is described in a little more detail here: https://posts.boy.sh/fix-mapped-file-has-no-team-id-xcode\r\n\r\nAnyway, for our apps at work, we've decided to set a specific value in the test target's code signing as a workaround. The advantage being that it will at least throw an error for the user to act upon.","author":{"url":"https://github.com/hisaac","@type":"Person","name":"hisaac"},"datePublished":"2020-10-20T14:29:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/72/BuildSettingExtractor/issues/72"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c5fdeda5-db35-0cc6-a9b1-c853cf29733f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEDE:EA6A7:8B1B3C:B6A35A:698D6C18 |
| html-safe-nonce | 5b1d3e7e52a474d4a662385b1161b38a3fc5dd2881ba481c75d88fca2e40a0b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERURFOkVBNkE3OjhCMUIzQzpCNkEzNUE6Njk4RDZDMTgiLCJ2aXNpdG9yX2lkIjoiNzg5NDg3ODcxMzQwOTI2ODc2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 283e48cf93b2a7ff66e9854d3689c69f0e74c30f7a8cd59df868c0d6c57383ea |
| hovercard-subject-tag | issue:725650007 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dempseyatgithub/BuildSettingExtractor/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/15434be53634d2431b1bbb671c2add3a445250ac41470b99fed6294cb13367c9/dempseyatgithub/BuildSettingExtractor/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/15434be53634d2431b1bbb671c2add3a445250ac41470b99fed6294cb13367c9/dempseyatgithub/BuildSettingExtractor/issues/72 |
| og:image:alt | I noticed an issue when working with the BuildSettingExtractor repo that we've been having in our projects as well. When the code signing for the test target is set to Team: None Signing Certificat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hisaac |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/dempseyatgithub/BuildSettingExtractor git https://github.com/dempseyatgithub/BuildSettingExtractor.git |
| octolytics-dimension-user_id | 470139 |
| octolytics-dimension-user_login | dempseyatgithub |
| octolytics-dimension-repository_id | 30102538 |
| octolytics-dimension-repository_nwo | dempseyatgithub/BuildSettingExtractor |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30102538 |
| octolytics-dimension-repository_network_root_nwo | dempseyatgithub/BuildSettingExtractor |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 715890fa442134f528fb422ab338c0ad55c7a025 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width