The argument type 'bool' in EAzureBlobStorageFile is unrecognized, along with the exception '*** -[__NSArrayM objectAtIndexedSubscript:]'

Encountered some issues...

An error occurred with an unknown argument '_Bool' in the method -[EAzureBlobStorageFile configure:key:container:token:]. It seems that RCTConvert needs to be extended to support this type.

Also, there was an exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 3 beyond bounds [0 .. 2]' while configuring EAzureBlobStorageFile with parameters.

Despite trying to fix it by adding

RCTReadString(input, "__attribute__((__unused__))") ||
, the issue persists even though I have the latest version. This is on iOS platform, just for your reference.

"react-native": "0.66.4"

"react-native-azure-blob-storage": "^2.0.3",

Answer №1

Here is a workaround you can try to solve the issue mentioned above;

  • The fix for the problem can be implemented by adding the code below (by opening
    myproject /node_modules/react-native/React/Base/RCTModuleMethod.mm
    ) along with updating the versions of react-native and react-native-azure-blob-storage.

Code:-

static BOOL RCTParseUnused(const char **input)
{
  return RCTReadString(input, "__attribute__((unused))") ||
         RCTReadString(input, "__attribute__((__unused__))") ||
         RCTReadString(input, "__unused");
}

For more details, please check out the following links:

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the formula to determine if x is greater than y and also less than z?

I need help determining if a number falls within the range of greater than 0 but less than 8 using JavaScript. Can anyone assist me with this? Here is my attempt at it: if (score > 0 && score < 8) { alert(score); } ...

Separate the JSON array according to the type of suggestion it's being given

My JSON array is structured like this: [ { "characterID": 0, "description": "Series 1", "id": 1, "seriesID": 0, "status": "ACCEPTED", "type": "SE ...

Error in CollectionView: Encountered a fatal issue where an unexpected nil value was found while forcefully unwrapping an Optional

After successfully implementing a collectionView using Storyboard that fetched data from Firebase, I decided to create another collectionView programmatically for better layout control. However, I encountered an error: "Fatal error: Unexpectedly found nil ...

What could be causing the header of the datatable to be out of alignment with the rest of

I'm facing an issue with my datatable where the header is misaligned with the content. Can someone please assist me in adjusting the header and content so that they are parallel? It doesn't look right at the moment. <div style="margin-top:1 ...

Looking for an example of a Three.js AnimationClip

Trying to create simple keyframed animations in threeJS with an object3D for moving, rotating, and scaling? Check out this outdated example: . However, be warned that the animation rotation has switched to quaternion in threeJS. Struggling to find a strai ...

The error message "NoSuchSessionError: invalid session id" pops up in Selenium, despite the fact that the application is running smoothly

Scenario and Background: I have recently developed a script to access an external website and extract specific data. The script's purpose is to retrieve grades of students and convert them into usable data for plotting. In order to streamline the dat ...

Finding and merging duplicate values within a Javascript array

I am working with a dynamically generated array that looks like this: var myArray = ("0% { left:74px; top:202px; }" , "44% { left:427px; top:122px; }", "0% { font-size:11px; }", "55% { font-size:49px; }" ); Within the array, there are 2 entries that ha ...

Exploring the parent scope in handlebars.js partials

Is there a way to access the parent scope from a partial using #each in Handlebars? Main template: (out of each = {{index}})<br> {{#each someItem}} (in each, but not on partial = {{../index}}) {{>part}} {{/each}} Partial: <div class="part ...

Sending Objects Array in POSTMAN using Hapijs: A Step-by-Step Guide

Could you please assist me on how to send a POST request in POSTMAN for the given array of objects and then validate it using Joi in a hapi server? var payload = [{ name: 'TEST Name 1', answer: 'TEST Answer 1', category: &a ...

What is the best way to serve individual static files in Express without revealing the entire "/static" directory?

For my new project, I am working on a simple setup that involves using JWT for authorization. The project is being served entirely through express, with no separation between frontend and backend. My goal is to dynamically serve specific HTML files based o ...

Implementing Text Box Control Validation within a Gridview using UpdatePanel in c# ASP.Net

In my gridview, one of the columns contains a Text Box Control. I am looking to validate the text entered by users as alphanumeric characters and spaces only. Allowed characters are: a-z, A-Z, 0-9, and space. I want to perform this validation using Java ...

Guide on creating a menu that remains open continuously through mouse hovering until the user chooses an option from the menu

I have a unique scenario where I am working with two images. When the mouse hovers over each image, two corresponding menu bars appear. However, the issue is that when the mouse moves away from the images, the menu disappears. Any suggestions on how to im ...

Issue with Angular 18 component not being displayed or identified

Recently, I began building an Angular 18 application and encountered an issue with adding my first component as a standalone. It appears that the app is not recognizing my component properly, as it does not display when added as an HTML tag in my app.compo ...

Can you help understand the unexpected output produced by this JavaScript code?

When looking at the following JavaScript code, you would expect an output of 32. However, the actual answer is 16. How is this possible? 5 + 1 = 6; 6 + 5 = 11; 11 * 2 = 22; 22 + 10 = 32; (this should have been the correct answer) var x = 5; x = (x++, a ...

Altering the language code on LinkedIn

As a beginner in programming, I successfully added the linkedin share button to my test webpage. Now, I am hoping to make the button change language based on the user's language selection on the webpage. Linkedin uses a five character language code ( ...

Guide on modifying the value of a web element attribute in C# with the help of Selenium

Topic Example: <input type="text" id="cargo_q" autocomplete="off" value="5.5"/> What is a way to modify the value of the "value" attribute using Selenium web driver? Can I use a method like: IWebElement search_cargo =driver.FindElement(By.Id("car ...

Tips for customizing the scrollbar design in iOS Safari

Task at hand requires me to customize the scrollbar style on my HTML page. Below is the CSS code I am using: .txt_Content::-webkit-scrollbar { width:5px; border-radius:4px; } .txt_Content::-webkit-scrollbar-button { display: none; } .txt_Co ...

Retrieve JSON information from a web-based service in order to create a stunning photo collection

Is there a web-service accessible at ?limit=12&skip=0 I am looking to retrieve the information from this service and store it in a Javascript array. After some research, I believe I should start with the following code snippet: $.ajax({ type: " ...

The presence of a UIView is causing the UITableView's children to be confined

In one particular view, my subclass of UITableView is functioning perfectly, loading cells and responding to user input. However, when I attempt to use it in a different view, it loads cells and displays them but does not respond to any user input. Can any ...

ES6 throwing an error: SyntaxError due to an unexpected token ")"

Below is the Node.js script I am working on: pDownload("http://serv/file", "localfile") .then( ()=> console.log('downloaded file successfully without any issues...')) .catch( e => console.error('error occurred while downloading&ap ...