Questions tagged [xcode]

Apple presents Xcode as its all-in-one development environment (IDE). IMPORTANT: This tag should only be used for inquiries specific to the Xcode IDE, and not for wider Mac or iOS programming topics. Please utilize [cocoa] when discussing Mac programming matters, and opt for [cocoa-touch], [iOS], or [Swift] when addressing iOS programming queries.

Upon attempting to run ionic for iOS, an error was encountered regarding the arm64 and armv7 architectures

I'm currently in the process of developing a mobile application for both Android and iOS platforms utilizing Ionic version 1. Here is a breakdown of the software versions I'm working with: cordova: 7.0.1 ionic: 2.2.2 ios-deploy: 1.9.2 ios-sim: ...

Retrieve images from the API

Currently, I am working on an e-commerce application using the Moltin.com SDK. Although I have followed the documentation accurately, I am facing an issue regarding loading multiple images of a single product in a table view with a custom cell. Below is th ...

Empty results returned by iOS AFJSONRequestOperation

When attempting to fetch data via a JSON request using AFJSONRequestOperation, I encounter an issue where I am able to retrieve the data successfully but unable to seamlessly proceed with the request and pass on the data for further processing. Below is t ...

What is the best way to extract JSON data from a couchDB database and interpret it in Xcode?

Let's say I have a record stored in my CouchDB with fields "password" and "username". The URL for this specific document is: My goal is to extract the values of these fields from the CouchDB document and process them in Xcode. I attempted to use http ...

A guide to retrieving location markers from Firebase's real-time database and displaying them on a map view using Xcode and Swift

My objective is to replace the hardcoded array data with a download from Firebase Realtime Database and store it in either 4 separate arrays or an array of another array for each night club. The structure of the Firebase Realtime Database JSON can be foun ...

Is there a way to showcase multiple TableViews from a Json File using Swift?

I am looking to populate a TableView in Xcode (Swift) with information from a Json file. To illustrate, here is what I aim to achieve: My goal is to extract json data regarding countries, cities, and additional city details. On the initial screen, I want ...

What are the ideal scenarios for utilizing Dynamic encoding/decoding in Swift?

I am new to coding in Swift and I'm feeling a little confused about the concept of dynamic encoding and decoding. During an interview, I was asked to parse the response from an API. The API response looks like this: { "propertyID" : 12, "user" : ...

PHP Webservice is failing to return the encoded response accurately

A piece of PHP code that I developed successfully registers user details from my iPhone app and returns JSON output. Here is the code snippet: header('Content-type: application/json'); include 'connection.php'; $response = array(); $username = $_POST['us ...

Troubleshooting Xcode: Handling JSON Parsing

I'm currently facing difficulties with parsing JSON data that includes multiple levels of nested arrays. The structure of a single JSON object I am trying to parse is shown below: { "date":1454284800, "exercises":[ { "name":"Tricep ...

Discover the secret to prompting iOS 12 Autofill to request password saving within a React Native application

ISSUE I am currently using React Native 0.59.9 and have implemented a login screen in my mobile app with the intention of utilizing iOS 12's autofill feature to save passwords for new users. However, despite setting up the necessary configuration, th ...

Converting a JSON image string (not a URL) into a UIImage to display

After spending an entire day trying to solve this, I am really desperate for an answer. It seems like a simple task - I have a JSON array of images in the form of strings (I believe). These are not URLs, but rather image file names like "GoodLogo.png". Typ ...

Tips for showing the parsed JSON data in a TableView using a TextField

Hello there, I am just starting out with iPhone development and need some guidance. I'm currently working on incorporating a webservice to fetch JSON response strings, parsing them using JSONvalue and displaying the parsed data on labels through buttons.. ...

React Native encountered a fatal error and had to terminate due to an uncaught NSException

This is my first attempt at creating an iOS app using React Native. I am currently following the instructions provided in the Facebook React Native Docs to kickstart my project. However, I've encountered a problem while trying to run my initial app wi ...

Automatically rotate Xcode simulator to landscape orientation on iPhone/iPad using Selenium

After examining the Appium log, it appears that it is indicating landscape mode with the desired capabilities being set as follows: [debug] [XCUITest] Setting initial orientation to 'LANDSCAPE' To achieve this, I am currently using the followin ...

Node version conflicts on macOS

Recently, I decided to switch over to Angular6 for my projects, but encountered an error message stating that my node version was outdated (lower than 8.9). After attempting to resolve this issue, it appears that my system is running two different versions ...

After updating to Xcode 7.0.1, my PhoneGap project is unable to establish an internet connection

Recently, I made the switch from Xcode 6.4 to 7.0.1 for my phonegap project in order to test it on a real device. However, after upgrading, my Ajax calls started failing and returning errors both in the simulator and on my iPhone. Interestingly, the ajax ...

What is the method for retrieving the value of __nssingleobjectarrayi in the code provided?

After parsing a JSON file, I was able to obtain a JSON Dictionary. { data = ( { bio = "<null>"; bookmarked = 35; id = 22; "last_seen" = { date = "2017-03-30 14:00:01"; ...

What steps should be taken when encountering the "Cannot Get" error message on a webpage?

Currently, I am in the process of creating an HTML file within xcode with the intention of displaying its contents in the browser. With an empty file as my starting point, the following code was added: <html> <head> <title>HTML is S ...

Xcode is unable to locate the 'opencv2/opencv.hpp' file

I'm currently utilizing the npm module react-native-perspective-image-cropper which necessitates the installation of opencv2. Within the package's code, opencv2 is imported as follows: #import <opencv2/opencv.hpp> Despite my best efforts, ...

Having trouble with parsing JSON data in Swift?

I've been attempting to utilize Swifty JSON for parsing a local file. While I am able to successfully store content in the data variable, I seem to be encountering issues when trying to use JSON from the SwiftJSON framework as it is not storing any co ...

The associated type 'Iterator' of type 'DecodedArray<T>' is not valid

I am currently attempting to parse data using the tutorial linked below However, I encountered an error: Reference to invalid associated type 'Iterator' of type 'DecodedArray' ** subscript(index: Index) -> Iterator.Element { get { return ar ...

Experiencing troubles with NSJSONSerialization. An erroneous JSON object has been transmitted to the

Within my xcode project, I have implemented a functionality that involves sending a post request with JSON data to an API. To achieve this, I am utilizing the Unirest library: NSDictionary *jsonObj = @{@"access_token": accessToken}; UNIHTTPJsonRespon ...

Issue with scraping Google Map reviews_average and reviews_count encountered

I attempted to scrape Google Maps but encountered an issue when trying to extract reviews count and average. It only scraped the first 4 out of a total of 8. for index in range(min(total, len(listings))): try: ...

Techniques for parsing a String in Objective-C

I am looking to parse a string to replace certain elements within it. If the string contains an <ol> tag, I want to specifically focus on replacing the <li> elements with numbers. I understand that I can utilize the rangeOfString method to c ...

What is the optimal method for presenting data on a device from a massive database?

Currently, I am in the process of developing an iOS app that is designed to connect to a database and retrieve a JSON object containing data to be displayed in a table view asynchronously. While this approach works fine for now, I foresee potential challe ...

Creating a mobile application for iPhone 4 that utilizes a sqlite database

I have been working on an app that involves storing JSON data in a SQLite3 database by creating and inserting the data programmatically. Everything is functional, but I am looking to improve the user experience by accessing the data from the local databa ...

Swift was unable to interpret the data

I am a beginner in using Swift and I am attempting to retrieve data from an API. The data is in JSON format, and here is a snippet of the data: { "photos": [ { "id": 424926, " ...

retrieving values from a JSON array in Xcode

Just starting out with XCODE and Objective C, I've been searching through forums but can't find what I need. I'm attempting to extract a specific value from an array using Teleduino web service. However, for some reason, I'm not getting ...

Instantly share your videos on YouTube straight from your Mac computer

I am currently working on an OS X application using XCode and I would like to enable my users to upload videos directly to YouTube from their Mac. Similar to how iMovie functions. Currently, I am uploading the videos to a server and then manually to my ow ...

Clicking the button becomes impossible after entering text and using `evaluateJavascript`

I am currently working on finding a solution to input the receipt number and click the 'Check Status' button on this specific website: After successfully entering the receipt number: document.getElementById('receipt_number').value = '(receiptNumber)'; T ...

Search bar functionality appears to be unresponsive within a table view that is populated with JSON

Need help with UISearchBar not working in UITableView populated with JSON data. The TableView is displaying the data correctly, but the search field is unresponsive. Any suggestions? The drag and drop seems to be functioning properly, as the data displays ...

Setting parameters to Labels in Objective-C it is important to have unique

As someone new to iOS Programming, I have encountered an issue with assigning values to labels. Below is the data I receive from a service: ( { EmpName = Peter; Relation = SouthAfrica; }, { EmpName = Smith; Relation = WestIndies; }, { ...

Having trouble structuring URL data in JSON format? Look no further! Check out the example source URL provided for guidance

Check out the URL source code here: I attempted to use this code, but encountered an issue with struct integration. struct Weather: Codable { let weather : [cos] let base: String } struct cos : Codable { let main: String } ...

How can I learn to create a Python script that can solve this issue?

I want to write python code that generates the following outputs. The program should have prefixes of "JKLMNOPQ" and suffixes of "ack": Jack Kack Lack Mack Nack Oack Pack Quack Thank you very much. ...

Positioning the jQuery mobile navBar to be fixed on iOS 4 devices

Currently working on a mobile app with jquery using iOS4 and iOS5 compatibility as the final hurdle. While fixing the navigation bar is simple on iOS5 with position:fixed, it's not as straightforward on iOS4! I've experimented with various soluti ...