developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
42
results
Andrew Fletcher
•
The error you're encountering indicates an issue with the ffi gem during the CocoaPods update. The error message suggests trying to run the gem pristine command to fix it.
Using terminal - run the following command:
gem pristine ffi --version 1.16.3This command will attempt to restore the ffi gem to its pristine state, resolving any issues with its extensions. After running this command, try running pod update again
pod updateIf you encounter any permission issues, you might need to use...
Andrew Fletcher
•
Creating a foreach loop such as
var maxDigits: Int = 5
private var...
Andrew Fletcher
•
The challenge I was facing, I had written a script to scan barcodes and use...
Andrew Fletcher
•
In Xcode and executing a run command, the response error was:
{
"name":...
Andrew Fletcher
•
Working hard developing your app and now it's time to let others begin testing...
Andrew Fletcher
•
ERROR Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating 'ce.imageURL')
Tools
Platform / package
Version
Xcode
13.2.1
Typescript / Angular
6
Cordova
Capacitor
The code where the error was being generated
if (!this.imageCollection) {
return baseUrl + req;
}
let image = this.imageCollection.find(obj => obj.fishID === fishId);
if (image.imageURL) {
return image.imageURL;
} else {
return baseUrl +...
Andrew Fletcher
•
Using the Drupal Poll module and passing via RESTful API - How do...
Andrew Fletcher
•
This code is from Drupal 9 back-end for a React front-end via REST API.
Working...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
How to use the Drupal REST API to trigger I've forgot (need to change) my...
Andrew Fletcher
•
To get the X-CSRF token, first, you need to login as a member. Follow the steps outlined under User options - login, logout and user details.
Calling a query
The query string is: {domain}/rest/session/token
See the notes on set-up, for the staging and production URLs. Using the current staging URL in the set-up screen, as an example of the query string using the following criteria
Replacing the following variables:
{domain} ~...
Andrew Fletcher
•
In retrieving an image, the primary element required is:
File id or...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...