realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.72k stars 564 forks source link

iOS build fail on realm@hermes version 10.20.0-beta.0 #4239

Closed manarfalah closed 2 years ago

manarfalah commented 2 years ago

How frequently does the bug occur?

All the time

Description

after installing hermes version, ios build started to fail

package.json:

{
  "name": "AgrouScoutMobile",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "adb reverse tcp:8081 tcp:8081 && react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
    "test-env": "ENVFILE=.env.test",
    "dev-env": "ENVFILE=.env.development",
    "prod-env": "ENVFILE=.env.production",
    "android-test": "wdio run config/wdio.android.app.conf.ts --watch",
    "ios-test": "wdio run config/wdio.ios.app.conf.ts --watch"
  },
  "dependencies": {
    "@aws-sdk/client-cloudwatch-logs": "^3.45.0",
    "@dudigital/react-native-zoomable-view": "^1.1.3",
    "@heap/react-native-heap": "^0.17.1",
    "@invertase/react-native-apple-authentication": "^2.1.5",
    "@react-native-async-storage/async-storage": "^1.15.14",
    "@react-native-community/art": "^1.2.0",
    "@react-native-community/geolocation": "^2.0.2",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-community/netinfo": "^7.1.7",
    "@react-native-community/progress-view": "^1.3.1",
    "@react-native-community/push-notification-ios": "^1.10.1",
    "@react-native-google-signin/google-signin": "^7.0.4",
    "@react-native-mapbox-gl/maps": "^8.5.0",
    "@react-navigation/native": "^6.0.6",
    "@realm/react": "^0.1.0",
    "@segment/analytics-react-native": "^1.5.0",
    "@shaman123/react-native-scroll-view": "^1.4.72",
    "@turf/circle": "^6.5.0",
    "@turf/turf": "^6.5.0",
    "@types/axios": "^0.14.0",
    "@types/lodash": "^4.14.178",
    "@types/react-redux": "^7.1.21",
    "@types/redux-form": "^8.3.3",
    "@types/redux-logger": "^3.0.9",
    "appcenter": "4.3.0",
    "appcenter-analytics": "4.3.0",
    "appcenter-crashes": "4.3.0",
    "appium": "^1.22.2",
    "axios": "^0.24.0",
    "crossroads": "^0.12.2",
    "i18n-js": "^3.8.0",
    "lodash": "^4.17.21",
    "lottie-ios": "^3.2.3",
    "lottie-react-native": "^5.0.1",
    "lpf": "^1.0.0",
    "moment": "^2.29.1",
    "native-base": "^3.3.0",
    "react": "17.0.2",
    "react-native": "0.66.4",
    "react-native-actions-sheet": "^0.5.8",
    "react-native-appsflyer": "^6.4.40",
    "react-native-async-image-animated": "^4.3.0",
    "react-native-background-fetch": "^4.0.4",
    "react-native-border-zoom-view": "^1.0.4",
    "react-native-calendars": "^1.1274.0",
    "react-native-camera": "4.2.1",
    "react-native-canvas": "^0.1.38",
    "react-native-config": "^1.4.5",
    "react-native-device-info": "^8.4.8",
    "react-native-drawer": "^2.5.1",
    "react-native-easy-view-transformer": "^1.2.0",
    "react-native-elements": "^3.4.2",
    "react-native-exception-handler": "^2.10.10",
    "react-native-exif": "^0.5.0",
    "react-native-fbsdk-next": "^6.2.0",
    "react-native-fs": "^2.18.0",
    "react-native-gesture-handler": "^1.8.0",
    "react-native-gesture-view": "^0.2.1",
    "react-native-get-random-values": "^1.7.2",
    "react-native-image-crop-picker": "^0.37.2",
    "react-native-image-picker": "^4.6.1",
    "react-native-intercom": "^21.1.1",
    "react-native-keychain": "^8.0.0",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-lottie-loader": "1.0.0",
    "react-native-modal": "^13.0.0",
    "react-native-orientation-locker": "^1.4.0",
    "react-native-pinch-zoom-view": "^0.2.0",
    "react-native-progress": "^5.0.0",
    "react-native-push-notification": "^8.1.1",
    "react-native-reanimated": "^2.2.4",
    "react-native-rotate-component": "^1.0.6",
    "react-native-router-flux": "^4.3.1",
    "react-native-safe-area-context": "^3.1.8",
    "react-native-screens": "^3.10.1",
    "react-native-sensors": "^7.3.3",
    "react-native-share": "^7.3.2",
    "react-native-sound": "^0.11.1",
    "react-native-svg": "^12.1.0",
    "react-native-svg-pan-zoom": "^0.1.2",
    "react-native-swiper": "^1.6.0",
    "react-native-system-setting": "^1.7.6",
    "react-native-typescript-geojson": "0.0.4",
    "react-native-url-polyfill": "^1.3.0",
    "react-native-vector-icons": "^9.0.0",
    "react-native-webview": "^11.15.0",
    "react-native-zoom-view": "^1.0.2",
    "react-navigation": "^4.4.4",
    "react-redux": "^7.2.6",
    "realm": "^10.20.0-beta.0",
    "redux": "^4.1.2",
    "redux-form": "^8.3.8",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.4.1",
    "rn-fetch-blob": "^0.12.0",
    "sha1": "^1.1.1"
  },
  "devDependencies": {
    "@babel/core": "^7.16.7",
    "@babel/preset-typescript": "^7.16.7",
    "@babel/runtime": "^7.16.7",
    "@react-native-community/eslint-config": "^3.0.1",
    "@types/chai": "^4.3.0",
    "@types/crossroads": "^0.0.30",
    "@types/jest": "^27.4.0",
    "@types/mocha": "^9.0.0",
    "@types/node": "^17.0.7",
    "@types/react-native": "^0.63.2",
    "@types/react-native-dotenv": "^0.2.0",
    "@types/react-native-fbsdk": "^3.0.1",
    "@types/react-native-push-notification": "^7.3.3",
    "@types/react-native-share": "^3.3.3",
    "@types/react-test-renderer": "17.0.1",
    "@typescript-eslint/eslint-plugin": "^5.9.0",
    "@typescript-eslint/parser": "^5.9.0",
    "@wdio/allure-reporter": "^7.16.11",
    "@wdio/appium-service": "^7.16.11",
    "@wdio/cli": "^7.16.12",
    "@wdio/local-runner": "^7.16.12",
    "@wdio/mocha-framework": "^7.16.11",
    "@wdio/selenium-standalone-service": "^7.16.11",
    "@wdio/spec-reporter": "^7.16.11",
    "babel-jest": "^27.4.5",
    "babel-preset-react-native": "^4.0.1",
    "chai": "^4.3.4",
    "eslint": "^8.6.0",
    "jest": "^27.4.5",
    "jetifier": "^2.0.0",
    "metro-react-native-babel-preset": "^0.66.2",
    "mocha": "^9.1.3",
    "react-test-renderer": "17.0.2",
    "ts-node": "^10.4.0",
    "tslint": "^6.1.3",
    "typescript": "^4.5.4"
  },
  "jest": {
    "preset": "react-native",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  },
  "rnpm": {
    "assets": [
      "./src/assets/fonts/"
    ]
  }
}

podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'
pod 'GoogleTagManager', '~> 6.0'
pod 'Analytics', '~> 4.1'
pod 'Heap', '~>8.0'
$ReactNativeMapboxGLIOSVersion = '~> 6.2.1'

target 'AgrouScoutMobile' do
  config = use_native_modules!
  use_react_native!(:path => config["reactNativePath"])
  pod 'Intercom'

  pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'

  target 'AgrouScoutMobileTests' do
    inherit! :complete
    # Pods for testing
  end

  use_frameworks!
  use_native_modules!
  use_modular_headers!
end

target 'AgrouScoutMobile-tvOS' do
  # Pods for AgrouScoutMobile-tvOS

  target 'AgrouScoutMobile-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Stacktrace & log output

{code:shell} Ld /Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobile-fykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/RealmJS/RealmJS.framework/RealmJS normal (in target 'RealmJS' from project 'Pods') cd /Users/agroscoutagroscout/agroscoutmobile/ios/Pods /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ target arm64apple-ios9.0 dynamiclib ~~isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk ~~L/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobile--fykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/RealmJS ~~L/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobile-fykipyrqdoqequeqpysaewtovkjz/Build/Products/Debugiphoneos/XCFrameworkIntermediates/RealmJS ~~F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/RealmJS F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/DoubleConversion F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/FBReactNativeSpec F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/RCT-Folly F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/RCTTypeSafety F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-Core F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTAnimation F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTBlob F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTImage F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTLinking F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTNetwork F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTSettings F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTText F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-RCTVibration F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-cxxreact F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-jsi F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-jsiexecutor F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-jsinspector F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-logger F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-perflogger F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/ReactCommon F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/Yoga F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/fmt F/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/glog -F/Users/agroscoutagroscout/agroscoutmobile/ios/Pods/../../node_modules/realm/react-native/ios filelist /Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/RealmJS.build/Objects-normal/arm64/RealmJS.LinkFileList -install_name @rpath/RealmJS.framework/RealmJS Xlinker rpath Xlinker @executable_path/Frameworks -Xlinker ~~rpath Xlinker @loader_path/Frameworks~~ dead_strip Xlinker ~~object_path_lto ~~Xlinker /Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobile--fykipyrqdoqequeqpysaewtovkjz/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/RealmJS.build/Objectsnormal/arm64/RealmJS_lto.o Xlinker ~~export_dynamic ~~Xlinker no_deduplicate fembed--bitcode-marker ~~stdlib\=libc++ ~~fobjc--arc fobjc--link-runtime ~~lc++ ~~lrealm--js-ios lz framework React framework Foundation framework React compatibility_version 1 current_version 1 Xlinker dependency_info ~~Xlinker /Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobilefykipyrqdoqequeqpysaewtovkjz/Build/Intermediates.noindex/Pods.build/Debugiphoneos/RealmJS.build/Objectsnormal/arm64/RealmJS_dependency_info.dat o /Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobile-fykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug~~iphoneos/RealmJS/RealmJS.framework/RealmJS

ld: warning: dylib (/Users/agroscoutagroscout/Library/Developer/Xcode/DerivedData/AgrouScoutMobile-fykipyrqdoqequeqpysaewtovkjz/Build/Products/Debug-iphoneos/React-Core/React.framework/React) was built for newer iOS version (11.0) than being linked (9.0) Undefined symbols for architecture arm64: "typeinfo for facebook::jsi::HostObject", referenced from: typeinfo for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::weak_ptr, std::1::default_delete<std::1::weak_ptr > > > in librealm-js-ios.a(jsi_init.o) typeinfo for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::shared_ptr, std::__1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) typeinfo for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::shared_ptr, std::1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) typeinfo for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Results, std::1::default_delete<realm::js::Results > > > in librealm-js-ios.a(jsi_init.o) typeinfo for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::List, std::1::default_delete<realm::js::List > > > in librealm-js-ios.a(jsi_init.o) typeinfo for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Set, std::1::default_delete<realm::js::Set > > > in librealm-js-ios.a(jsi_init.o) typeinfo for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Dictionary, std::1::default_delete<realm::js::Dictionary > > > in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::HostObject::get(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&)", referenced from: vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::weak_ptr, std::__1::default_delete<std::1::weak_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::shared_ptr, std::1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::shared_ptr, std::__1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Results, std::1::default_delete<realm::js::Results > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::List, std::1::default_delete<realm::js::List > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Set, std::1::default_delete<realm::js::Set > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Dictionary, std::1::default_delete<realm::js::Dictionary > > > in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::HostObject::getPropertyNames(facebook::jsi::Runtime&)", referenced from: vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::weak_ptr, std::1::default_delete<std::1::weak_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::shared_ptr, std::__1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::shared_ptr, std::1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Results, std::1::default_delete<realm::js::Results > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::List, std::1::default_delete<realm::js::List > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Set, std::1::default_delete<realm::js::Set > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Dictionary, std::1::default_delete<realm::js::Dictionary > > > in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::Object::asArray(facebook::jsi::Runtime&) const &", referenced from: realm::js::Object::get_property(realm::js::JsiEnv, realm::js::JsiObj const&, unsigned int) in librealm-js-ios.a(jsi_init.o) realm::js::Object::set_property(realm::js::JsiEnv, realm::js::JsiObj&, unsigned int, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) "facebook::jsi::Value::asObject(facebook::jsi::Runtime&) const &", referenced from: realm::js::Value::to_binary(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::to_object(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::validated_to_function(realm::js::JsiEnv, realm::js::JsiVal const&, char const) in librealm-js-ios.a(jsi_init.o) realm::js::SyncClass::populate_sync_config_for_ssl(realm::js::JsiEnv, realm::js::JsiObj, realm::SyncConfig&) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::SessionClass >::create_instance(realm::js::JsiEnv, std::__1::weak_ptr) in librealm-js-ios.a(jsi_init.o) std::__1::unique_ptr<realm::js::User, std::1::default_delete<realm::js::User > >& realm::js::realmjsi::unwrap<std::1::unique_ptr<realm::js::User, std::__1::default_delete<realm::js::User > > >(realm::js::JsiEnv, facebook::jsi::Value const&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::to_object_id(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::HostObject::~HostObject()", referenced from: realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::weak_ptr, std::__1::default_delete<std::1::weak_ptr > > >::~Wrapper() in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::weak_ptr, std::1::default_delete<std::1::weak_ptr > > >::~Wrapper() in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::shared_ptr, std::__1::default_delete<std::1::shared_ptr > > >::~Wrapper() in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::shared_ptr, std::1::default_delete<std::1::shared_ptr > > >::~Wrapper() in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::shared_ptr, std::__1::default_delete<std::1::shared_ptr > > >::~Wrapper() in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::shared_ptr, std::1::default_delete<std::1::shared_ptr > > >::~Wrapper() in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Results, std::1::default_delete<realm::js::Results > > >::~Wrapper() in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::Value::toString(facebook::jsi::Runtime&) const", referenced from: realm::js::Value::validated_to_string(realm::js::JsiEnv, realm::js::JsiVal const&, char const) in librealm-js-ios.a(jsi_init.o) realm::js::Value::validated_to_binary(realm::js::JsiEnv, realm::js::JsiVal const&, char const) in librealm-js-ios.a(jsi_init.o) realm::js::Value::validated_to_object(realm::js::JsiEnv, realm::js::JsiVal const&, char const) in librealm-js-ios.a(jsi_init.o) realm::js::Value::to_boolean(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::validated_to_function(realm::js::JsiEnv, realm::js::JsiVal const&, char const) in librealm-js-ios.a(jsi_init.o) realm::js::SyncClass::populate_sync_config_for_ssl(realm::js::JsiEnv, realm::js::JsiObj, realm::SyncConfig&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::validated_to_number(realm::js::JsiEnv, realm::js::JsiVal const&, char const*) in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::HostObject::set(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&, facebook::jsi::Value const&)", referenced from: vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::weak_ptr, std::__1::default_delete<std::1::weak_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::__1::shared_ptr, std::1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<std::1::shared_ptr, std::__1::default_delete<std::1::shared_ptr > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Results, std::1::default_delete<realm::js::Results > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::List, std::1::default_delete<realm::js::List > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Set, std::1::default_delete<realm::js::Set > > > in librealm-js-ios.a(jsi_init.o) vtable for realm::js::realmjsi::Wrapper<std::1::unique_ptr<realm::js::Dictionary, std::1::default_delete<realm::js::Dictionary > > > in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::Value::Value(facebook::jsi::Runtime&, facebook::jsi::Value const&)", referenced from: realm::js::realmjsi::ObjectWrap<realm::js::ObservableClass >::create_constructor(realm::js::JsiEnv)::'lambda'(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long)::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) const in librealm-js-ios.a(jsi_init.o) realm::js::Arguments::Arguments(realm::js::JsiEnv, unsigned long, facebook::jsi::Value const)::'lambda'()::operator()() const in librealm-js-ios.a(jsi_init.o) realm::js::JsiWrap<facebook::jsi::Value, realm::js::JsiVal>::JsiWrap(realm::js::JsiWrap<facebook::jsi::Value, realm::js::JsiVal> const&) in librealm-js-ios.a(jsi_init.o) facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass::schema_version(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments&, realm::js::ReturnValue&))>(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass::clear_test_state(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments&, realm::js::ReturnValue&))>(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass::copy_bundled_realm_files(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments&, realm::js::ReturnValue&))>(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass::delete_file(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments&, realm::js::ReturnValue&))>(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) ... "typeinfo for facebook::jsi::JSError", referenced from: realm::js::realmjsi::ObjectWrap<realm::js::ObservableClass >::readonly_setter_callback(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long, std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::ObservableClass >::readonly_index_setter_callback(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::RealmClass >::readonly_setter_callback(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long, std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::RealmClass >::readonly_index_setter_callback(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) realm::js::Value::to_object(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::to_boolean(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::UserClass >::get_internal(realm::js::JsiEnv, realm::js::JsiObj const&) in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::Value::asNumber() const", referenced from: realm::js::Value::to_binary(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::to_boolean(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) realm::js::Value::to_number(realm::js::JsiEnv, realm::js::JsiVal const&) in librealm-js-ios.a(jsi_init.o) facebook::jsi::Value realm::js::wrap<&(realm::js::ListClass::get_index(realm::js::JsiEnv, realm::js::JsiObj, unsigned int, realm::js::ReturnValue&))>(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) facebook::jsi::Value realm::js::wrap<&(realm::js::ListClass::set_index(realm::js::JsiEnv, realm::js::JsiObj, unsigned int, realm::js::JsiVal))>(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) facebook::jsi::Value realm::js::wrap<&(realm::js::ResultsClass::get_index(realm::js::JsiEnv, realm::js::JsiObj, unsigned int, realm::js::ReturnValue&))>(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const, unsigned long) in librealm-js-ios.a(jsi_init.o) "facebook::jsi::Value::Value(facebook::jsi::Value&&)", referenced from: realm::js::RealmClass::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::ObservableClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::RealmClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::CollectionClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::ListClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::SetClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::DictionaryClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::Pointer::operator=(facebook::jsi::Pointer&&)", referenced from: realm::js::realmjsi::ObjectWrap<realm::js::ObservableClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::RealmClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::CollectionClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::ListClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::SetClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::DictionaryClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) realm::js::realmjsi::ObjectWrap<realm::js::RealmObjectClass >::create_constructor(realm::js::JsiEnv) in librealm-js-ios.a(jsi_init.o) ... "facebook::jsi::Object::getPropertyAsObject(fac

takameyer commented 2 years ago

@manarfalah Due to the large amount of dependencies, some of which seem to require some additional configuration, I was not able to build a simple app with your package.json or Podfile. However, there are two suspicious lines in your Podfile:

  use_frameworks!
  use_modular_headers!

Even in a simple app, if I have either of those directives active, I cannot build. Can you try building without those two lines?

manarfalah commented 2 years ago

@takameyer tried to remove these two lines and the build is failing with the same errors

takameyer commented 2 years ago

@manarfalah are you using an M1 mac? (arm64). In that case I think you may be missing a snippet of code in your Podfile from RN 66 upgrade:

post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
end

Please try adding that snippet for the AgrouScoutMobile target and do a complete reinstall of your pods. Let us know if that helps.

manarfalah commented 2 years ago

@takameyer worked after removing these two lines and adding the script in pod !, thank you

JaioSkura commented 2 years ago

Hi!

I have same problem in RN 0.67.2. Only failing when relaunching app after been killed, and only sometimes.

Here my podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'vehoo' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  target 'vehooTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
 use_flipper!()

# post_install do |installer|
#   react_native_post_install(installer)
#   __apply_Xcode_12_5_M1_post_install_workaround(installer)
# end
end

Do you see something strange?

thanks!

kneth commented 2 years ago

@JaioSkura Which Realm JS version do you use?

JaioSkura commented 2 years ago

@kneth I am using version 10.20.0-beta.2

kneth commented 2 years ago

@JaioSkura And you applied this trick?

JaioSkura commented 2 years ago

@kneth I try both ways, with that and without that. Anyway, I am not using and M1 macbook, so I should not affect, I am right?