You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Undefined symbols for architecture x86_64:
"typeinfo for facebook::react::PrivateDataBase", referenced from:
std::__1::enable_if<std::is_base_of<facebook::react::PrivateDataBase, facebook::react::JSCExecutor>::value, facebook::react::JSCExecutor>::type* facebook::react::PrivateDataBase::tryCast<facebook::react::JSCExecutor>(void*) in JSCExecutor.o
typeinfo for facebook::react::JSCExecutor in JSCExecutor.o
std::__1::enable_if<std::is_base_of<facebook::react::PrivateDataBase, facebook::react::(anonymous namespace)::JSFunctionPrivateData>::value, facebook::react::(anonymous namespace)::JSFunctionPrivateData>::type* facebook::react::PrivateDataBase::tryCast<facebook::react::(anonymous namespace)::JSFunctionPrivateData>(void*) in JSCHelpers.o
typeinfo for facebook::react::(anonymous namespace)::JSFunctionPrivateData in JSCHelpers.o
"vtable for facebook::react::PrivateDataBase", referenced from:
facebook::react::PrivateDataBase::PrivateDataBase() in JSCExecutor.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"facebook::react::PrivateDataBase::~PrivateDataBase()", referenced from:
facebook::react::JSCExecutor::JSCExecutor(std::__1::shared_ptr<facebook::react::ExecutorDelegate>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, folly::dynamic const&) in JSCExecutor.o
facebook::react::JSCExecutor::~JSCExecutor() in JSCExecutor.o
facebook::react::(anonymous namespace)::JSFunctionPrivateData::~JSFunctionPrivateData() in JSCHelpers.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Solution
I was able to resolve the issue by adding another section to the React.podspec:
I'll create a PR with a fix: I think adding PrivateDatabase as a dependency for jschelpers should solve the issue implicitly. But would like to use this issue to track it, in case there are any other issues as a result.
The text was updated successfully, but these errors were encountered:
notjosh
changed the title
PrivateDatabase.{cpp,h} not included in Podspec
[0.50.0] PrivateDatabase.{cpp,h} not included in Podspec
Nov 3, 2017
Summary:
Resolves#16663.
Walked through the reproduction steps in #16663, but with successful build.
We can also now see the files are included in the `Pods` project:
<img width="236" alt="screen shot 2017-11-03 at 7 43 21 pm" src="https://user-images.githubusercontent.com/33126/32390596-4a06c05c-c0cf-11e7-8616-3ae547f8cca2.png">
(I noticed a subspec called `_ignore_me_subspec_for_linting_` so do we have tests for the podspec?)
[IOS] [BUGFIX] [React.podspec] - Resolves build error about missing symbols for PrivateDatabase.{cpp,h}
Closes#16664
Differential Revision: D6238178
Pulled By: hramos
fbshipit-source-id: b57007ab8c7c8bd0faf1f2f11269a7a2c28183e5
ide
pushed a commit
that referenced
this issue
Nov 4, 2017
Summary:
Resolves#16663.
Walked through the reproduction steps in #16663, but with successful build.
We can also now see the files are included in the `Pods` project:
<img width="236" alt="screen shot 2017-11-03 at 7 43 21 pm" src="https://user-images.githubusercontent.com/33126/32390596-4a06c05c-c0cf-11e7-8616-3ae547f8cca2.png">
(I noticed a subspec called `_ignore_me_subspec_for_linting_` so do we have tests for the podspec?)
[IOS] [BUGFIX] [React.podspec] - Resolves build error about missing symbols for PrivateDatabase.{cpp,h}
Closes#16664
Differential Revision: D6238178
Pulled By: hramos
fbshipit-source-id: b57007ab8c7c8bd0faf1f2f11269a7a2c28183e5
facebook
locked as resolved and limited conversation to collaborators
Nov 3, 2018
Is this a bug report?
Yes.
Have you read the Contributing Guidelines?
Yes.
Environment
Steps to Reproduce
(bundle exec) pod install
to link everything back together with 0.50.0My
Podfile
uses these pods, in case it matters:Expected Behavior
Build should work
Actual Behavior
Build failure, with error:
Solution
I was able to resolve the issue by adding another section to the
React.podspec
:and then adding that to my
Podfile
.I'll create a PR with a fix: I think adding
PrivateDatabase
as a dependency forjschelpers
should solve the issue implicitly. But would like to use this issue to track it, in case there are any other issues as a result.The text was updated successfully, but these errors were encountered: