{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/7532","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/7532/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/7532/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/7532/events","html_url":"https://github.com/facebook/react-native/issues/7532","id":154471722,"number":7532,"title":"Undefined symbols for architecture x86_64: “std::terminate()”, referenced from","user":{"login":"deju","id":1439939,"avatar_url":"https://avatars.githubusercontent.com/u/1439939?v=3","gravatar_id":"","url":"https://api.github.com/users/deju","html_url":"https://github.com/deju","followers_url":"https://api.github.com/users/deju/followers","following_url":"https://api.github.com/users/deju/following{/other_user}","gists_url":"https://api.github.com/users/deju/gists{/gist_id}","starred_url":"https://api.github.com/users/deju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deju/subscriptions","organizations_url":"https://api.github.com/users/deju/orgs","repos_url":"https://api.github.com/users/deju/repos","events_url":"https://api.github.com/users/deju/events{/privacy}","received_events_url":"https://api.github.com/users/deju/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-12T12:36:10Z","updated_at":"2016-06-01T16:22:48Z","closed_at":"2016-05-13T15:07:09Z","body":"I got the error when i run `react-native run-ios` after upgraded RN to 0.26.0-rc.  The old version is 0.20\r\n\r\n    Undefined symbols for architecture x86_64:\r\n          \"std::terminate()\", referenced from:\r\n          ___clang_call_terminate in libReact.a(RCTJSCExecutor.o)\r\n      \"___cxa_begin_catch\", referenced from:\r\n          ___clang_call_terminate in libReact.a(RCTJSCExecutor.o)\r\n      \"___gxx_personality_v0\", referenced from:\r\n          -[RCTJavaScriptContext initWithJSContext:onThread:] in libReact.a(RCTJSCExecutor.o)\r\n          -[RCTJavaScriptContext init] in libReact.a(RCTJSCExecutor.o)\r\n          -[RCTJavaScriptContext invalidate] in libReact.a(RCTJSCExecutor.o)\r\n          _RCTNSErrorFromJSError in libReact.a(RCTJSCExecutor.o)\r\n          +[RCTJSCExecutor runRunLoopThread] in libReact.a(RCTJSCExecutor.o)\r\n          -[RCTJSCExecutor init] in libReact.a(RCTJSCExecutor.o)\r\n          -[RCTJSCExecutor context] in libReact.a(RCTJSCExecutor.o)\r\n          ...\r\n    ld: symbol(s) not found for architecture x86_64\r\n    clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n\r\nHow can i fix it?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/223046991","html_url":"https://github.com/facebook/react-native/issues/7532#issuecomment-223046991","issue_url":"https://api.github.com/repos/facebook/react-native/issues/7532","id":223046991,"user":{"login":"mcrowe","id":209362,"avatar_url":"https://avatars.githubusercontent.com/u/209362?v=3","gravatar_id":"","url":"https://api.github.com/users/mcrowe","html_url":"https://github.com/mcrowe","followers_url":"https://api.github.com/users/mcrowe/followers","following_url":"https://api.github.com/users/mcrowe/following{/other_user}","gists_url":"https://api.github.com/users/mcrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/mcrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcrowe/subscriptions","organizations_url":"https://api.github.com/users/mcrowe/orgs","repos_url":"https://api.github.com/users/mcrowe/repos","events_url":"https://api.github.com/users/mcrowe/events{/privacy}","received_events_url":"https://api.github.com/users/mcrowe/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T16:22:48Z","updated_at":"2016-06-01T16:22:48Z","body":"I ran in to this issue as well, and the solution @charpeni proposed solved the issue. To be clear for others, if you are upgrading to 0.26+ then you need to make the following changes.\r\n\r\nIn `ios/YourProject.xcodeproj/project.pbxproj`, look for the two lines like `OTHER_LDFLAGS = \"-ObjC\";`. Replace them with the following:\r\n\r\n```\r\nOTHER_LDFLAGS = (\r\n  \"-ObjC\",\r\n  \"-lc++\",\r\n);\r\n```\r\n\r\nThis is, presumable, because the \"c++\" library is a new dependency of React Native, and needs to be linked when compiling.\r\n\r\nFor what it's worth, `react-native upgrade` is a pretty painful tool to use to discover things like this. On any non-trivial app you can't say \"yes\" to any of the proposed changes. Instead, you are stuck deciphering diffs and trying to figure out what changes you actually need to make. It would be crazy useful to have changes like this called out in the changelog for new releases. Of course, I know you guys are working hard and busy kicking ass..."}}
{"actor":{"display_login":"mcrowe"}}