Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all 17385 articles
Browse latest View live

Xcode build error "option '-p, --packages ' argument missing"

$
0
0

I'm trying to build a react-native app and load it onto an iPhone simulator.

When I try to build with the Xcode (14.2) build button, it quickly fails and spits out the following error:

option '-p, --packages <packages...>' argument missing

When I try to build by running Metro bundler via 'npm react-native start' in my terminal and then following up with the option to "run on ios" by typing "i", it gets stuck for over an hour and counting (with no errors) on the following line:

CreateBuildDirectory /Users/emidac/Library/Developer/Xcode/DerivedData/AppTrackerTechnicalInterview-dzbptdkaecwmhlbdmrzuhgqtzjau/Build/Products/Debug-iphonesimulator/R

Any help would be GREATLY APPRECIATED!

p.s. I already tried to clean the build folder, remove and reinstall node modules, retry pod install, restart xcode, restart my computer etc AND npx react-native doctor outputs 5 green checkmarks and no errors for iOS


Crashing to init react-native ios app with web page

$
0
0

My application only loads one web page, but it is taking about 10 to 15 seconds to load the first time after installation, which caused Apple to reject my submission. My application was made in react-native.

I'm getting the returns in the compilation:

Warning: -[BETextInput attributedMarkedText] is unimplemented

WebContent process (0x11b01c680) took 1.044328 seconds to launch

Failed to request allowed query parameters from WebPrivacy.

My code:

import React, {useEffect, useState} from 'react';import {View, Text, StyleSheet, SafeAreaView, BackHandler} from 'react-native';import {WebView} from 'react-native-webview';export default function App() {  const [isLoading, setIsLoading] = useState(true);  useEffect(() => {    BackHandler.addEventListener('backPress', () => true);    return () => BackHandler.removeEventListener('backPress', () => true);  }, []);  const handleLoad = () => {    setIsLoading(false);  };  return (<SafeAreaView style={styles.container}><WebView        source={{uri: 'https://www.google.com'}}        style={styles.webView}        onLoad={handleLoad}      />      {isLoading && (<View style={styles.loadingContainer}><Text style={styles.loadingText}>Carregando...</Text></View>      )}</SafeAreaView>  );}const styles = StyleSheet.create({  container: {    flex: 1,  },  webView: {    flex: 1,  },  loadingContainer: {    ...StyleSheet.absoluteFillObject,    justifyContent: 'center',    alignItems: 'center',    backgroundColor: 'rgba(0, 0, 0, 0.5)',  },  loadingText: {    fontSize: 20,    color: 'white',  },});

I tried change my url, but it's not work.I remove my function to loading my web page and the erros and it was working, but i need use the functions.

Xcode device Unavailable, runtime profile not found

$
0
0

In the following environment:

Xcode 8.3.2react-native-cli 2.0.1react-native: 0.44.0macOS Sierra 10.12.5

Just updated Xcode and macOS to run React Native and keep on practicing as I was some days ago... but everytime I try to run:

react-native run-ios

I get the error:

Scanning 555 folders for symlinks in /Users/juangarcia/projects/react-tests/CountDown/node_modules (6ms)Found Xcode project CountDown.xcodeprojCould not find iPhone 6 simulator

I try to see the list of devices available and I get:

~/projects/react-tests/CountDownSample » xcrun simctl list devices== Devices ==-- iOS 10.3 ---- tvOS 10.2 --    Apple TV 1080p (323FA90C-0366-4B5B-AEEE-D0477C61762A) (Shutdown)-- watchOS 3.2 --    Apple Watch - 38mm (F42C0C0D-325B-41DD-948D-E44B0A08B951) (Shutdown)    Apple Watch - 42mm (75D8BAF1-27CB-47EE-9EE3-D400B962F8BC) (Shutdown)    Apple Watch Series 2 - 38mm (64D01BD4-5C37-4885-A73A-52479D9CCF4F) (Shutdown)    Apple Watch Series 2 - 42mm (8471C9FD-BCF3-4DDC-B386-F17E128C5EB1) (Shutdown)-- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-9-3 --    iPhone 4s (1FF2D0D3-F136-43A7-8148-7B1849A7B1E3) (Shutdown) (unavailable, runtime profile not found)    iPhone 5 (859D4D90-F1B5-4DE8-B976-6984F85CAFE3) (Shutdown) (unavailable, runtime profile not found)    iPhone 5s (5B2AD8CD-9B3F-413C-BF16-FA96F807BB2B) (Shutdown) (unavailable, runtime profile not found)    iPhone 6 (2573D214-4371-47A8-BFF6-3341862954E0) (Shutdown) (unavailable, runtime profile not found)    iPhone 6 Plus (8916CD9B-4D8B-463F-8583-75A2CE4F61FD) (Shutdown) (unavailable, runtime profile not found)    iPhone 6s (41093980-7912-4F98-9D06-981A533FAAFE) (Shutdown) (unavailable, runtime profile not found)    iPhone 6s Plus (6A85D2AE-D867-4341-979C-FEE8308DE93E) (Shutdown) (unavailable, runtime profile not found)    iPad 2 (BFBB5477-B6D9-48C3-B529-516D2D9105A7) (Shutdown) (unavailable, runtime profile not found)    iPad Retina (C49B5920-F4FF-4D7F-AA74-7AE2367FF09D) (Shutdown) (unavailable, runtime profile not found)    iPad Air (4101FC8E-D8B9-4496-AD2B-1484661C15DE) (Shutdown) (unavailable, runtime profile not found)    iPad Air 2 (9952B05C-829F-428F-AC76-EB1F8FB55D72) (Shutdown) (unavailable, runtime profile not found)    iPad Pro (735082E2-4470-4D9A-BAA1-BEDA8426B725) (Shutdown) (unavailable, runtime profile not found)-- Unavailable: com.apple.CoreSimulator.SimRuntime.tvOS-9-2 --    Apple TV 1080p (AD48DE24-6295-4EFC-9787-A9B5D8118503) (Shutdown) (unavailable, runtime profile not found)-- Unavailable: com.apple.CoreSimulator.SimRuntime.watchOS-2-2 --    Apple Watch - 38mm (C3F2A7C3-3967-4159-9B79-13CBA63E399E) (Shutdown) (unavailable, runtime profile not found)    Apple Watch - 42mm (656005A9-7555-4872-A7FB-FB6BCB65139C) (Shutdown) (unavailable, runtime profile not found)

react takes by default Iphone 6 to work with, and it is not available

how can I make it available again? and why did this happen?

WMS Layer does not load on ios

$
0
0

We're using rnmapbox/maps in our react-native project. After updating from a very old version 10.0.0-rc.0 to 10.1.20 the loading of the WMS layers we are using in the map broke for ios. It works perfectly fine for android.

On ios it does neither work in the simulator nor on the device itself.

The errors we get in the simulator (ios 17.2):

[MapboxCommon] [Error, maps-core]: {}[Style]: Failed to load tile 14/8648/5733=>14 for source rasterSource:[MapboxCommon] [Error, maps-core]: {}[Style]: Failed to load tile 14/8648/5734=>14 for source rasterSource: ERROR  Mapbox [error] MapLoad error Failed to load tile: ERROR  Mapbox [error] MapLoad error Failed to load tile:[MapboxCommon] [Error, maps-core]: {}[Style]: Failed to load tile 15/17298/11466=>15 for source rasterSource:[MapboxCommon] [Error, maps-core]: {}[Style]: Failed to load tile 15/17297/11466=>15 for source rasterSource: ERROR  Mapbox [error] MapLoad error Failed to load tile: ERROR  Mapbox [error] MapLoad error Failed to load tile:

This is how we add the WMS source to the map inside the Mapview component:

<MapboxGL.RasterSource          key="rasterSource"          id="rasterSource"          tileSize={256}          tileUrlTemplates={['https://vogis.cnv.at/mapserver/mapserv?map=i_luftbilder_r_wms.map&service=WMS&request=GetMap&version=1.3.0&crs=EPSG:3857&bbox={bbox-epsg-3857}&dpiMode=7&format=image/png&layers=ef2022_10cm&width=256&height=256&transparent=true',          ]}><MapboxGL.RasterLayer id="rasterLayer" sourceID="rasterSource" style="" /></MapboxGL.RasterSource>

Anyone experienced a similar issue or has any idea what could be the underlying problem?

How to setup debugging in Visual Studio Code for React Native?

$
0
0

I searched but I can't find any external sources except for Visual Studio Code docs, and just following those docs doesn't allow me to debug React Native apps both in iOS and Android.

I keep getting the error message (this one for Android, for iOS, is similar:

[vscode-react-native] [Warning] Couldn't import script athttp://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false.Debugging won't work: Try reloading the JS from inside the app, orReconnect the VS Code debugger: path must be a string

My launch.json file as:

{"version": "0.2.0","configurations": [        {"name": "Debug Android","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "android","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        },        {"name": "Debug iOS","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "ios","target": "iPhone 6s","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        },        {"name": "Attach to packager","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "attach","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        },        {"name": "Debug in Exponent","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "exponent","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        }    ]}

I'm trying to debug both in the iOS simulator and in an Android device but the process never attaches to the external JS debugger.

iOS App built with SDK 16.1 but base SDK set to 14.0 in Xcode?

$
0
0

Got an email from Apple to bump the sdk version and in the email they say "This app was built with the iOS 16.1 SDK.".

However, in Xcode (15.2) I see that

  • iOS Deployment Target = 14.0
  • Minimum deployments (IOS) = 14.0
  • Podfile platform :ios, '14.0'

How is it building with 16.1 and not 14.0?

Note: the app is built with React Native, but i don't think it should change anything.

how to recover space from Xcode and Android Studio on Mac

$
0
0

I'm taking a beginner's course on iOS/Android development using React Native. My system is a 2018 Macbook Pro running Ventura 13.6.6. After installing the required developer tools I had over 110 GB of available space on the internal SSD.

I'm working with a simple "Hello World!" app. Each time I launch the Simulators, I see roughly 10 GB of available space disappear, as reported by the status bar of an open Finder window. When I close the simulators the space isn’t immediately recovered. On occasion, when I restart my machine I see some of it recovered, but there is a cumulative loss over just a few sessions. I have roughly 58 GB remaining. I've lost over 52 GB so far — all for one tiny, useless project! Where did it go? My progress will be cut short if I don't find the cause and solution soon.

I have already deleted the Xcode cache. It was only reporting about 3.5 GB and deleting it didn’t save me any space. (It did solve a problem where the OS was reporting "unable to build simulator" for whatever reason.)

My steps are to:

  • launch the iOS and Android Simulators
  • run npx react-native run-ios to load the app into the iOS simulator
  • press a to open the app in the Android.

It’s the most reliable way I’ve found to get the apps to display in both without errors.

Getting ##[error]Error: The process '/usr/bin/xcodebuild' failed with exit code 65 for azure pipeline for iOS app with Onesignal extension

$
0
0

I am having issues in running pipeline for react native - iOS app as I get below error:Provisioning profile "MainTargetName" has app ID "com.xyz.-", which does not match the bundle ID "com.xyz.-.OneSignalNotificationServiceExtension". (in target 'OneSignalNotificationServiceExtension' from project 'ProjectName')

I tried to create exportOptions.plist with below values but still face same issue

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>compileBitcode</key><false/><key>destination</key><string>export</string><key>method</key><string>ad-hoc</string><key>provisioningProfiles</key><dict><key>bundleid</key><string>name</string><key>com.c.OneSignalNotificationServiceExtension</key><string>name_onesignal</string></dict><key>signingCertificate</key><string></string><key>signingStyle</key><string>manual</string><key>stripSwiftSymbols</key><true/><key>teamID</key><string></string><key>thinning</key><string>&lt;none&gt;</string></dict></plist>```

New React Native project - ios pod install - Invalid `Podfile` file: cannot load such file

$
0
0

I’ve created a new React Native project using the recommended template, but when I try to install pods for this new project, I get the following error:

[!] Invalid `Podfile` file: cannot load such file -- /Users/..../AwesomeProject/node_modules/react-native/scripts/react_native_pods.rb

My Podfile:

# Resolve react_native_pods.rb with node to allow for hoistingrequire Pod::Executable.execute_command('node', ['-p','require.resolve("react-native/scripts/react_native_pods.rb",    {paths: [process.argv[1]]},  )', __dir__]).stripplatform :ios, min_ios_version_supportedprepare_react_native_project!linkage = ENV['USE_FRAMEWORKS']if linkage != nil  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green  use_frameworks! :linkage => linkage.to_symendtarget 'AwesomeProject' do  config = use_native_modules!  use_react_native!(    :path => config[:reactNativePath],    # An absolute path to your application root.    :app_path => "#{Pod::Config.instance.installation_root}/.."  )  target 'AwesomeProjectTests' do    inherit! :complete    # Pods for testing  end  post_install do |installer|    # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202    react_native_post_install(      installer,      config[:reactNativePath],      :mac_catalyst_enabled => false,      # :ccache_enabled => true    )  endend

node -v: 21.6.1pod version: 1.15.2

I checked that the react_native_pods.rb is present in the node_modules ... react-native/scripts/react_native_pods.rb

Tried to use both yarn and default npm, both gives the error above (tried cleaning cache).npm audit fix also didn't` helped.

Tried reinstalling pods via brew reinstall cocoapods but got the same error when used pod install in ios folder of React Native project.

Installing pods via bundle exec pod install doesn't help either.

Strangest thing is that I was able to install pods for all my projects 2 weeks ago. But when I am doing it now, without changing anything in my OS system, I cannot install pods even in the new created project by npx react-native@latest init AwesomeProject.

React Native ios build : Can't find node

$
0
0

I have a prototype ready to go and the project is jammed with build:

error: Can't find 'node' binary to build React Native bundle If you have non-standard nodejs installation, select your project in Xcode, find 'Build Phases' - 'Bundle React Native code and images' and change NODE_BINARY to absolute path to your node executable (you can find it by invoking 'which node' in the terminal)

this feedback is helpless for me, i do have node with nvm. is this something related to bash?

Get current scroll position of ScrollView in React Native

$
0
0

Is it possible to get the current scroll position, or the current page of a <ScrollView> component in React Native?

So something like:

<ScrollView  horizontal={true}  pagingEnabled={true}  onScrollAnimationEnd={() => {       // get this scrollview's current page or x/y scroll position  }}>  this.state.data.map(function(e, i) { <ImageCt key={i}></ImageCt>   })</ScrollView>

Is it possible to keep a persistent background job on iOS and Android?

$
0
0

I have requirement that I'm unsure about the possibility of. It's an app that has a indefinitely ran background job on iOS and Android that periodically check if the phone is in a geofence zone (Polygon of set coordinates). I've researched this and have discovered some edgecases, such as the behaviour of background jobs if the phone is restarted, app crashed, background job is killed by the OS (It's after all checking GPS coordinates every few seconds).

I have discovered the following package that seems promising: https://github.com/transistorsoft/react-native-background-geolocation

But I haven't discovered a verified test case that of this working flawlessly (It's business critical that it's flawless and ran at all times once the app is installed). So my question is if this is actually possible? If not what are some alternative ways, an external device that is hooked through e.g BLE?

I've tried:

  1. Tried to identify packages that solved this, found the following but unfortunately crashed the app before I could verify: https://github.com/transistorsoft/react-native-background-geolocation
  2. Researched edgecases and possibilities with such background geofence functionalities

React Native - TextInput Freezing on Typing in iOS 17 - Release build (React Native 0.73.6)

$
0
0

I am experiencing a critical issue with a React Native application running on iOS 17. Specifically, the application freezes whenever I type into a TextInput. The app is built using React Native version 0.73.6.

Here are the details of the problem:

The freezing occurs only when typing into a TextInput component.

I have this HOC <CustomInput />:

  const [isBlur, setIsBlur] = useState(false);  const [isFocus, setIsFocus] = useState(false);  const myRef = React.createRef();  const inputElementRef = React.createRef<HTMLDivElement>();  useEffect(() => {    if (inputElementRef.current) {      inputElementRef.current.setNativeProps({        style: {          fontFamily: 'Poppins-Light',        },      });    }  }, []);  return (<TextInput            ref={inputElementRef}            editable={!notEditable}            onFocus={() => {              onFocus && onFocus();              setIsBlur(false);              setIsFocus(true);            }}            onBlur={() => {              onBlur && onBlur();              setIsBlur(true);              setIsFocus(false);            }}            selection={!isBlur && isStep3 && {start: 0, end: 0}}            placeholderTextColor={colors.darkerGrey}            multiline={isMultiline}            numberOfLines={              isMultiline                ? numberOfLines                  ? numberOfLines                  : isStep3                  ? 1                  : 4                : 1            }            scrollEnabled={isMultiline ? false : true}            keyboardType={keyboardType}            autoCorrect={autoCorrect}            secureTextEntry={passwordType}            placeholder={placeholder}            value={value}            maxLength={maxLength}            onChangeText={(e) => {              if (onlyNumbers) {                if (/^\d+$/.test(e.toString()) || e.toString() === '') {                  onChange(e);                }              } else {                onChange(e);              }            }}            style={[              styles.textInput,              isMultiline                ? borderRadius                  ? {borderRadius: borderRadius}                  : isStep3                  ? styles.roundedBorder                  : styles.simpleBorder                : styles.roundedBorder,              ,              isMultiline && isStep3                ? styles.step3LineHeight                : styles.multilineHeight,              ,              isMultiline && isFocus && styles.applyPadding,              ,              backgroundColor === 'grey' ? styles.backgroundGrey : [],            ]}          />

And in another components I include the <CustomInput /> like so:

<CustomInput                    required                    title={'Name'}                    placeholder={nameStart}                    value={name}                    onPressFocus={true}                    onFocus={() => {                      this.setState({name: nameStart, editing: true});                    }}                    onChange={(e) => {                      this.setState({name: e, nameStart: e}, () => {                        this.checkForErrors();                        this.checkForChange();                      });                    }}                    onBlur={() => {                      this.checkForErrors();                      this.setState({name: ''});                    }}                    icon={                      errors.nameStart ? (<Material style={styles.errorIcon} name="error" />                      ) : (<Material                          name="mode-edit"                          style={[                            styles.editIcon,                            getPrimaryColor(storeStyles),                          ]}                        />

This issue is happening on my iOS 17 device; in earlier versions of iOS I didn't test this behavior.

The problem does not occur in the debug build; it only appears in the release build.

I have tried various troubleshooting steps, including updating dependencies and testing with different configurations of the TextInput component.

I tried to change the component to be as simple as this:

const [text, onChangeText] = React.useState('Some Text');  return (<TextInput        style={styles.input}        onChangeText={onChangeText}        value={text}      />

And the freezing still occurs.

Has anyone else encountered this problem, or have any solutions been found for similar issues?

Any advice on how to troubleshoot or resolve this issue would be greatly appreciated.

Thank you in advance!

Why are my custom fonts in React Native reverting to system fonts when app is pulled into foreground?

$
0
0

I have a relatively small app, a couple of views managed by a StackNavigator.

I have three custom fonts (TTF), used throughout the app.

The app works fine on the simulator for both Android and iOS - custom fonts display as expected.

I have now begun submitting my app to TestFlight and running it on device - two separate iPhones, so far.

When first loaded, the app works as expected and the fonts display correctly.

However, when the app goes into the background, and then is pulled into the foreground again, the fonts revert back to system fonts. (The page that is pulled from background actually looks correct, it is when the stack switches to another view that those fonts are incorrect.)

If I force close the app, then relaunch, everything is fine again until the next time it goes into the background.

Any thoughts on why these resources are not displaying?

cannot read property handleSetJSResponder of null error in react native v0.70.3

$
0
0

I have updgraded my React Native version to 0.70.3 from 0.64.2 and accordingly upgraded the packages.

When running the debugging(react-native run-ios) for IOS, the above error is occurring on react-native-gesture-handler. If you have any method to fix this or any advice please share with me.

Added all the details(code,screenshots) to check in-detailed,Thanks in advance.

Please help me in reolving the issue by sharing the sample code or steps for resolving.

Below are the list of packages used in the project,

{"name": "projectSetup","version": "0.0.1","private": true,"scripts": {"android": "react-native run-android","ios": "react-native run-ios","start": "react-native start","test": "jest","lint": "eslint"  },"dependencies": {"@react-native-async-storage/async-storage": "^1.17.10","@react-native-community/cli": "^9.2.1","@react-native-community/datetimepicker": "^6.5.2","@react-native-community/masked-view": "^0.1.11","@react-native-community/netinfo": "^9.3.5","@react-native-masked-view/masked-view": "^0.2.8","axios": "^1.1.3","lodash": "^4.17.21","react": "18.1.0","react-native": "^0.70.3","react-native-android-location-enabler": "^1.2.2","react-native-calendars": "^1.1275.0","react-native-camera": "^4.2.1","react-native-device-info": "^10.2.1","react-native-elements": "^3.4.2","react-native-fast-image": "^8.6.1","react-native-flexbox-grid": "^0.3.2","react-native-geocoding": "^0.5.0","react-native-geolocation-service": "^5.3.1","react-native-gesture-handler": "^2.7.1","react-native-image-crop-picker": "^0.38.0","react-native-image-pan-zoom": "^2.1.12","react-native-image-picker": "^4.10.0","react-native-maps": "^1.3.2","react-native-month-selector": "^1.4.0","react-native-onesignal": "^4.4.1","react-native-paper": "^4.12.5","react-native-qrcode-scanner": "^1.5.5","react-native-reanimated": "^2.11.0","react-native-safe-area-context": "^3.4.1","react-native-screens": "^3.18.2","react-native-signature-capture": "^0.4.12","react-native-sound": "^0.11.2","react-native-sound-player": "^0.13.2","react-native-svg": "^13.4.0","react-native-vector-icons": "^9.2.0","react-native-view-pdf": "^0.14.0","react-native-webview": "^11.23.1","react-navigation": "^4.4.4","react-navigation-stack": "^2.10.4","react-redux": "^7.1.1","redux": "^4.2.0","redux-logger": "^3.0.6","redux-thunk": "^2.4.1","rn-fetch-blob": "^0.12.0","socket.io-client": "^4.5.3"  },"devDependencies": {"@babel/core": "^7.12.9","@babel/runtime": "^7.12.5","@react-native-community/eslint-config": "^2.0.0","babel-jest": "^26.6.3","eslint": "^7.32.0","jest": "^26.6.3","metro-react-native-babel-preset": "0.72.3","react-test-renderer": "18.1.0"  },"jest": {"preset": "react-native"  }}

App.js code

import React from "react";import {View, Text, StyleSheet, LogBox, TouchableOpacity} from "react-native";class App extends React.Component {    render() {        return (<View style={{flex:1}}><TouchableOpacity                    onPress={()=> {                        Alert.alert('Hello...', 'kk')                    }}                    style={{height:200,backgroundColor:'red',alignItems:'center',justifyContent:'center'}}><Text>Welcome Praveen</Text></TouchableOpacity></View>        );    }}export default App;

**ERROR [react-native-gesture-handler] react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..).

For installation instructions, please refer to https://docs.swmansion.com/react-native-gesture-handler/docs/#installation**

Output of npx react-native-info

info Fetching system and libraries information...System:    OS: macOS 13.0    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz    Memory: 37.48 MB / 16.00 GB    Shell: 5.8.1 - /bin/zsh  Binaries:    Node: 18.10.0 - /usr/local/bin/node    Yarn: 1.22.19 - ~/node_modules/.bin/yarn    npm: 8.19.2 - /usr/local/bin/npm    Watchman: 2022.10.03.00 - /usr/local/bin/watchman  Managers:    CocoaPods: 1.11.3 - /usr/local/bin/pod  SDKs:    iOS SDK:      Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0    Android SDK: Not Found  IDEs:    Android Studio: 2021.3 AI-213.7172.25.2113.9014738    Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild  Languages:    Java: 11.0.16.1 - /usr/bin/javac  npmPackages:    @react-native-community/cli: ^9.2.1 => 9.2.1     react: 18.1.0 => 18.1.0     react-native: ^0.70.3 => 0.70.4     react-native-macos: Not Found  npmGlobalPackages:    *react-native*: Not Found

enter image description here

enter image description here

enter image description here


React Native: Exception thrown while executing UI block

$
0
0

I'm building an iOS react-native app, and I'm currently using the react-native-swipe-card package to build "tinder" like swipe cards for my app. The app works fine however when I go to swipe a card left or right, and let it go while it's halfway off the screen I'm getting the following error:

ExceptionsManager.js:71 Exception thrown while executing UI block: -[NSNull floatValue]: unrecognized selector sent to instance 0x1075b5130

enter image description here

Installing hermes-engine (0.71.2) got stuck react native

$
0
0

I have created a new react native project and then install npm , run command bundle install and then then cd iOS pod install but it got stuck on

Installing React-perflogger (0.71.2)Installing React-runtimeexecutor (0.71.2)Installing ReactCommon (0.71.2)Installing SocketRocket (0.6.0)Installing TOCropViewController (2.6.1)Installing Yoga (1.14.0)Installing YogaKit (1.18.1)Installing boost (1.76.0)Installing fmt (6.2.1)Installing glog (0.3.5)Installing hermes-engine (0.71.2)

here is my package.json file

{"name": "ApproverApp","version": "0.0.1","private": true,"scripts": {"android": "react-native run-android","ios": "react-native run-ios","lint": "eslint .","start": "react-native start","test": "jest"  },"dependencies": {"@react-native-async-storage/async-storage": "^1.16.1","@react-navigation/bottom-tabs": "^6.2.0","@react-navigation/drawer": "^6.5.5","@react-navigation/native": "^6.0.8","@react-navigation/native-stack": "^6.5.0","@reduxjs/toolkit": "^1.8.0","axios": "^0.26.1","css-to-react-native": "^3.0.0","lodash": "^4.17.21","mime": "^3.0.0","moment": "^2.29.1","native-base": "^3.3.7","react": "18.2.0","react-native": "0.71.2","react-native-calendars": "^1.1279.0","react-native-date-picker": "^4.2.0","react-native-dialog": "^9.2.1","react-native-document-picker": "^8.0.0","react-native-gesture-handler": "^2.3.0","react-native-image-crop-picker": "^0.37.3","react-native-modal": "^13.0.1","react-native-permissions": "^3.3.1","react-native-popup-menu": "^0.15.12","react-native-reanimated": "^2.4.1","react-native-responsive-fontsize": "^0.5.1","react-native-responsive-screen": "^1.4.2","react-native-safe-area-context": "^4.1.2","react-native-screens": "^3.13.1","react-native-size-matters": "^0.4.0","react-native-svg": "^12.3.0","react-native-svg-transformer": "^1.0.0","react-native-swipe-list-view": "^3.2.9","react-native-vector-icons": "^9.1.0","react-redux": "^7.2.6","redux": "^4.1.2","redux-persist": "^6.0.0","redux-thunk": "^2.4.1"  },"devDependencies": {"@babel/core": "^7.20.0","@babel/preset-env": "^7.20.0","@babel/runtime": "^7.20.0","@react-native-community/eslint-config": "^3.2.0","@tsconfig/react-native": "^2.0.2","@types/jest": "^29.2.1","@types/react": "^18.0.24","@types/react-test-renderer": "^18.0.0","babel-jest": "^29.2.1","eslint": "^8.19.0","jest": "^29.2.1","metro-react-native-babel-preset": "0.73.7","prettier": "^2.4.1","react-test-renderer": "18.2.0","typescript": "4.8.4"  },"jest": {"preset": "react-native"  }}

The following build commands failed: CompileC BUILD FAILED

$
0
0

It was working, I just restarted my computer (iMAC M1) and "pouf"!

(I had no problem before, my App works.)

Here I give you what I get:

CompileC /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/Objects-normal/arm64/AppDelegate.o /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'ReactNativeMobile' from project 'ReactNativeMobile')    cd /Users/[USER]/Desktop/react-native-mobile/ios    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -ivfsstatcache /Users/[USER]/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.4-21E210-aa93b11c43e2d16681ac3fa171344f4f.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/[USER]/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Index.noindex/DataStore @/Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/Objects-normal/arm64/af3fcb34312c57c0f52879cdce924b91-common-args.resp -MMD -MT dependencies -MF /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/Objects-normal/arm64/AppDelegate.d --serialize-diagnostics /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/Objects-normal/arm64/AppDelegate.dia -c /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/AppDelegate.mm -o /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/Objects-normal/arm64/AppDelegate.o -index-unit-output-path /ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/Objects-normal/arm64/AppDelegate.oIn file included from /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/AppDelegate.mm:1:/Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/AppDelegate.h:1:9: fatal error: 'RCTAppDelegate.h' file not found#import <RCTAppDelegate.h>        ^~~~~~~~~~~~~~~~~~1 error generated.CompileStoryboard /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/LaunchScreen.storyboard (in target 'ReactNativeMobile' from project 'ReactNativeMobile')    cd /Users/[USER]/Desktop/react-native-mobile/ios    /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module ReactNativeMobile --output-partial-info-plist /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/LaunchScreen-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 13.4 --output-format human-readable-text --compilation-directory /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/LaunchScreen.storyboardCompileAssetCatalog /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Products/Debug-iphonesimulator/ReactNativeMobile.app /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/Images.xcassets (in target 'ReactNativeMobile' from project 'ReactNativeMobile')    cd /Users/[USER]/Desktop/react-native-mobile/ios    /Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/assetcatalog_dependencies --output-partial-info-plist /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/assetcatalog_generated_info.plist --app-icon AppIcon --compress-pngs --enable-on-demand-resources YES --filter-for-thinning-device-configuration iPhone16,2 --filter-for-device-os-version 17.2 --development-region en --target-device iphone --minimum-deployment-target 13.4 --platform iphonesimulator --compile /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Products/Debug-iphonesimulator/ReactNativeMobile.app /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/Images.xcassets--- xcodebuild: WARNING: Using the first of multiple matching destinations:{ platform:iOS Simulator, id:10488651-8275-4D12-A891-0BC37CE8F11F, OS:17.2, name:iPhone 15 Pro Max }{ platform:iOS Simulator, id:10488651-8275-4D12-A891-0BC37CE8F11F, OS:17.2, name:iPhone 15 Pro Max }** BUILD FAILED **The following build commands failed:    CompileC /Users/[USER]/Library/Developer/Xcode/DerivedData/ReactNativeMobile-dzwwympbnncmhxbpmvkfeqqwcchk/Build/Intermediates.noindex/ReactNativeMobile.build/Debug-iphonesimulator/ReactNativeMobile.build/Objects-normal/arm64/AppDelegate.o /Users/[USER]/Desktop/react-native-mobile/ios/ReactNativeMobile/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'ReactNativeMobile' from project 'ReactNativeMobile')(1 failure)]Node.js v20.9.0

I have no idea what's happen, I have a problem with my computer for sure.

I can say:

  • The project folder have no space.
  • I removed the cache and index of Xcode.
  • Look on Google and ask Chat GPT.
  • I deleted the node_modules folder, package-lock.json file and clean the cache of node, then npm install.
  • Restart my computer again (maybe...)
  • I tried to not use Flipper, maybe I didn't make this good, but I got next error.
  • I started a new project from scratch, same issue.
  • I also tried this: How to fix cocoapod .modulemap file not found

My command: npm run ios -- --simulator="iPhone 15 Pro Max (17.2)"My ReactNative version: "react-native": "0.73.2"My GemFile:

source 'https://rubygems.org'# You may use http://rbenv.org/ or https://rvm.io/ to install and use this versionruby ">= 2.6.10"gem 'cocoapods', '1.15.0'gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'

If I use nom run iOS, I got this error:

info A dev server is already running for this project on port 8081.info Found Xcode workspace "ReactNativeMobile.xcworkspace"info Found booted iPhone, iPhone 15 Pro Maxinfo Building (using "xcodebuild -workspace ReactNativeMobile.xcworkspace -configuration Debug -scheme ReactNativeMobile -destination id=00008020-001138E81178002E")info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor error Failed to build iOS project. "xcodebuild" exited with error code '70'. To debug build logs further, consider building your app with Xcode.app, by opening 'ReactNativeMobile.xcworkspace'.Command line invocation:    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace ReactNativeMobile.xcworkspace -configuration Debug -scheme ReactNativeMobile -destination id=00008020-001138E81178002EUser defaults from command line:    IDEPackageSupportUseBuiltinSCM = YES2024-03-08 19:25:58.943 xcodebuild[5166:64572] Writing error result bundle to /var/folders/ff/8z0rnxqx6k9c6b_cvwb296wm0000gn/T/ResultBundle_2024-08-03_19-25-0058.xcresultxcodebuild: error: Timed out waiting for all destinations matching the provided destination specifier to become available    Available destinations for the "ReactNativeMobile" scheme:        { platform:iOS, arch:arm64, id:00008020-001138E81178002E, name:iPhone, error:iPhone needs to be prepared for development Development services need to be enabled. Ensure that the device is unlocked. }

So, I have no more ideas...

Fatal error building iOS react-native app file not found 'react/renderer/graphics/Float.h'

$
0
0

I use XCode 13.4.1 and react-native 0.73.3. Building my react-native project from XCode, I get the next error in RNReanimated package:

Lexical or Preprocessor Issue:'react/renderer/graphics/Float.h' file not found.  Pods > Development Pods > React-Fabric > core > ComponentDescriptor.h  

If I comment out this line, I get error in other ".h" file not found. It seems like some paths are missing, but I don't know which ones.

This is my Podfile, where I had to add some changes:

    require_relative '../node_modules/react-native/scripts/react_native_pods'    require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'    # Resolve react_native_pods.rb with node to allow for hoisting    require Pod::Executable.execute_command('node', ['-p','require.resolve("react-native/scripts/react_native_pods.rb",        {paths: [process.argv[1]]},      )', __dir__]).strip    platform :ios, '13.4'    prepare_react_native_project!    install! 'cocoapods', :deterministic_uuids => false    linkage = ENV['USE_FRAMEWORKS']    if linkage != nil      Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green      use_frameworks! :linkage => linkage.to_sym    end    target 'MyApplication' do      config = use_native_modules!      # Flags change depending on the env values.      flags = get_default_flags()      use_react_native!(        :path => config[:reactNativePath],        # Hermes is now enabled by default. Disable by setting this flag to false.        # Upcoming versions of React Native may rely on get_default_flags(), but        # we make it explicit here to aid in the React Native upgrade process.        :hermes_enabled => true,        :fabric_enabled => flags[:fabric_enabled],        # Enables Flipper.        #        # Note that if you have use_frameworks! enabled, Flipper will not work and        # you should disable the next line.        :flipper_configuration => FlipperConfiguration.enabled,        # An absolute path to your application root.        :app_path =>"#{Pod::Config.instance.installation_root}/.."      )      pod 'RNFS', :path =>'../node_modules/react-native-fs'      pod 'RNVectorIcons', :path =>'../node_modules/react-native-vector-icons'      pod 'react-native-netinfo', :path =>'../node_modules/@react-native-community/netinfo'      pod 'Firebase', :modular_headers => true      pod 'FirebaseCoreInternal', :modular_headers => true      pod 'GoogleUtilities', :modular_headers => true      pod 'FirebaseCore', :modular_headers => true      target 'MyApplicationTests' do        inherit! :complete        # Pods for testing      end      post_install do |installer|        # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202        react_native_post_install(          installer,          config[:reactNativePath],          :mac_catalyst_enabled => false,          # :ccache_enabled => true        )      end    end

And this is my package.json file, from react-native project:

    {"name": "myapplication","version": "1.6.3","private": true,"scripts": {"android": "react-native run-android","ios": "react-native run-ios","start": "react-native start","test": "jest","lint": "eslint . --ext .js,.jsx,.ts,.tsx","postinstall": "patch-package"      },"dependencies": {"@react-native-community/cli": "^13.6.6","@react-native-community/datetimepicker": "^3.5.2","@react-native-community/masked-view": "^0.1.11","@react-native-community/netinfo": "^6.1.0","@react-native-community/progress-bar-android": "^1.0.4","@react-native-community/progress-view": "^1.3.1","@react-native-firebase/app": "^18.8.0","@react-native-firebase/messaging": "^18.8.0","@react-native-picker/picker": "^1.16.5","@react-native/metro-config": "^0.74.81","@react-navigation/bottom-tabs": "^6.0.1","@react-navigation/native": "^6.0.1","@react-navigation/stack": "^6.0.1","@types/react": "^17","axios": "^1.6.7","deprecated-react-native-prop-types": "^2.3.0","patch-package": "^6.4.7","postinstall-postinstall": "^2.1.0","react": "18.2.0","react-native": "0.73.3","react-native-autocomplete-dropdown": "1.1.6","react-native-barcode-mask": "^1.2.4","react-native-blob-util": "^0.16.2","react-native-bottomsheet": "^2.5.2","react-native-bouncy-checkbox": "^2.1.3","react-native-camera": "^4.2.1","react-native-eject": "^0.1.2","react-native-file-viewer": "^2.1.4","react-native-fs": "^2.18.0","react-native-gesture-handler": "^1.10.3","react-native-gradle-plugin": "^0.71.19","react-native-image-pan-zoom": "^2.1.12","react-native-mmkv": "^2.12.2","react-native-paper": "^4.9.2","react-native-pdf": "^6.6.0","react-native-picker-select": "^8.0.4","react-native-raw-bottom-sheet": "^2.2.0","react-native-reanimated": "^2.2.0","react-native-render-html": "^6.0.5","react-native-safe-area-context": "^3.3.0","react-native-screens": "^3.5.0","react-native-splash-screen": "^3.2.0","react-native-swipe-list-view": "^3.2.9","react-native-swiper": "^1.6.0","react-native-toast-message": "^1.4.9","react-native-vector-icons": "9.2.0","react-native-webview": "^11.6.6","react-native-zip-archive": "^6.0.3","rn-fetch-blob": "^0.12.0","yarn": "^1.22.19"      },"devDependencies": {"@babel/core": "^7.15.0","@babel/runtime": "^7.14.8","@react-native-community/eslint-config": "^3.0.0","@types/jest": "^26.0.24","@types/react-native": "^0.64.12","@types/react-native-vector-icons": "^6.4.8","@types/react-test-renderer": "^17.0.1","babel-jest": "^27.0.6","eslint": "^7.32.0","jest": "^27.0.6","metro-config": "^0.80.5","metro-react-native-babel-preset": "^0.72.1","react-test-renderer": "^18.2.0","typescript": "^4.3.5","yarn-upgrade-all": "^0.5.4"      },"resolutions": {"@types/react": "^17"      },"jest": {"preset": "react-native","moduleFileExtensions": ["ts","tsx","js","jsx","json","node"        ]      },"description": "My custom App","main": "index.js","repository": "","author": "author","license": "Private"    }

I have had to patch RNReanimated.podspec in order to set C++ compiler version:

s.pod_target_xcconfig = {"USE_HEADERMAP" => "YES","HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" ","FRAMEWORK_SEARCH_PATHS" => "\"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes\"","CLANG_CXX_LANGUAGE_STANDARD" => "c++17", <--- I've added this line

}

If I should add any other file in order to solve this issue, please ask me.

React Native IOS Expo test flight build crash on launch

$
0
0

Date/Time: 2024-04-10 17:48:16.6785 +1000Launch Time: 2024-04-10 17:48:16.1961 +1000OS Version: iPhone OS 17.5 (21F5048f)Release Type: BetaBaseband Version: 2.60.00Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Termination Reason: SIGNAL 6 Abort trap: 6Terminating Process: LocalFoxGetJobDone [2919]

Triggered by

Thread: 5

Last Exception Backtrace:0   CoreFoundation                  0x18f43bf24 __exceptionPreprocess + 164 (NSException.m:249)1   libobjc.A.dylib                 0x1872de018 objc_exception_throw + 60 (objc-exception.mm:356)2   LocalFoxGetJobDone              0x100c97c08 RCTFatal + 568 (RCTAssert.m:147)3   LocalFoxGetJobDone              0x100d095d0 -[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:] + 488 (RCTExceptionsManager.mm:82)4   LocalFoxGetJobDone              0x100d09de0 -[RCTExceptionsManager reportException:] + 1304 (RCTExceptionsManager.mm:154)5   CoreFoundation                  0x18f3d8854 __invoking___ + 1486   CoreFoundation                  0x18f3d78a0 -[NSInvocation invoke] + 428 (NSForwarding.m:3411)7   CoreFoundation                  0x18f44e1dc -[NSInvocation invokeWithTarget:] + 64 (NSForwarding.m:3508)8   LocalFoxGetJobDone              0x100cc9548 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 388 (RCTModuleMethod.mm:584)9   LocalFoxGetJobDone              0x100ccb64c facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 456 (RCTNativeModule.mm:196)10  LocalFoxGetJobDone              0x100ccb29c facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const + 68 (RCTNativeModule.mm:113)11  LocalFoxGetJobDone              0x100ccb29c invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 112 (RCTNativeModule.mm:104)12  libdispatch.dylib               0x1972c513c _dispatch_call_block_and_release + 32 (init.c:1530)13  libdispatch.dylib               0x1972c6dd4 _dispatch_client_callout + 20 (object.m:576)14  libdispatch.dylib               0x1972ce400 _dispatch_lane_serial_drain + 748 (queue.c:3900)15  libdispatch.dylib               0x1972cef30 _dispatch_lane_invoke + 380 (queue.c:3991)16  libdispatch.dylib               0x1972d9cb4 _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:6998)17  libdispatch.dylib               0x1972d9528 _dispatch_workloop_worker_thread + 404 (queue.c:6592)18  libsystem_pthread.dylib         0x1ec7de934 _pthread_wqthread + 288 (pthread.c:2696)19  libsystem_pthread.dylib         0x1ec7db0cc start_wqthread + 8Thread 0 name:Thread 0:0   libsystem_kernel.dylib          0x00000001d8a96808 mach_msg2_trap + 81   libsystem_kernel.dylib          0x00000001d8a9a008 mach_msg2_internal + 80 (mach_msg.c:201)2   libsystem_kernel.dylib          0x00000001d8a99f20 mach_msg_overwrite + 436 (mach_msg.c:0)3   libsystem_kernel.dylib          0x00000001d8a99d60 mach_msg + 24 (mach_msg.c:323)4   CoreFoundation                  0x000000018f40bf9c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)5   CoreFoundation                  0x000000018f40b640 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)6   CoreFoundation                  0x000000018f40ad18 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)7   GraphicsServices                0x00000001d487d1a8 GSEventRunModal + 164 (GSEvent.c:2196)8   UIKitCore                       0x0000000191a45fac -[UIApplication _run] + 888 (UIApplication.m:3713)9   UIKitCore                       0x0000000191af9ed8 UIApplicationMain + 340 (UIApplication.m:5303)10  LocalFoxGetJobDone              0x0000000100b2440c main + 80 (main.m:7)11  dyld                            0x00000001b371ce4c start + 2240 (dyldMain.cpp:1298)Thread 1:0   libsystem_pthread.dylib         0x00000001ec7db0c4 start_wqthread + 0Thread 2:0   libsystem_pthread.dylib         0x00000001ec7db0c4 start_wqthread + 0Thread 3:0   libsystem_pthread.dylib         0x00000001ec7db0c4 start_wqthread + 0Thread 4:0   libsystem_pthread.dylib         0x00000001ec7db0c4 start_wqthread + 0Thread 5 name:Thread 5 Crashed:0   libsystem_kernel.dylib          0x00000001d8aa142c __pthread_kill + 81   libsystem_pthread.dylib         0x00000001ec7e1c0c pthread_kill + 268 (pthread.c:1721)2   libsystem_c.dylib               0x000000019737fba0 abort + 180 (abort.c:118)3   libc++abi.dylib                 0x00000001ec600ca4 abort_message + 132 (abort_message.cpp:78)4   libc++abi.dylib                 0x00000001ec5f0e5c demangling_terminate_handler() + 348 (cxa_default_handlers.cpp:77)5   libobjc.A.dylib                 0x00000001872f9e2c _objc_terminate() + 144 (objc-exception.mm:496)6   libc++abi.dylib                 0x00000001ec600068 std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:59)7   libc++abi.dylib                 0x00000001ec60000c std::terminate() + 108 (cxa_handlers.cpp:88)8   libdispatch.dylib               0x00000001972c6de8 _dispatch_client_callout + 40 (object.m:579)9   libdispatch.dylib               0x00000001972ce400 _dispatch_lane_serial_drain + 748 (queue.c:3900)10  libdispatch.dylib               0x00000001972cef30 _dispatch_lane_invoke + 380 (queue.c:3991)11  libdispatch.dylib               0x00000001972d9cb4 _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:6998)12  libdispatch.dylib               0x00000001972d9528 _dispatch_workloop_worker_thread + 404 (queue.c:6592)13  libsystem_pthread.dylib         0x00000001ec7de934 _pthread_wqthread + 288 (pthread.c:2696)14  libsystem_pthread.dylib         0x00000001ec7db0cc start_wqthread + 8Thread 6:0   libsystem_pthread.dylib         0x00000001ec7db0c4 start_wqthread + 0Thread 7 name:Thread 7:0   libsystem_kernel.dylib          0x00000001d8a96808 mach_msg2_trap + 81   libsystem_kernel.dylib          0x00000001d8a9a008 mach_msg2_internal + 80 (mach_msg.c:201)2   libsystem_kernel.dylib          0x00000001d8a99f20 mach_msg_overwrite + 436 (mach_msg.c:0)3   libsystem_kernel.dylib          0x00000001d8a99d60 mach_msg + 24 (mach_msg.c:323)4   CoreFoundation                  0x000000018f40bf9c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)5   CoreFoundation                  0x000000018f40b640 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)6   CoreFoundation                  0x000000018f40ad18 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)7   Foundation                      0x000000018e32ce4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)8   Foundation                      0x000000018e32cc9c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420)9   UIKitCore                       0x0000000191a59ce0 -[UIEventFetcher threadMain] + 420 (UIEventFetcher.m:1207)10  Foundation                      0x000000018e343718 __NSThread__start__ + 732 (NSThread.m:991)11  libsystem_pthread.dylib         0x00000001ec7e006c _pthread_start + 136 (pthread.c:931)12  libsystem_pthread.dylib         0x00000001ec7db0d8 thread_start + 8Thread 8 name:Thread 8:0   libsystem_kernel.dylib          0x00000001d8a96808 mach_msg2_trap + 81   libsystem_kernel.dylib          0x00000001d8a9a008 mach_msg2_internal + 80 (mach_msg.c:201)2   libsystem_kernel.dylib          0x00000001d8a99f20 mach_msg_overwrite + 436 (mach_msg.c:0)3   libsystem_kernel.dylib          0x00000001d8a99d60 mach_msg + 24 (mach_msg.c:323)4   CoreFoundation                  0x000000018f40bf9c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)5   CoreFoundation                  0x000000018f40b640 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)6   CoreFoundation                  0x000000018f40ad18 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)7   LocalFoxGetJobDone              0x0000000100cabc38 +[RCTCxxBridge runRunLoop] + 212 (RCTCxxBridge.mm:332)8   Foundation                      0x000000018e343718 __NSThread__start__ + 732 (NSThread.m:991)9   libsystem_pthread.dylib         0x00000001ec7e006c _pthread_start + 136 (pthread.c:931)10  libsystem_pthread.dylib         0x00000001ec7db0d8 thread_start + 8Thread 9 name:Thread 9:0   libsystem_kernel.dylib          0x00000001d8a9c1cc __psynch_cvwait + 81   libsystem_pthread.dylib         0x00000001ec7dd6e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)2   libc++.1.dylib                  0x000000019f8eb504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28 (condition_variable.cpp:45)3   hermes                          0x0000000101f14108 hermes::vm::HadesGC::Executor::worker() + 3164   hermes                          0x0000000101f13fa8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, hermes::vm::HadesGC::Executor::Exec... + 445   libsystem_pthread.dylib         0x00000001ec7e006c _pthread_start + 136 (pthread.c:931)6   libsystem_pthread.dylib         0x00000001ec7db0d8 thread_start + 8Thread 10 name:Thread 10:0   libsystem_kernel.dylib          0x00000001d8a9c1cc __psynch_cvwait + 81   libsystem_pthread.dylib         0x00000001ec7dd6e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)2   libc++.1.dylib                  0x000000019f8eb504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28 (condition_variable.cpp:45)3   hermes                          0x0000000101f14108 hermes::vm::HadesGC::Executor::worker() + 3164   hermes                          0x0000000101f13fa8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, hermes::vm::HadesGC::Executor::Exec... + 445   libsystem_pthread.dylib         0x00000001ec7e006c _pthread_start + 136 (pthread.c:931)6   libsystem_pthread.dylib         0x00000001ec7db0d8 thread_start + 8Thread 5 crashed with ARM Thread State (64-bit):    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000    x4: 0x00000001ec6052c3   x5: 0x000000016f596810   x6: 0x000000000000006e   x7: 0x0000000000000000    x8: 0xf7eecbac17b4a865   x9: 0xf7eecbad78edd865  x10: 0x0000000000000200  x11: 0x000000016f596340   x12: 0x0000000000000000  x13: 0x00000000001ff800  x14: 0x0000000000000010  x15: 0x0000000000000000   x16: 0x0000000000000148  x17: 0x000000016f597000  x18: 0x0000000000000000  x19: 0x0000000000000006   x20: 0x0000000000002503  x21: 0x000000016f5970e0  x22: 0x0000000000000114  x23: 0x000000016f5970e0   x24: 0x000000030381f268  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000300348640   x28: 0x0000000000000000   fp: 0x000000016f596780   lr: 0x00000001ec7e1c0c    sp: 0x000000016f596760   pc: 0x00000001d8aa142c cpsr: 0x40001000   esr: 0x56000080  Address size faultBinary Images:        0x100b20000 -         0x100fd7fff LocalFoxGetJobDone arm64  <17c61c0f4c08393184e89edd8e40af9f> /private/var/containers/Bundle/Application/BB1C9145-806A-42E9-B737-4FA9C072E6B7/LocalFoxGetJobDone.app/LocalFoxGetJobDone        0x1011f4000 -         0x1011fffff libobjc-trampolines.dylib arm64e  <2e2c05f8377a30899ad91926d284dd03> /private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib        0x101e48000 -         0x102017fff hermes arm64  <35fecc83959934c1813ef020b2d0d382> /private/var/containers/Bundle/Application/BB1C9145-806A-42E9-B737-4FA9C072E6B7/LocalFoxGetJobDone.app/Frameworks/hermes.framework/hermes        0x1872c8000 -         0x187315f43 libobjc.A.dylib arm64e  <53115e1fe35330d99e8a4e6e73489f05> /usr/lib/libobjc.A.dylib        0x18e265000 -         0x18eddafff Foundation arm64e  <70813f347ba4323f9815a878ec22047e> /System/Library/Frameworks/Foundation.framework/Foundation        0x18f3b8000 -         0x18f8e5fff CoreFoundation arm64e  <17320d9047af3a0fa9712da7993fed01> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation        0x19163d000 -         0x193152fff UIKitCore arm64e  <4bc4a129ce5e32109d5838d642c7ca99> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore        0x1972c3000 -         0x197309fff libdispatch.dylib arm64e  <f2f2b992ccae3257848b52f6fc07098c> /usr/lib/system/libdispatch.dylib        0x19730a000 -         0x197387ff3 libsystem_c.dylib arm64e  <f57b5715e40639aabcc300db255b819d> /usr/lib/system/libsystem_c.dylib        0x19f8de000 -         0x19f967fff libc++.1.dylib arm64e  <badf6383449432f297ef716ea17420f6> /usr/lib/libc++.1.dylib        0x1b36e0000 -         0x1b376cef7 dyld arm64e  <3aa1ad27e9c635d8aa64627a0d1ad8d5> /usr/lib/dyld        0x1d487c000 -         0x1d4884fff GraphicsServices arm64e  <92d1f86967dd3ee5b5dd10dc76d64896> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices        0x1d8a95000 -         0x1d8acefff libsystem_kernel.dylib arm64e  <4da0946f67c834b29b3c4c9e1ee5773a> /usr/lib/system/libsystem_kernel.dylib        0x1ec5ec000 -         0x1ec607ffb libc++abi.dylib arm64e  <f603d156e9c5356380a6d2ebedc07a02> /usr/lib/libc++abi.dylib        0x1ec7da000 -         0x1ec7e6ff3 libsystem_pthread.dylib arm64e  <19e4983d5ae937f49af4a717a5dfadd1> /usr/lib/system/libsystem_pthread.dylib        0x1ff380000 -         0x2004fbfe7 libLAPACK.dylib arm64e  <c551f3a9e92232b4afdb2342680d8381> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylibEOF
"dependencies": {"@react-native-async-storage/async-storage": "1.21.0","@react-native-masked-view/masked-view": "0.3.0","@react-navigation/bottom-tabs": "^6.5.20","@react-navigation/native": "^6.1.17","@react-navigation/native-stack": "^6.9.26","@react-navigation/stack": "^6.3.29","axios": "^1.6.2","expo": "^50.0.0-preview.10","expo-status-bar": "~1.11.1","formik": "^2.4.5","metro": "0.80.4","metro-config": "0.80.4","metro-resolver": "0.80.4","moment": "^2.29.4","react": "18.2.0","react-native": "0.73.6","react-native-device-info": "^10.12.0","react-native-gesture-handler": "~2.14.0","react-native-heroicons": "^4.0.0","react-native-image-picker": "^7.0.3","react-native-reanimated": "~3.6.2","react-native-safe-area-context": "4.8.2","react-native-screens": "~3.29.0","react-native-splash-screen": "^3.3.0","react-native-svg": "14.1.0","react-native-vector-icons": "^10.0.3","react-redux": "^8.1.3","reactotron-react-native": "^5.0.3","redux": "^4.2.1","redux-logger": "^3.0.6","redux-thunk": "^2.4.2","styled-components": "^6.1.1","yup": "^1.4.0"  },"devDependencies": {"@babel/core": "^7.20.0","@babel/preset-env": "^7.20.0","@babel/runtime": "^7.20.0","@react-native/eslint-config": "^0.72.2","@react-native/metro-config": "^0.72.11","@tsconfig/react-native": "^3.0.0","@types/react": "^18.0.24","@types/react-test-renderer": "^18.0.0","babel-jest": "^29.2.1","eslint": "^8.19.0","jest": "^29.2.1","metro-react-native-babel-preset": "0.76.8","prettier": "^2.4.1","react-test-renderer": "18.2.0","typescript": "^5.3.0"  },

This is the package.json

I think it is a package dependency issue.

Viewing all 17385 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>