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

iPhone can't connect to metro on react-native 0.73.6

$
0
0

I have debug scheme, app is running on my iPhone. I allowed access to local network connections for my app, tried to configure bundle with my mac ip and 8081 port. When I try to refresh it seems to be ok, but metro bundler is not building new bundle and changes in code are not applied. In xcode I can see this error:

_NSURLErrorRelatedURLSessionTaskErrorKey=("LocalDataTask .<132>"), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=http://192.168.1.6:8081/status, NSErrorFailingURLKey=http://192.168.1.6:8081/status, _kCFStreamErrorDomainKey=1}

I can access http://192.168.1.6:8081/status from iPhone's Safari, so there is no problem with IP and port configuration

What can be the problem?

Thank you


Unexpected token - when uploading app to iOS store

$
0
0

I'm using fastlane to upload the app to the iOS store. The only error that I get is the exception unexpected token at '' -

It is the same error for both app store and test flight fastlane commands

upload_to_app_store( api_key_path: APP_STORE_CONNECT_API_KEY_PATH, precheck_include_in_app_purchases: false, app_identifier: IOS_PRODUCTION_APP_STORE_BUNDLE_ID, metadata_path: './metadata/ios/app', metadata: metadata, screenshots: screenshots, force: true, phased_release: true, app_version_update: true )

upload_to_testflight( api_key_path: APP_STORE_CONNECT_API_KEY_PATH, demo_account_required: true, app_identifier: IOS_PRODUCTION_APP_STORE_BUNDLE_ID, ipa: ipa_directory, waiting_for_build_processing: true, distribute_external: true, changelog: "Review our new App.", beta_app_review_info: { contact_email: ENV['IOS_CONTACT_EMAIL'], contact_first_name: ENV['IOS_CONTACT_NAME'], contact_last_name: ENV['IOS_CONTACT_LAST_NAME'], contact_phone: ENV['IOS_CONTACT_NUMBER'], demo_account_name: ENV['IOS_CONTACT_DEMO_ACCOUNT_LOGIN'], demo_account_password: ENV['IOS_CONTACT_DEMO_ACCOUNT_PASSWORD'], notes: "thank you for reviewing our App" } )

Due the lack of information about the error, I haven't tried anything yet. This code is in the master branch. I wonder if the ipa file was created correctly or the fastlane command is not finding the path automatic as the doc says it should.

EXPO / EXPO GO IOS APP: Filed to parse manifest. The operation couldn't be copiled (EXUpdates.UpdateError error 1)

$
0
0

I have a problem with expo go application on IOS device (Android is working). When i try to connect to my project using expo start or expo start --tunnel it throw following error: error in expo go ios app

What I miss? When i open app using android device eveything is working fine. I try to solve it but no progress. Here are my package.json and app.json with eas.json:

package.json:

{"name": "prometeuszai","version": "1.0.0","scripts": {"start": "expo start --dev-client","android": "expo run:android","ios": "expo run:ios","web": "expo start --web"  },"dependencies": {"@react-native-async-storage/async-storage": "^1.21.0","@react-native-picker/picker": "2.4.10","@react-navigation/native": "^6.1.6","@react-navigation/native-stack": "^6.9.12","@rneui/base": "^0.0.0-edge.2","@rneui/themed": "^0.0.0-edge.2","axios": "^1.4.0","buffer": "^6.0.3","expo": "~49.0.15","expo-av": "~13.4.1","expo-file-system": "~15.4.3","expo-privacy-manifest-polyfill-plugin": "^0.0.2","expo-splash-screen": "~0.20.5","expo-status-bar": "~1.6.0","firebase": "^9.7.0","firebase-admin": "^11.8.0","react": "18.2.0","react-native": "0.72.6","react-native-dropdown-picker": "^5.4.6","react-native-media-query": "^2.0.1","react-native-progress": "^5.0.1","react-native-purchases": "^7.27.1","react-native-really-awesome-button": "^2.0.4","react-native-sound": "^0.11.2","react-native-svg": "^14.1.0","react-native-three-dots-loader": "^1.0.1","react-native-uuid": "^2.0.1"  },"devDependencies": {"@babel/core": "^7.20.0","prettier": "^2.4.1"  },"private": true}

app.json:

{"expo": {"name": "Prometeusz Ai","slug": "prometeuszai","version": "1.0.0","orientation": "portrait","icon": "./assets/images/bot.png","userInterfaceStyle": "light","splash": {"image": "./assets/images/bot.png","resizeMode": "contain","backgroundColor": "#ffffff"    },"plugins": ["expo-privacy-manifest-polyfill-plugin"],"runtimeVersion": "@string/expo_runtime_version","extra": { "eas": { "projectId": "c5fc9c8a-f854-4529-9c0b-6964b1da2ade" } },"assetBundlePatterns": ["**/*"],"ios": {"supportsTablet": true,"bundleIdentifier": "com.kliemk.prometeuszai","privacyManifests": {"NSPrivacyAccessedAPITypes": [          {"NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryFileTimestamp","NSPrivacyAccessedAPITypeReasons": ["CA92.1"]          },          {"NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryDiskSpace","NSPrivacyAccessedAPITypeReasons": ["CA92.1"]          }        ]      }    },"android": {"adaptiveIcon": {"foregroundImage": "./assets/images/bot.png","backgroundColor": "#ffffff"      },"package": "com.kliemk.prometeuszai"    },"web": {"favicon": "./assets/images/bot.png"    }  }}

eas.json:

{"cli": {"version": ">= 3.16.0"  },"build": {"development": {"distribution": "internal","android": {"gradleCommand": ":app:assembleDebug"      },"ios": {"buildConfiguration": "Debug"      }    },"preview": {"distribution": "internal"    },"production": {}  },"submit": {"production": {}  }}

Thank you for help!

I expected to open application on IOS Expo Go app like on Android.

React Native: iOS archive build failed in Appcircle CI

$
0
0

iOS archive build generation is succeed when I generate from xcode but it fails in Appcircle.io with the following error. If I disable "use_flipper" from the PodFile, "pre_install" & "post_install" scripts are not running and build is failed in my xcode itself

** ARCHIVE FAILED **The following build commands failed:    CompileC .../_appcircle_temp/appcircle_export_archive/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/MyProject/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Flipper-Folly.build/Objects-normal/armv7/VirtualEventBase.o .../_appcircle_temp/Repository/ios/Pods/Flipper-Folly/folly/io/async/VirtualEventBase.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler(1 failure)warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'Flipper-Folly' from project 'Pods')warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')@@[error] 3/22/2021 3:24:36 AM EXCEPTION@@[error] @@[error] Process exit with error code: 1@@[error] 42gez13d.r50 Error at step: Xcodebuild for Devices@@[error] EXCEPTION: @@[error] Process exit with error code: 1

IOS crash when closing a modal in expo managed project

$
0
0

Expo managed project on ios

When my app starts, there is a modal showing up with a button to access the app without any account. The crashs happen when clicking on this button. The correct beahvior is to close the modal.

When I test in a development build and in testflight it works fine but when it is reviewed it crashes. I didn't manage to reproduce the issue on an iPad or an iPhone. Here is one of the crash reports that I received :

"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},"ktriageinfo" : "VM - Fault hit memory shortage\nVM - Fault hit memory shortage\nVM - Fault hit memory shortage\nVM - Fault hit memory shortage\nVM - Fault hit memory shortage\n","asi" : {"libsystem_c.dylib":["abort() called"]},"lastExceptionBacktrace" : [{"imageOffset":601372,"symbol":"__exceptionPreprocess","symbolLocation":216,"imageIndex":5},{"imageOffset":85732,"symbol":"objc_exception_throw","symbolLocation":56,"imageIndex":4},{"imageOffset":941832,"symbol":"__CFDictionaryCreateGeneric","symbolLocation":0,"imageIndex":5},{"imageOffset":4919592,"symbol":"-[UIView(Hierarchy) _associatedViewControllerForwardsAppearanceCallbacks:performHierarchyCheck:isRoot:]","symbolLocation":284,"imageIndex":7},{"imageOffset":4109060,"symbol":"-[UIView(Hierarchy) _willMoveToWindow:withAncestorView:]","symbolLocation":244,"imageIndex":7},{"imageOffset":1545712,"symbol":"-[UIView(Internal) _addSubview:positioned:relativeTo:]","symbolLocation":432,"imageIndex":7},{"imageOffset":2486960,"symbol":"-[UITransitionView transition:fromView:toView:removeFromView:]","symbolLocation":1336,"imageIndex":7},{"imageOffset":2880572,"symbol":"-[UIViewControllerBuiltinTransitionViewAnimator animateTransition:]","symbolLocation":1496,"imageIndex":7},{"imageOffset":4759516,"symbol":"___UIViewControllerTransitioningRunCustomTransition_block_invoke_2","symbolLocation":72,"imageIndex":7},{"imageOffset":2917644,"symbol":"+[UIKeyboardSceneDelegate _pinInputViewsForKeyboardSceneDelegate:onBehalfOfResponder:duringBlock:]","symbolLocation":104,"imageIndex":7},{"imageOffset":3387600,"symbol":"___UIViewControllerTransitioningRunCustomTransition_block_invoke.641","symbolLocation":176,"imageIndex":7},{"imageOffset":3939216,"symbol":"+[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:]","symbolLocation":172,"imageIndex":7},{"imageOffset":2511492,"symbol":"_UIViewControllerTransitioningRunCustomTransition","symbolLocation":572,"imageIndex":7},{"imageOffset":8979416,"symbol":"__56-[UIPresentationController runTransitionForCurrentState]_block_invoke.401","symbolLocation":2152,"imageIndex":7},{"imageOffset":3195456,"symbol":"-[_UIAfterCACommitBlock run]","symbolLocation":64,"imageIndex":7},{"imageOffset":2258800,"symbol":"-[_UIAfterCACommitQueue flush]","symbolLocation":200,"imageIndex":7},{"imageOffset":1400496,"symbol":"_runAfterCACommitDeferredBlocks","symbolLocation":640,"imageIndex":7},{"imageOffset":1402236,"symbol":"_cleanUpAfterCAFlushAndRunDeferredBlocks","symbolLocation":128,"imageIndex":7},{"imageOffset":1402696,"symbol":"_afterCACommitHandler","symbolLocation":56,"imageIndex":7},{"imageOffset":256060,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__","symbolLocation":32,"imageIndex":5},{"imageOffset":64116,"symbol":"__CFRunLoopDoObservers","symbolLocation":616,"imageIndex":5},{"imageOffset":45052,"symbol":"__CFRunLoopRun","symbolLocation":1012,"imageIndex":5},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":5},{"imageOffset":6536,"symbol":"GSEventRunModal","symbolLocation":160,"imageIndex":6},{"imageOffset":5134996,"symbol":"-[UIApplication _run]","symbolLocation":1080,"imageIndex":7},{"imageOffset":2617300,"symbol":"UIApplicationMain","symbolLocation":336,"imageIndex":7},{"imageOffset":21672,"imageIndex":8},{"imageOffset":99536,"symbol":"start","symbolLocation":444,"imageIndex":9}],

I have difficulties in understanding this report. I understood that it is a language exception but couldn't find anything more. https://developer.apple.com/documentation/xcode/addressing-language-exception-crashes

<Modal        animationType="fade"        transparent={false}        visible={!this.props.estConnecte}><View style={styles.accueilView}><ImageBackground resizeMode="cover" style={{flex:1, justifyContent: 'flex-end', padding:50}} source={require('../assets/splash.png')}><Button1 onPress={() => this.displayLogin()} title = {"Se connecter"} styleSup = {{color: COLORS.iconesView}}/><Button1 onPress={() => this.creerCompte()} title = {"Créer un compte"} styleSup = {{color: COLORS.iconesView}}/><Button1 onPress={() => this.accesSansCompte()} title = {"Accès sans compte"} styleSup = {{color: COLORS.iconesView}}/><View style={{flex:0.1}}/></ImageBackground></View><Login/><Signin/></Modal>

The function this.accesSansCompte() only changes the state of this.props.estConnecte.

I have tried to add a timeout before closing the modal without any success. Any idea is greatly appreciated ! Thanks for your time !

React native splashScreen closing automatically in IOS

$
0
0

react-native-splash-screen hiding automatically In IOS.But it's fine working in android .

I followed this steps : -

1 ) npm i react-native-splash-screen --save2 ) cd ios ,run pod install3 ) Updated AppDelegate.m

#import "RNSplashScreen.h"  // here.... [RNSplashScreen show];  // here....

4 ) CustomizeD MY splash screen via LaunchScreen.storyboard

5 ) APP.JS

import SplashScreen from 'react-native-splash-screen'      componentDidMount() {        setTimeout(async() => {            SplashScreen.hide();        },3000);     }

BUT THE SPLASH SCREEN NOT WAITING 3 SECONDS IN IOS BUT WORKING PERFECTLY IN ANDROIDALSO IF I COMMENTED "SplashScreen.hide();" ALSO S-SCREEN IS HIDING AUTOMATICALLY in IOS.

React Native splash screen on ios

$
0
0

I am developing an app using react native and trying to add a splash screen on ios. I have added the following code on AppDelegate.mm

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{  self.moduleName = @"eCare";  // You can add your custom initial props in the dictionary below.  // They will be passed down to the ViewController used by React Native.  self.initialProps = @{};  [RNSplashScreen show]; //Added this line  return [super application:application didFinishLaunchingWithOptions:launchOptions];}

My app is stuck in the splash screen after this. I hid the splash screen on the root screen of react native. I followed the official guide here

Error Domain=NSCocoaErrorDomain Code=512 and Error Domain=NSPOSIXErrorDomain Code=20 "Not a directory". React native expo

$
0
0

i'm just trying out tweaking a the code from a tutorial to download files with expo-file-system and expo-sharing and i'm encountering this error.

Full error is:

Failed to create storage directory.Error Domain=NSCocoaErrorDomain Code=512 "The file “my-app” couldn’t be saved in the folder “@user”." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/C54DC1D3-033B-41DC-89D3-4541119F717D/Documents/ExponentExperienceData/@user/my-app, NSUnderlyingError=0x3017c0390 {Error Domain=NSPOSIXErrorDomain Code=20 "Not a directory"}}

The error comes from calling this snippet which is in a useEffect:

createDownloadResumable('https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf',     documentDirectory +'dummy.pdf',     {},     callback);

then i download it and save the file in my storage using expo-sharing with shareAsync(documentDirectory+'dummy.pdf');

It worked well the first few times i tested it and tweaked it, and when i was fiddling around, i deleted the folder created by expo-sharing with shareAsync(documentDirectory+'dummy.pdf');. I assumed that was the problem so i restored the folder in my iphone but the error still persists.

If that's not the issue what is causing this? someone please help?


Build Error on Xcode 15.3: "Called object type 'facebook::flipper::SocketCertificateProvider' is not a function or function pointer"

$
0
0

I recently updated my Xcode to version 15.3 and encountered an issue while trying to build my React Native app on the simulator. The error message I'm receiving is:

"Called object type 'facebook::flipper::SocketCertificateProvider' is not a function or function pointer."

My react-native version is 0.71.8

Could someone please advise on how to resolve this error and successfully build my React Native app on Xcode 15.3?Any insights or suggestions would be greatly appreciated.

enter image description here

A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.[ios, xcode]

$
0
0

I have android and ios app in react native which both uses webview to show webpage as application.Since I had to change package name to deploy it on google play since first one package name was occupied. I changed app.json file and all names in android folder and that's ok.

Now my question is what I need to change in my ios folder in order to my app work in xcode. I have this error.

Invariant Violation: "RestApp" has notbeen registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.

This is my app.json file

{"name": "restapphhopp","displayName": "RestApphhopp"}

Index.js file

/** * @format */import {AppRegistry} from 'react-native';import App from './App';import {name as appName} from './app.json';AppRegistry.registerComponent(appName, () => App);

how can allow users to view files on their phone when they are downloaded from my app

$
0
0
async function saveFile(uri: string, filename: string, mimetype: any) {    if (Platform.OS === 'android') {      const permissions =        await FileSystem.StorageAccessFramework.requestDirectoryPermissionsAsync();      if (permissions.granted) {        const base64 = await FileSystem.readAsStringAsync(uri, {          encoding: FileSystem.EncodingType.Base64,        });        await FileSystem.StorageAccessFramework.createFileAsync(          permissions.directoryUri,          filename,          mimetype        )          .then(async (uri) => {            await FileSystem.writeAsStringAsync(uri, base64, {              encoding: FileSystem.EncodingType.Base64,            });          })          .catch((e) => console.log(e));      } else {        Toast.show({          type: 'error',          text1: 'Permission Denied',          text2: 'Please enable storage permission',        });      }    } else if (Platform.OS === 'ios') {      const documentDirectory = FileSystem.documentDirectory;      const path = documentDirectory + filename;      try {        await FileSystem.writeAsStringAsync(path, uri, {          encoding: FileSystem.EncodingType.UTF8,        });        Toast.show({          type: 'success',          text1: 'File saved',          text2: 'File successfully saved in Documents folder',        });      } catch (error) {        console.error('Error saving file:', error);        Toast.show({          type: 'error',          text1: 'Error saving file',          text2: 'Please try again later',        });      }    } else {      Toast.show({        type: 'error',        text1: 'Unsupported Platform',        text2: 'File saving not supported on this platform',      });    }  }

In Android its working that users select folder to save their files and then visit that folder to view the files but in ios i am unable to locate where the file has been downloaded please help me out i am using epxo sdk 49 for my app and i want users to view their files that has been downloaded on their phone

How to get the text from iOS AutoFill keyboard function in React Native?

$
0
0

I'm using react-native-otp-textinput for the otp input in my app. When I use the AutoFill from iOS keyboard to paste the code, the input doesn't get filled. The library only provided solution using copy-paste method. It seems that Clipboard.getString only return value when the text is copied.

Is there a way to retrieve the value from AutoFill for me to populate to the input?

import OTPTextInput from 'react-native-otp-textinput';const handleCellTextChange = async (text: string, i: number) => {    if (i === 0) {        const clippedText = await Clipboard.getString();        if (clippedText.slice(0, 1) === text) {          codeRef.current?.setValue(clippedText, true);        }    }};return (<OTPTextInput            ref={codeRef}            inputCount={6}            tintColor={Colour.MoodBlue}            textInputStyle={styles.textCode}            handleTextChange={(text: string) => setCode(text)}            handleCellTextChange={handleCellTextChange}            defaultValue={code}     />);

How to remove Other Linker Flags Objc params

Expo App stuck on Splash Screen in Expo SDK 50

$
0
0

My app was working fine only a till only a few days back for some reason the app was getting stuck on the splash screen. This is on both Android and iOS simulators.

I tried updating all my dependancies to the latest versions. I tried reinstalling all packages but that didn't work either. I'm quite confused at this point.

I'm currently running the app in Expo Go.

{"name": "myapp","main": "expo-router/entry","version": "1.0.0","scripts": {"start": "expo start","prebuild": "expo prebuild","doctor": "expo-doctor@latest","android": "expo run:android","ios": "expo run:ios","web": "expo start --web","test": "jest --watchAll"  },"jest": {"preset": "jest-expo"  },"dependencies": {"@expo/vector-icons": "^14.0.0","@gorhom/bottom-sheet": "^4","@react-native-community/datetimepicker": "7.6.1","@react-native-picker/picker": "2.6.1","@react-navigation/native": "^6.0.2","expo": "~50.0.15","expo-av": "^13.10.5","expo-font": "~11.10.3","expo-image-picker": "~14.7.1","expo-linking": "~6.2.2","expo-router": "~3.4.8","expo-splash-screen": "~0.26.4","expo-status-bar": "~1.11.1","expo-system-ui": "~2.9.3","expo-web-browser": "~12.8.2","react": "18.2.0","react-dom": "18.2.0","react-native": "0.73.6","react-native-gesture-handler": "~2.14.0","react-native-reanimated": "~3.6.2","react-native-safe-area-context": "4.8.2","react-native-screens": "~3.29.0","react-native-web": "~0.19.6"  },"devDependencies": {"@babel/core": "^7.20.0","@types/react": "~18.2.45","jest": "^29.2.1","jest-expo": "~50.0.4","react-test-renderer": "18.2.0","typescript": "^5.1.3"  },"private": true}

React native Expo EAS build for iOS, Push notifications capability error

$
0
0

I'm working in a managed workflow and I build my react native app with:

  • eas build --platform iOS
  • I use local credentials because I need to build and sign the package not with my Apple developer account, but for a customer. So I created with his account all needed certificates, which are the provisioning profile and the distribution certificate.
  • I don't need or want to enable Push notifications

My eas.json

{"cli": {"version": ">= 0.47.0"    },"build": {"production": {"ios": {"credentialsSource": "local"            },"android": {"credentialsSource": "local"            }        }    },"submit": {"production": {}    }}

The build goes fine until the archive part, where I get these errors:

  • error: Provisioning profile "MyAppDistributionProfile" doesn't support the Push Notifications capability. (in target 'MyApp' from project 'MyApp')
  • error: Provisioning profile "MyAppDistributionProfile" doesn't include the aps-environment entitlement. (in target 'MyApp' from project 'MyApp')

I really don't know what to do, also I don't understand if:

  1. Do I need to write somewhere in the expo config file that I don't want Push notification?
  2. Do I need to change something in my distribution profile, maybe generate it with some different flags? Maybe with expo build to enable the Push notifications is mandatory?

My profile entitlements (no one!):

enter image description here


CocoaPods could not find compatible versions for pod "StripePayments"

$
0
0

I have created a react-native project having following dependencies:"react": "18.2.0","react-native": "0.73.1",

Now I am trying Stripe Payment Integration in this project. For this I have installed the node package :"@stripe/stripe-react-native": "^0.37.3",

But when I am trying to do "pod install" I am getting error :

[!] CocoaPods could not find compatible versions for pod "StripePayments": In Podfile: stripe-react-native (from ../node_modules/@stripe/stripe-react-native`) was resolved to 0.37.3, which depends onStripePayments (~> 23.27.0)

None of your spec sources contain a spec satisfying the dependency: StripePayments (~> 23.27.0).

You have either:

out-of-date source repos which you can update with pod repo update or with pod install --repo-update.mistyped the name or version.not added the source repo that hosts the Podspec to your Podfile.`System details =>system : macOS Sonoma version 14.4.1simulator : iPhone 15 Pro Max - iOS 17.2

cocoapods =>gem which cocoapods/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods.rb

Any ideas??Please assist me here..

I tried some solutions like :

But none of them worked for me.

PLEASE HELP ME INSTALL STRIPE SDK.

*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception

$
0
0

*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: TypeError: Cannot read property 'prototype' of undefined, jsengine: hermes', reason: 'Unhandled JS Exception: TypeError: Cannot read property 'prototype' of undefined, js engine: hermes, stack:anonymous@161047:69loadModuleImplementation@153:13guardedLoadModule@92:37metroRequire@38:91anonymous@109769:33loadModuleImplementation@153:13guardedLoadModule@92:37metroRequire@38:91anonymous@211538:55loadModuleImplementation@153:13guardedLoadModule@92:37metroRequire@38:91anonymous@224323:26loadModuleImplementation@153:13guardedLoadModule@85:46metroRequire@38:91get@56205:26metroContext@56210:14loadRoute@74111:32applyDefaultInitialRouteName@74001:31fileNodeToRouteNode@74058:40treeNodeToRouteNode@74091:32treeNodesToRootRoute@74134:36getExactRoutesInternal@74273:31getRoutes@74171:38initialize@71642:51anonymous@71776:37useMemo@26748:31anonymous@12133:28useInitializeExpoRouter@71775:24ContextNavi<…>

When I run the npx expo run:ios --configuration Release command, I get the following error. When I built the application and tried it on devices, the application crashed.

My pc: Apple M3Simulation device: iPhone 15 Pro - 14.4

Command PhaseScriptExecution failed with a nonzero exit code with ios build #44533

$
0
0

When I tried to build the iOS project, I faced this issue:

/Users/pc/Downloads/einvoicing-react-native-mobile-app-1/ios/Pods/../../node_modules/react-native/React/FBReactNativeSpec/../../scripts/react_native_pods_utils/script_phases.sh: line 86: /usr/local/bin/node: No such file or directoryCommand PhaseScriptExecution failed with a nonzero exit code.

My react version: "react-native": "0.70.5",

The script_phases line: 86 is:The script_phases line: 86

React Native Version: 0.75.0

Output of npx react-native info:

System: OS: macOS 14.4.1 CPU: (8) arm64 Apple M2 Memory: 120.72 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node Yarn: 1.22.22 - /usr/local/bin/yarn npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm Watchman: Not Found Managers: CocoaPods: 1.15.2 - /Users/awshakam/.gem/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4 Android SDK: Not Found IDEs: Android Studio: 2023.2 AI-232.10300.40.2321.11668458 Xcode: 15.3/15E204a - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found.

Stacktrace or Logs

/Users/pc/Downloads/einvoicing-react-native-mobile-app-1/ios/Pods/../.xcode.env: line 5: : command not foundNode found at: /usr/local/bin/node/Users/pc/Downloads/einvoicing-react-native-mobile-app-1/ios/Pods/../../node_modules/react-native/React/FBReactNativeSpec/../../scripts/react_native_pods_utils/script_phases.sh: line 87: /usr/local/bin/node: No such file or directoryCommand PhaseScriptExecution failed with a nonzero exit code

Steps to reproduce

  1. Yarn.
  2. cd ios.
  3. pod install -> pods installed successfully.
  4. open xcode project.
  5. Product -> build.
  6. Error image

Mapbox.xcframework-ios.signature couldn’t be copied to “Signatures” because an item with the same name already exists

$
0
0

I'm using MapLibre in React Native project, when i do bunx eas build --profile preview --local -p ios i start getting this error, but no issues when doing in simulator.

I did have MapBox in my other project and that is working fine. But unsure if this related. Or is there a signature being stored in system that i need to manually remove?

RNSound/RNSound.m:236:44 Call to undeclared function 'RCTJSErrorFromNSError'; ISO C99 and later do not support implicit function declarations

$
0
0

RNSound Xcode Error

npx pod-install error

Do anyone have any idea what issue is this?

I have tried to build on Intel Mac mini 2018 and it works fine, everything was able to be done. When it comes to my M1 MacBook Pro, I was not able to build and was faced with this error. Looking up online, many of the issues are revolving around "IsAndroid" and it is not applicable to me. I have tried the standard debugging, (Restarting Xcode, computer, removing DerivedData, reinstalling pods and node_modules). Those did not work as well. Quite odd as the Pods I have used on my Mac mini was the same as the pods I used on my M1 Mac.

Another issue that I faced in particular was that when running "npx expo prebuild", the pods was not able to be generated as shown in the image.

M1 MacBook System:Expo: SDK 51 (RN 74.1)

I was thinking if it could be a issue on the M1 MacBook side and tired to run the Xcode to the latest version (at the time of posting).

Viewing all 17127 articles
Browse latest View live


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