{"action":"created","issue":{"url":"https://api.github.com/repos/theos/theos/issues/157","repository_url":"https://api.github.com/repos/theos/theos","labels_url":"https://api.github.com/repos/theos/theos/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/theos/theos/issues/157/comments","events_url":"https://api.github.com/repos/theos/theos/issues/157/events","html_url":"https://github.com/theos/theos/issues/157","id":154067214,"number":157,"title":"Why linker error would not show on older theos? ","user":{"login":"r-plus","id":425216,"avatar_url":"https://avatars.githubusercontent.com/u/425216?v=3","gravatar_id":"","url":"https://api.github.com/users/r-plus","html_url":"https://github.com/r-plus","followers_url":"https://api.github.com/users/r-plus/followers","following_url":"https://api.github.com/users/r-plus/following{/other_user}","gists_url":"https://api.github.com/users/r-plus/gists{/gist_id}","starred_url":"https://api.github.com/users/r-plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-plus/subscriptions","organizations_url":"https://api.github.com/users/r-plus/orgs","repos_url":"https://api.github.com/users/r-plus/repos","events_url":"https://api.github.com/users/r-plus/events{/privacy}","received_events_url":"https://api.github.com/users/r-plus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T17:51:28Z","updated_at":"2016-05-11T08:13:08Z","closed_at":null,"body":"This is just technical question, not problem.\r\n\r\nI recently switched to latest theos from older theos(330c79022bccab58c09f85d907c92e1c0e989200).\r\nI saw below linker error on my project build.\r\n\r\n```\r\nUndefined symbols for architecture armv7:\r\n  \"_WTFCrash\", referenced from:\r\n      StringImpl::characters8() const in OTB.xm.eef8dbff.o\r\n      StringImpl::characters16() const in OTB.xm.eef8dbff.o\r\n  \"_WTFReportAssertionFailure\", referenced from:\r\n      StringImpl::characters8() const in OTB.xm.eef8dbff.o\r\n      StringImpl::characters16() const in OTB.xm.eef8dbff.o\r\nld: symbol(s) not found for architecture armv7\r\n```\r\n\r\nThat symbols contains JavaScriptCore framework, so I add it to makefile then solved error.\r\n\r\n```\r\n$ find ${THEOS}/sdks -name \"*.tbd\" | xargs grep -l WTFCrash\r\n/opt/theos/sdks/iPhoneOS9.2.sdk/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore.tbd\r\n```\r\n\r\nWhy linking phase is succeed without link to JavaScriptCore framework when using older theos?"},"comment":{"url":"https://api.github.com/repos/theos/theos/issues/comments/218391654","html_url":"https://github.com/theos/theos/issues/157#issuecomment-218391654","issue_url":"https://api.github.com/repos/theos/theos/issues/157","id":218391654,"user":{"login":"kirb","id":773309,"avatar_url":"https://avatars.githubusercontent.com/u/773309?v=3","gravatar_id":"","url":"https://api.github.com/users/kirb","html_url":"https://github.com/kirb","followers_url":"https://api.github.com/users/kirb/followers","following_url":"https://api.github.com/users/kirb/following{/other_user}","gists_url":"https://api.github.com/users/kirb/gists{/gist_id}","starred_url":"https://api.github.com/users/kirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirb/subscriptions","organizations_url":"https://api.github.com/users/kirb/orgs","repos_url":"https://api.github.com/users/kirb/repos","events_url":"https://api.github.com/users/kirb/events{/privacy}","received_events_url":"https://api.github.com/users/kirb/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T08:13:08Z","updated_at":"2016-05-11T08:13:08Z","body":"Support for clang modules was added several months ago. With modules on, `#import <JavaScriptCore/JavaScriptCore.h>` is internally translated to `@import JavaScriptCore;` which imports it as a module. Importing a module also implicitly links against it.\r\n\r\nXcode has had modules enabled for some time, and Swift exclusively only supports importing modules (not headers)."}}