{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/7584","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/7584/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/7584/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/7584/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/7584","id":311513904,"node_id":"MDU6SXNzdWUzMTE1MTM5MDQ=","number":7584,"title":"[1.5.0, static libs] error: clang importer creation failed","user":{"login":"ileitch","id":48235,"node_id":"MDQ6VXNlcjQ4MjM1","avatar_url":"https://avatars0.githubusercontent.com/u/48235?v=4","gravatar_id":"","url":"https://api.github.com/users/ileitch","html_url":"https://github.com/ileitch","followers_url":"https://api.github.com/users/ileitch/followers","following_url":"https://api.github.com/users/ileitch/following{/other_user}","gists_url":"https://api.github.com/users/ileitch/gists{/gist_id}","starred_url":"https://api.github.com/users/ileitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ileitch/subscriptions","organizations_url":"https://api.github.com/users/ileitch/orgs","repos_url":"https://api.github.com/users/ileitch/repos","events_url":"https://api.github.com/users/ileitch/events{/privacy}","received_events_url":"https://api.github.com/users/ileitch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-04-05T08:18:47Z","updated_at":"2018-06-21T12:46:49Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nℹ Please fill out this template when filing an issue.\r\nAll lines beginning with an ℹ symbol instruct you with\r\nwhat info we expect.  \r\n\r\nBefore you start, are you using the latest CocoaPods release?\r\nA lot changes with Xcode releases that are not backwards compatible.\r\n\r\nNot an issue about the CocoaPods command line app? Please file an issue in the appropriate repo - https://github.com/CocoaPods\r\nIssues are for feature requests, and bugs; questions should go to Stack Overflow\r\n\r\nUsing CocoaPods <= 0.39: http://blog.cocoapods.org/Sharding/\r\n\r\nUsing Xcode 8: Requires CocoaPods 1.1.0 or above.\r\n\r\nIssue with Nanaimo not loading:\r\nPlease run `[sudo] gem uninstall nanaimo` and remove all but the latest version.\r\n\r\nIssues with `pod search`? Try deleting your cache `rm -rf ~/Library/Caches/CocoaPods`first.\r\n-->\r\n\r\n* [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\n* Upgraded to 1.5.0.\r\n* Replaced `use_frameworks!` with `use_modular_headers!`\r\n* Attempted to build project\r\n\r\n## What did you expect to happen?\r\n\r\nProject to build successfully.\r\n\r\nThis likely boils down to me not fully understanding what's provided by 1.5.0, and what's a reasonable expectation of what should work.\r\n\r\nShould ObjC only pods that don't define modules work with `use_modular_headers!` or `modular_headers: true`?\r\n\r\n## What happened instead?\r\n\r\nIt failed with:\r\n\r\n```\r\nfatal error: module file '/Users/ian/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1MWTDSZ8NISE8/SDWebImage-1Y8VYVOQXGM1N.pcm' is out of date and needs to be rebuilt: signature mismatch\r\nnote: imported by module 'TTCore' in '/Users/ian/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1MWTDSZ8NISE8/TTCore-A8NIWDK1HD28.pcm'\r\nnote: imported by '/Users/ian/Library/Developer/Xcode/DerivedData/Thumbtack-ffzmalvhznxtrccncwsuvfbyfypt/Build/Intermediates.noindex/PrecompiledHeaders/Bowtie-Bridging-Header-swift_244F9XG3HH0VT-clang_1MWTDSZ8NISE8.pch'\r\n<unknown>:0: error: module 'SDWebImage' in AST file '/Users/ian/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1MWTDSZ8NISE8/SDWebImage-1Y8VYVOQXGM1N.pcm' (imported by AST file '/Users/ian/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1MWTDSZ8NISE8/TTCore-A8NIWDK1HD28.pcm') is not defined in any loaded module map file; maybe you need to load '/Users/ian/code/tt/ios/TTKit/../Pods/Headers/Public/SDWebImage/SDWebImage.modulemap'?\r\n<unknown>:0: note: imported by module 'TTCore' in '/Users/ian/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1MWTDSZ8NISE8/TTCore-A8NIWDK1HD28.pcm'\r\n<unknown>:0: note: imported by '/Users/ian/Library/Developer/Xcode/DerivedData/Thumbtack-ffzmalvhznxtrccncwsuvfbyfypt/Build/Intermediates.noindex/PrecompiledHeaders/Bowtie-Bridging-Header-swift_244F9XG3HH0VT-clang_1MWTDSZ8NISE8.pch'\r\n<unknown>:0: error: clang importer creation failed\r\n```\r\n\r\n## CocoaPods Environment\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.5.0\r\n        Ruby : ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]\r\n    RubyGems : 2.7.3\r\n        Host : Mac OS X 10.13.4 (17E199)\r\n       Xcode : 9.3 (9E145)\r\n         Git : git version 2.17.0\r\nRuby lib dir : /Users/ian/.rvm/rubies/ruby-2.5.0/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ 1eb06261763a3514193e5764a0cfdf8d909b553b\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /Users/ian/.rvm/gems/ruby-2.5.0@tt-ios/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-keys        : 2.0.0\r\ncocoapods-plugins     : 1.0.0\r\ncocoapods-search      : 1.0.0\r\ncocoapods-stats       : 1.0.0\r\ncocoapods-trunk       : 1.3.0\r\ncocoapods-try         : 1.1.0\r\nslather               : 2.4.4\r\n```\r\n\r\n### Podfile\r\n\r\nYeah, not posting that - too many internal details.\r\nThe offending pod in question is `SDWebImage` at version `3.8.2`, though I get the above error for any ObjC pod.\r\n\r\n## Project that demonstrates the issue\r\n\r\nWill provide if needed.\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/399091246","html_url":"https://github.com/CocoaPods/CocoaPods/issues/7584#issuecomment-399091246","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/7584","id":399091246,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTA5MTI0Ng==","user":{"login":"swasta","id":5530878,"node_id":"MDQ6VXNlcjU1MzA4Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/5530878?v=4","gravatar_id":"","url":"https://api.github.com/users/swasta","html_url":"https://github.com/swasta","followers_url":"https://api.github.com/users/swasta/followers","following_url":"https://api.github.com/users/swasta/following{/other_user}","gists_url":"https://api.github.com/users/swasta/gists{/gist_id}","starred_url":"https://api.github.com/users/swasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swasta/subscriptions","organizations_url":"https://api.github.com/users/swasta/orgs","repos_url":"https://api.github.com/users/swasta/repos","events_url":"https://api.github.com/users/swasta/events{/privacy}","received_events_url":"https://api.github.com/users/swasta/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T12:46:48Z","updated_at":"2018-06-21T12:46:48Z","author_association":"NONE","body":"@krze thanks for your input! Could you please clarify some details of your solution, as I've faced the same issue recently? If I get you right, the workaround is to replace\r\n```objective-c\r\n@import MyFramework\r\n```\r\nin obj-c files in my application with exact headers, declared in the umbrella header of MyFramework, like this\r\n\r\n```objective-c\r\n#import <RequiredClassHeaderFromMyFramework.h>\r\n```\r\nBut what if I need to access not Obj-C, but Swift class/protocol from MyFramework? I cannot import the whole framework with `@import MyFramework` due to bug, so do I have any other options? I tried to import `#import <MyFramework/MyFramework-Swift.h>` to get an access to swift files from my framework, but then I see \"File not found\" error, although such import was fine when using `use_frameworks!` instead of `use_modular_headers`!\r\n\r\nAny thoughts would be appreciated!"}}
{"actor":{"display_login":"swasta"}}