{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/8174","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/8174/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/8174/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/8174/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/8174","id":368805023,"node_id":"MDU6SXNzdWUzNjg4MDUwMjM=","number":8174,"title":"Vendoring Pods folder with Swift static libraries does not work due to absolute symlinks","user":{"login":"chrisballinger","id":518687,"node_id":"MDQ6VXNlcjUxODY4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/518687?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisballinger","html_url":"https://github.com/chrisballinger","followers_url":"https://api.github.com/users/chrisballinger/followers","following_url":"https://api.github.com/users/chrisballinger/following{/other_user}","gists_url":"https://api.github.com/users/chrisballinger/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisballinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisballinger/subscriptions","organizations_url":"https://api.github.com/users/chrisballinger/orgs","repos_url":"https://api.github.com/users/chrisballinger/repos","events_url":"https://api.github.com/users/chrisballinger/events{/privacy}","received_events_url":"https://api.github.com/users/chrisballinger/received_events","type":"User","site_admin":false},"labels":[{"id":897724826,"node_id":"MDU6TGFiZWw4OTc3MjQ4MjY=","url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/s7:workaround%20available","name":"s7:workaround available","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/milestones/34","html_url":"https://github.com/CocoaPods/CocoaPods/milestone/34","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/milestones/34/labels","id":2960166,"node_id":"MDk6TWlsZXN0b25lMjk2MDE2Ng==","number":34,"title":"1.6.0","description":"","creator":{"login":"justinseanmartin","id":5855270,"node_id":"MDQ6VXNlcjU4NTUyNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/5855270?v=4","gravatar_id":"","url":"https://api.github.com/users/justinseanmartin","html_url":"https://github.com/justinseanmartin","followers_url":"https://api.github.com/users/justinseanmartin/followers","following_url":"https://api.github.com/users/justinseanmartin/following{/other_user}","gists_url":"https://api.github.com/users/justinseanmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/justinseanmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinseanmartin/subscriptions","organizations_url":"https://api.github.com/users/justinseanmartin/orgs","repos_url":"https://api.github.com/users/justinseanmartin/repos","events_url":"https://api.github.com/users/justinseanmartin/events{/privacy}","received_events_url":"https://api.github.com/users/justinseanmartin/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":181,"state":"open","created_at":"2017-12-05T18:27:15Z","updated_at":"2018-11-06T08:09:50Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2018-10-10T18:55:57Z","updated_at":"2018-11-06T08:10:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"* [x] I've read and understood the [*CONTRIBUTING* guidelines and have done my best effort to follow](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md).\r\n\r\n# Report\r\n\r\n## What did you do?\r\n\r\nI was trying to vendor a Pods folder for a project that is using Swift Static libraries and our CI system was having issues with missing modulemaps, for example:\r\n\r\n```\r\nTesting failed:\r\nCommand CompileSwift failed with a nonzero exit code\r\nModule map file '/Users/distiller/project/app/Pods/Headers/Public/KeychainAccess/KeychainAccess.modulemap' not found\r\nMissing required module 'SwiftShims'\r\nModule map file '/Users/distiller/project/app/Pods/Headers/Public/Swiftilities/Swiftilities.modulemap' not found\r\nTesting cancelled because the build failed.\r\n** TEST FAILED **\r\n```\r\n\r\nIt seems that when using Swift static libraries CocoaPods creates a symbolic link for the modulemap, but it uses an absolute path:\r\n\r\n```\r\n$ pwd\r\n/Users/example/Example/app/Pods/Headers/Public/KeychainAccess\r\n$ ls -al\r\ntotal 0\r\ndrwxr-xr-x   4 example  staff  128 Oct 10 11:04 .\r\ndrwxr-xr-x  11 example  staff  352 Oct 10 11:04 ..\r\nlrwxr-xr-x   1 example  staff  112 Oct 10 11:04 KeychainAccess-umbrella.h -> /Users/example/Example/app/Pods/Target Support Files/KeychainAccess/KeychainAccess-umbrella.h\r\nlrwxr-xr-x   1 example  staff  111 Oct 10 11:04 KeychainAccess.modulemap -> /Users/example/Example/app/Pods/Target Support Files/KeychainAccess/KeychainAccess.modulemap\r\n```\r\n\r\nIt does seem to be committed to the repository as a symbolic link:\r\n\r\n```\r\n$ git ls-files -s KeychainAccess.modulemap \r\n120000 bbd67842feea5a0681d75ddae21fb748fc0e8399 0   KeychainAccess.modulemap\r\n$ git cat-file -p bbd67842feea5a0681d75ddae21fb748fc0e8399\r\n/Users/example/Example/app/Pods/Target Support Files/KeychainAccess/KeychainAccess.modulemap\r\n```\r\n\r\nHowever when checking out the repository on another machine, the file does not exist at `Pods/Headers/Public/KeychainAccess/KeychainAccess.modulemap`. My guess is that git doesn't like the absolute symlink.\r\n\r\nIs there a way to force CocoaPods to create relative symlinks for these files, or copy the full file?\r\n\r\n## What did you expect to happen?\r\n\r\nAll files in the Pods folder can be committed to a git repository and checked out on another machine.\r\n\r\n## What happened instead?\r\n\r\nSymlinked modulemap and header files in `Pods/Headers/Public/` folder do not exist when checking out the repo on another machine.\r\n\r\n## CocoaPods Environment\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.6.0.beta.1\r\n        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]\r\n    RubyGems : 2.7.6\r\n        Host : Mac OS X 10.14 (18A391)\r\n       Xcode : 10.0 (10A254a)\r\n         Git : git version 2.19.1\r\nRuby lib dir : /usr/local/Cellar/ruby/2.5.1/lib\r\nRepositories :  master - https://github.com/CocoaPods/Specs.git @ cbb416f1eeb3b0b06c59877eaab7a2b14f5d6409\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /usr/local/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\nclaide-plugins        : 0.9.2\r\ncocoapods-deintegrate : 1.0.2\r\ncocoapods-plugins     : 1.0.0\r\ncocoapods-search      : 1.0.0\r\ncocoapods-stats       : 1.0.0\r\ncocoapods-trunk       : 1.3.1\r\ncocoapods-try         : 1.1.0\r\nslather               : 2.4.6\r\n```\r\n\r\n### Podfile\r\n\r\n```ruby\r\nplatform :ios, '11.0'\r\ninhibit_all_warnings!\r\n\r\nabstract_target 'Shared' do\r\n  pod 'Marshal'\r\n  pod 'KeychainAccess'\r\n  pod 'Alamofire'\r\n  pod 'Swiftilities', :git => 'https://github.com/Raizlabs/Swiftilities', :branch => 'feature/heyltsjay/swift4_2'\r\n\r\n  target 'Example' do\r\n    pod 'BonMot'\r\n    pod 'Anchorage'\r\n\r\n    pod 'Instabug'\r\n    pod 'Crashlytics'\r\n\r\n    pod 'GoogleAnalytics',   '~>3.0'\r\n    \r\n    pod 'SimulatorStatusMagic', :configurations => ['Debug'], :modular_headers => true\r\n\r\n    target 'ExampleTests' do\r\n      inherit! :search_paths\r\n      pod 'OHHTTPStubs/Swift'\r\n    end\r\n  end\r\n\r\n  target 'Services'\r\nend\r\n\r\npod 'SwiftGen'\r\npod 'Sourcery', '~> 0.15.0'\r\npod 'SwiftLint'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/436165468","html_url":"https://github.com/CocoaPods/CocoaPods/issues/8174#issuecomment-436165468","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/8174","id":436165468,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjE2NTQ2OA==","user":{"login":"dnkoutso","id":310370,"node_id":"MDQ6VXNlcjMxMDM3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/310370?v=4","gravatar_id":"","url":"https://api.github.com/users/dnkoutso","html_url":"https://github.com/dnkoutso","followers_url":"https://api.github.com/users/dnkoutso/followers","following_url":"https://api.github.com/users/dnkoutso/following{/other_user}","gists_url":"https://api.github.com/users/dnkoutso/gists{/gist_id}","starred_url":"https://api.github.com/users/dnkoutso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnkoutso/subscriptions","organizations_url":"https://api.github.com/users/dnkoutso/orgs","repos_url":"https://api.github.com/users/dnkoutso/repos","events_url":"https://api.github.com/users/dnkoutso/events{/privacy}","received_events_url":"https://api.github.com/users/dnkoutso/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T08:10:35Z","updated_at":"2018-11-06T08:10:35Z","author_association":"CONTRIBUTOR","body":"thanks @chrisballinger will merge it for 1.6.0"}}
{"actor":{"display_login":"dnkoutso"}}