{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/2074","repository_url":"https://api.github.com/repos/facebook/buck","labels_url":"https://api.github.com/repos/facebook/buck/issues/2074/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/2074/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/2074/events","html_url":"https://github.com/facebook/buck/issues/2074","id":372310059,"node_id":"MDU6SXNzdWUzNzIzMTAwNTk=","number":2074,"title":"[regression] 'no such module' error for '@testable import' in iOS app unit tests ","user":{"login":"mgrebenets","id":350654,"node_id":"MDQ6VXNlcjM1MDY1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/350654?v=4","gravatar_id":"","url":"https://api.github.com/users/mgrebenets","html_url":"https://github.com/mgrebenets","followers_url":"https://api.github.com/users/mgrebenets/followers","following_url":"https://api.github.com/users/mgrebenets/following{/other_user}","gists_url":"https://api.github.com/users/mgrebenets/gists{/gist_id}","starred_url":"https://api.github.com/users/mgrebenets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgrebenets/subscriptions","organizations_url":"https://api.github.com/users/mgrebenets/orgs","repos_url":"https://api.github.com/users/mgrebenets/repos","events_url":"https://api.github.com/users/mgrebenets/events{/privacy}","received_events_url":"https://api.github.com/users/mgrebenets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-21T12:30:55Z","updated_at":"2019-01-02T23:41:00Z","closed_at":null,"author_association":"NONE","body":"So I've a project that has been built successfully with buck before.\r\nThe version of buck was `f09152d`.\r\nRecently I've upgraded buck to commit `e1b8293` and the same project no longer builds.\r\n\r\nThe project is a mix-n-match Swift + ObjC app.\r\nThe Swift code is using some ObjC code via bridging headers.\r\nUnit tests are written in Swift and test the app by using `import AppModule` or `@testable import AppModule`.\r\n\r\nSince upgrading buck to `e1b8293` Swift unit tests can no longer find the host app module and compiler (`swiftc`) command fails with \"no such module AppModule\" error."},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/451019406","html_url":"https://github.com/facebook/buck/issues/2074#issuecomment-451019406","issue_url":"https://api.github.com/repos/facebook/buck/issues/2074","id":451019406,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTAxOTQwNg==","user":{"login":"mgrebenets","id":350654,"node_id":"MDQ6VXNlcjM1MDY1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/350654?v=4","gravatar_id":"","url":"https://api.github.com/users/mgrebenets","html_url":"https://github.com/mgrebenets","followers_url":"https://api.github.com/users/mgrebenets/followers","following_url":"https://api.github.com/users/mgrebenets/following{/other_user}","gists_url":"https://api.github.com/users/mgrebenets/gists{/gist_id}","starred_url":"https://api.github.com/users/mgrebenets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgrebenets/subscriptions","organizations_url":"https://api.github.com/users/mgrebenets/orgs","repos_url":"https://api.github.com/users/mgrebenets/repos","events_url":"https://api.github.com/users/mgrebenets/events{/privacy}","received_events_url":"https://api.github.com/users/mgrebenets/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T23:41:00Z","updated_at":"2019-01-02T23:41:00Z","author_association":"NONE","body":"In the sample I’ve shared, if I capture the `swiftc` command produced by `buckw build tests`, then add `-I buck-out/gen/AppBinary\\#iphonesimulator-x86_64,swift-compile`\r\n\r\nthe compilation then succeeds\r\n\r\n`-I buck-out/gen/AppBinary\\#iphonesimulator-x86_64,swift-compile` is where the following files are sitting:\r\n\r\n```\r\nApp-Swift.h\r\nApp.o\r\nApp.swiftmodule\r\n```\r\n\r\n[build-command-scripts.zip](https://github.com/facebook/buck/files/2722367/build-command-scripts.zip)"}}
{"actor":{"display_login":"mgrebenets"}}