I have a React-Native application. I did eject from expo and now trying to build my app for iOS. But always when try to run the project I have the same error: Undefined symbols for architecture x64_x86
![enter image description here]()
What can I do to fix this problem? Is it XCode problem or some pod/packages error?
Pod file looks like this:
require_relative '../node_modules/react-native/scripts/react_native_pods'require_relative '../node_modules/react-native-unimodules/cocoapods.rb'require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'platform :ios, '11.0'target '' do use_unimodules! config = use_native_modules! use_react_native!(:path => config["reactNativePath"]) use_frameworks! pod 'WebimClientLibrary', :git => 'https://github.com/webim/webim-client-sdk-ios.git', :tag => '3.34.4' $static_framework = ['FirebaseCore', 'FirebaseCoreDiagnostics', 'GoogleDataTransportCCTSupport', 'GoogleDataTransport', 'FirebaseInstanceID' ] pre_install do |installer| Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {} installer.pod_targets.each do |pod| if $static_framework.include?(pod.name) def pod.build_type; Pod::BuildType.static_library end end end end post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES' end end end # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable these next few lines. # use_flipper! # post_install do |installer| # flipper_post_install(installer) # endend
package.json
{"scripts": {"start": "react-native start","android": "react-native run-android","ios": "react-native run-ios","web": "expo start --web","eject": "expo eject" },"dependencies": {"@react-native-community/viewpager": "4.2.0","@tradle/react-native-http": "^2.0.0","assert": "^1.1.1","axios": "^0.18.0","browserify-zlib": "~0.1.4","buffer": "^4.9.1","console-browserify": "^1.1.0","constants-browserify": "^1.0.0","dns.js": "^1.0.1","domain-browser": "^1.1.1","events": "^1.0.0","expo": "~40.0.0","expo-app-loading": "^1.0.1","expo-firebase-analytics": "~2.6.0","expo-firebase-core": "~1.3.0","expo-image-picker": "^10.1.4","expo-linear-gradient": "~8.4.0","expo-notifications": "~0.8.2","expo-splash-screen": "~0.10.2","expo-status-bar": "~1.0.3","global": "^4.4.0","https-browserify": "~0.0.0","mime-db": "^1.36.0","moment": "2.22.2","path-browserify": "0.0.0","prop-types": "^15.7.2","punycode": "^1.2.4","querystring-es3": "~0.2.0","react": "16.13.1","react-dom": "16.13.1","react-native": "~0.63.4","react-native-crypto": "^2.2.0","react-native-datepicker-dialog": "^0.0.9","react-native-gesture-handler": "~1.10.2","react-native-invertible-scroll-view": "^1.1.1","react-native-level-fs": "^3.0.0","react-native-maps": "0.27.1","react-native-masked-text": "1.7.2","react-native-os": "^1.0.1","react-native-randombytes": "^3.0.0","react-native-reanimated": "~2.1.0","react-native-screens": "~3.0.0","react-native-simple-dialogs": "1.2.0","react-native-size-matters": "^0.1.4","react-native-status-bar-height": "^2.3.1","react-native-tcp": "^3.2.1","react-native-udp": "^2.1.0","react-native-unimodules": "~0.13.3","react-native-web": "~0.13.12","react-navigation": "^3.13.0","react-redux": "^5.0.7","readable-stream": "1.0.33","redux": "^3.7.2","redux-logger": "^3.0.6","redux-persist": "^5.9.1","redux-thunk": "^2.2.0","rxjs": "^6.6.7","rxjs-compat": "^6.6.7","stream-browserify": "^1.0.0","string_decoder": "~0.10.25","timers-browserify": "^1.0.1","tty-browserify": "0.0.0","url": "~0.10.1","util": "~0.10.3","vm-browserify": "0.0.4" },"devDependencies": {"@babel/core": "^7.9.0","babel-jest": "~25.2.6","jest": "~25.2.6","react-test-renderer": "~16.13.1","rn-nodeify": "tradle/rn-nodeify" },"private": true,"name": "debtors-app","version": "1.0.0","react-native": {"zlib": "browserify-zlib","console": "console-browserify","constants": "constants-browserify","crypto": "react-native-crypto","dns": "dns.js","net": "react-native-tcp","domain": "domain-browser","http": "@tradle/react-native-http","https": "https-browserify","os": "react-native-os","path": "path-browserify","querystring": "querystring-es3","fs": "react-native-level-fs","_stream_transform": "readable-stream/transform","_stream_readable": "readable-stream/readable","_stream_writable": "readable-stream/writable","_stream_duplex": "readable-stream/duplex","_stream_passthrough": "readable-stream/passthrough","dgram": "react-native-udp","stream": "stream-browserify","timers": "timers-browserify","tty": "tty-browserify","vm": "vm-browserify","tls": false },"browser": {"zlib": "browserify-zlib","console": "console-browserify","constants": "constants-browserify","crypto": "react-native-crypto","dns": "dns.js","net": "react-native-tcp","domain": "domain-browser","http": "@tradle/react-native-http","https": "https-browserify","os": "react-native-os","path": "path-browserify","querystring": "querystring-es3","fs": "react-native-level-fs","_stream_transform": "readable-stream/transform","_stream_readable": "readable-stream/readable","_stream_writable": "readable-stream/writable","_stream_duplex": "readable-stream/duplex","_stream_passthrough": "readable-stream/passthrough","dgram": "react-native-udp","stream": "stream-browserify","timers": "timers-browserify","tty": "tty-browserify","vm": "vm-browserify","tls": false }}