{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5645","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5645/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5645/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5645/events","html_url":"https://github.com/CocoaPods/CocoaPods/pull/5645","id":166611036,"number":5645,"title":"Fix for lint codesign failure on macOS projects","user":{"login":"pcantrell","id":378162,"avatar_url":"https://avatars.githubusercontent.com/u/378162?v=3","gravatar_id":"","url":"https://api.github.com/users/pcantrell","html_url":"https://github.com/pcantrell","followers_url":"https://api.github.com/users/pcantrell/followers","following_url":"https://api.github.com/users/pcantrell/following{/other_user}","gists_url":"https://api.github.com/users/pcantrell/gists{/gist_id}","starred_url":"https://api.github.com/users/pcantrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcantrell/subscriptions","organizations_url":"https://api.github.com/users/pcantrell/orgs","repos_url":"https://api.github.com/users/pcantrell/repos","events_url":"https://api.github.com/users/pcantrell/events{/privacy}","received_events_url":"https://api.github.com/users/pcantrell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-20T15:30:34Z","updated_at":"2016-07-22T18:54:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/pulls/5645","html_url":"https://github.com/CocoaPods/CocoaPods/pull/5645","diff_url":"https://github.com/CocoaPods/CocoaPods/pull/5645.diff","patch_url":"https://github.com/CocoaPods/CocoaPods/pull/5645.patch"},"body":"`pod spec lint` and `pod trunk push` are both failing for me with the following error:\r\n\r\n```\r\nCodeSign /tmp/xcode/DerivedData/App-ecacodmhenqbjqcvnllhxtofynly/Build/Products/Release/Siesta/Siesta.framework/Versions/A\r\n    cd /var/folders/ct/_03srt6h8xj44m00r6bfmd400000gn/T/CocoaPods/Lint/Pods\r\n    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate\r\n    \r\nSigning Identity:     \"-\"\r\n\r\n    /usr/bin/codesign --force --sign - --timestamp=none /tmp/xcode/DerivedData/App-ecacodmhenqbjqcvnllhxtofynly/Build/Products/Release/Siesta/Siesta.framework/Versions/A\r\n/tmp/xcode/DerivedData/App-ecacodmhenqbjqcvnllhxtofynly/Build/Products/Release/Siesta/Siesta.framework/Versions/A: code object is not signed at all\r\nIn subcomponent: /private/tmp/xcode/DerivedData/App-ecacodmhenqbjqcvnllhxtofynly/Build/Products/Release/Siesta/Siesta.framework/Versions/A/Siesta\r\nCommand /usr/bin/codesign failed with exit code 1\r\n\r\n** BUILD FAILED **\r\n\r\n\r\nThe following build commands failed:\r\n\tCodeSign /tmp/xcode/DerivedData/App-ecacodmhenqbjqcvnllhxtofynly/Build/Products/Release/Siesta/Siesta.framework/Versions/A\r\n(1 failure)\r\n```\r\n\r\nThe culprit is that `\"-\"` signing identity. It appears to come not from Cocoapods or the pod being built, but from the empty macOS project generated by Xcode itself. (You can see this by generating a new, empty macOS … er, OS X app yourself from Xcode 7.3.1, without Cocoapods involved at all. The `CODE_SIGN_IDENTITY` of `\"-\"` shows up in the empty project. This may only be happening on machines that don't have a macOS dev certificate installed.)\r\n\r\nWhile that’s an Apple problem, the Cocoapods validation process relies on Xcode-generated projects, making it impossible to push a pod that contains a macOS target.\r\n\r\nThis patch overrides the lint app’s broken config on macOS. I’ve verified that [it works](https://cocoapods.org/pods/Siesta/)."},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/234626503","html_url":"https://github.com/CocoaPods/CocoaPods/pull/5645#issuecomment-234626503","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5645","id":234626503,"user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T18:54:07Z","updated_at":"2016-07-22T18:54:07Z","body":"Does it happen with your project when using Xcode 8 as well? I don't have 7.3.1 available right now for testing, but couldn't repro it with 8."}}
{"actor":{"display_login":"neonichu"}}