[DOCS-14950] Can't build tutorial app React Native with JavaScript Created: 23/Nov/21 Updated: 27/Oct/23 Resolved: 23/Nov/21 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | Tutorial |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Diego Freniche Brito | Assignee: | Unassigned |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 2 years, 11 weeks, 1 day ago |
| Description |
|
Hi! Was trying the tutorial here: https://docs.mongodb.com/realm/tutorial/react-native/
Environment:
|
| Comments |
| Comment by Diego Freniche Brito [ 23/Nov/21 ] |
|
Closing because wasn't a real issue, but something happening in my machine |
| Comment by Diego Freniche Brito [ 23/Nov/21 ] |
|
OK, seems that this was my fault I had the React Native Server in other Terminal, and I cloned this repo some time ago (although was up to date, fetched, etc.). I deleted `node_modules` while troubleshooting but that React Native server was still running in the BG. So that should be the issue. To fix: stopped everything, deleted the repo, cloned fresh, now it work.
|
| Comment by Diego Freniche Brito [ 23/Nov/21 ] |
Seems like a linker error:
{{ "realm::util::try_create_fifo(std::_1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&)", referenced from: "realm::util::try_create_fifo(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&)", referenced from: realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&) in libRealmJS.a(external_commit_helper.o) "realm::util::base64_encode(char const*, unsigned long, char*, unsigned long)", referenced from: realm::app::App::make_streaming_request(std::1::shared_ptr<realm::SyncUser>, std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, std::1::vector<realm::bson::Bson, std::1::allocator<realm::bson::Bson> > const&, realm::util::Optional<std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > > const&) const in libRealmJS.a(app.o) "virtual thunk to realm::ConstLstIf<realm::util::Optional<long long> >::avg(unsigned long*) const", referenced from: vtable for realm::Lst<realm::util::Optional<long long> > in libRealmJS.a(thread_safe_reference.o) construction vtable for realm::ConstLstIf<realm::util::Optional<long long> >-in-realm::Lst<realm::util::Optional<long long> > in libRealmJS.a(thread_safe_reference.o) "realm::ConstLstIf<realm::Decimal128>::distinct(std::1::vector<unsigned long, std::1::allocator<unsigned long> >&, realm::util::Optional<bool>) const", referenced from: vtable for realm::Lst<realm::Decimal128> in libRealmJS.a(thread_safe_reference.o) construction vtable for realm::ConstLstIf<realm::Decimal128>-in-realm::Lst<realm::Decimal128> in libRealmJS.a(thread_safe_reference.o) "realm::Obj& realm::Obj::set<realm::Timestamp>(realm::ColKey, realm::Timestamp, bool)", referenced from: void realm::(anonymous namespace)::ValueUpdater<OpaqueJSValue const*, realm::js::NativeAccessor<realm::jsc::Types> >::operator()<realm::Timestamp>(realm::Timestamp*) in libRealmJS.a(jsc_init.o) void realm::(anonymous namespace)::ValueUpdater<OpaqueJSValue const*, realm::js::NativeAccessor<realm::jsc::Types> >::operator()<realm::Timestamp>(realm::Timestamp*) in libRealmJS.a(rpc.o) "realm::Group::validate_primary_columns()", referenced from: realm::ObjectStore::apply_schema_changes(realm::Transaction&, unsigned long long, realm::Schema&, unsigned long long, realm::SchemaMode, std::1::vector<realm::SchemaChange, std::1::allocator<realm::SchemaChange> > const&, std::1::function<void ()>) in libRealmJS.a(object_store.o) "realm::ConstLstIf<realm::util::Optional<realm::ObjectId> >::sort(std::1::vector<unsigned long, std::1::allocator<unsigned long> >&, bool) const", referenced from: vtable for realm::Lst<realm::util::Optional<realm::ObjectId> > in libRealmJS.a(thread_safe_reference.o) construction vtable for realm::ConstLstIf<realm::util::Optional<realm::ObjectId> >-in-realm::Lst<realm::util::Optional<realm::ObjectId> > in libRealmJS.a(thread_safe_reference.o) "virtual thunk to realm::ConstLstIf<double>::distinct(std::1::vector<unsigned long, std::_1::allocator<unsigned long> >&, realm::util::Optional<bool>) const", referenced from: vtable for realm::Lst<double> in libRealmJS.a(thread_safe_reference.o) construction vtable for realm::ConstLstIf<double>-in-realm::Lst<double> in libRealmJS.a(thread_safe_reference.o)ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)}}
The following build commands failed: Ld /Users/dfreniche/Library/Developer/Xcode/DerivedData/rn-dlnrfehtubpewmbnpkymldvcweud/Build/Products/Debug-iphonesimulator/rn.app/rn normal (in target 'rn' from project 'rn')(1 failure)
|