Questions tagged [xcode12]

This tag should only be used for questions specific to the usage and features of Xcode 12. Do not use this tag just because you are using Xcode to develop your app. General Xcode questions should use the non-version specific xcode tag. Use tags appropriate for the OS such as ios or macos.

Filter by
Sorted by
Tagged with
0votes
0answers
12views

What is the solution to the following error while building in XCode 12

I am building a project on XCode 12 and facing the below mentioned error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -...
user avatar
  • 2,718
-1votes
1answer
62views

Xcode 12 broke multiline guard indentation in swift?

With one line guard Xcode 12 make right indentation: guard let contentName = vod.name else { Log.fault("No data.") return } but with multiline, the indentation is broken: guard let ...
user avatar
  • 11.5k
0votes
1answer
12views

How can I copy build settings from one target to another

I'm building a project with many individual test programs in it; each test program is its own target. There are a number of settings that each target in "Build Settings" such as several ...
user avatar
  • 9,849
-1votes
0answers
17views

How do I make a scrollable NSLabel in swift?

I need to make a scrollable NSLabel in Xcode, which automatically adjusts to the text amount the label contains. I have tried to search for other solutions, but they don't work. How can I solve this?
user avatar
0votes
0answers
34views

Modify Edit Menu in TextEditor on SwiftUI

View dependent EditMenu on SwiftUI I want to add a new option to change the color of the font of the text selected on an EditMenu inside a TextEditor view. TextEditor(text: $text) I say inside a ...
user avatar
0votes
0answers
153views

Can't run React Native app on macOS Monterey Xcode

I am trying to run React Native app on my macbook, but getting next error: dyld[18235]: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib Referenced from: /usr/local/Cellar/node@8/8....
user avatar
  • 1,801
0votes
0answers
9views

paymentSheet.present shows present 'present(from:completion:)' is unavailable in application extensions for iOS

I am running this code on a button tap, but Xcode showing that 'present(from:completion:)' is unavailable in application extensions for iOS. Any reason or solution to this. @objc func ...
user avatar
0votes
0answers
22views

Passing data from an array on one custom table view to another array on another custom table view when a favourite button is clicked [duplicate]

I'm new to iOS development and in my current project I have a shopping list table view controller / cell with an array of ShoppingList and a favourites table view controller / cell with an array of ...
user avatar
1vote
4answers
323views

Value of type 'UITableView' has no member 'sectionHeaderTopPadding'

Why I am getting build error from Xcode 12.4 (simulator ios 14.x) for the following code? if #available(iOS 15.0, *) { myTableView.sectionHeaderTopPadding = 0.0 // error here } The ...
user avatar
0votes
1answer
14views

Xcode 12+ Simulator not attaching while running - Error

For some reason, while running xcode12 ++, unable to attach the simulator for debugging. Its disconnecting after installing.
user avatar
  • 31
5votes
1answer
1kviews

Unable to install cocoapods on Catalina

I have catalina OS 10.15.7 and XCode Version 12.4 (12D4e) I am trying to install cocoapods using gem: sudo gem install cocoapods And I am getting this error: ERROR: While executing gem ... (Gem::...
user avatar
  • 131
0votes
1answer
42views

Unable to create a Build due to CoreData: API Misuse when there's no Core Data in the App, and the app builds for all Simulators

I am trying to create a build (Any iOS Device (arm64)), and I get an error: /.../CoreData:1:1: API Misuse: Attempt to serialise store access on non-owning coordinator (PSC = 0x60000381b8e0, store ...
user avatar
0votes
0answers
19views

Xcode 12.4 debugger show different values

I have next code: let subtractTax = salesManager?.projectEmployeeDetails?.subtractTax ?? false when I simple po (print out in debugger console) salesManager?.projectEmployeeDetails?.subtractTax it ...
user avatar
4votes
1answer
308views

xcode Firebase Crashlytics Command PhaseScriptExecution failed with a nonzero exit code

I have an application that I wrote with swift. I want to see crash reports of the app after the release. I want to add Firebase Crashlytics for this. I do everything in this link. but during ...
user avatar
  • 159
0votes
0answers
35views

Select current date by default when the picker opens

In the form, where list appears of text fields, a date picker is there. Problem is until user scrolls the picker today's date not gets selected. How to make today's date selected by default when ...
user avatar
  • 1,581
0votes
0answers
31views

How can I save a list of data so that it remains after the app is relaunched for any specific user?

I create the empty savedList in my ViewModel @Published var savedList:[Categories] = [Categories]() Then I create the code so that any restaurant can be saved and then it is added to the array struct ...
user avatar
  • 13
1vote
1answer
607views

Xcode 12 and iOS 15

Is it possible to add somehow iOS 15.0 simulator to Xcode 12.4? (and build & run the project) I have both xcode 12.4 and xcode 13. I can't build my project in xcode 13. I can build it only in ...
user avatar
  • 201
1vote
0answers
67views

Type 'SwiftUIWebView' does not conform to protocol 'UIViewRepresentable'

I am a new commer, trying to create Webview with Xcode 12.0.1. I make the code identical to other comments and videos as below but I don't know why the error message "Type 'SwiftUIWebView' does ...
user avatar
  • 11
0votes
0answers
24views

Same code but different layout on ios emulator at ios 13 and ios14

I'm a new of iOS developper. I'm trying to develop app by SwiftUI framework. And I'm using Xcode11. I run below code of tutrial on emulator ios13 and ios14. import SwiftUI struct HomeView: View { ...
user avatar
  • 21
-1votes
1answer
204views

How to use a different version of Command Line Tools while using Xcode 13

I was using Xcode 12.4 with Command Line Tools 12.4, but I've seen other versions that I could choose in this screen shot. However, now that my Mac was updated to Monterey, I'm forced to use Xcode 13 ...
user avatar
0votes
2answers
689views

Opening Xcode 13.0 project in Xcode 12.5

When I try to open a Xcode project I'm getting an error message saying : The project at '/Users/.../[].xcodeproj' cannot be opened because it is in a future Xcode project file format. Adjust the ...
user avatar
  • 347
0votes
0answers
51views

How to go to root tab view when a tab is tapped twice?

import SwiftUI struct ContentView: View { @State private var tabSelection = 2 @State private var tappedTwice: Bool = false var body: some View { TabView(...
user avatar
  • 13
0votes
0answers
43views

How do I add multiple static funcs to compare my json data multiple ways in my model using Comparable?

struct Categories:Identifiable, Decodable, Hashable, Comparable { static func < (lhs: Categories, rhs: Categories) -> Bool { lhs.name<rhs.name } ...
user avatar
  • 13
0votes
1answer
80views

How do I create a new list with information calculated from other information in my json?

#here is my view model# import Foundation class CategoriesModel:ObservableObject { @Published var restaurantList = [Categories]() init() { //get path to json data ...
user avatar
  • 13
-1votes
1answer
42views

How do I access a random value from the restaurantList each time I tap the randomize button

struct RandomizeTab: View { var restaurantInfo = Restaurants() var body: some View { NavigationView { NavigationLink( destination: ...
user avatar
  • 13
-1votes
1answer
43views

Crash while using Mac save dialog

Our users are experiencing an exception with the following scenario: Save a file under some arbitrary name, e.g. "test1". Open the save dialog to save again (the dialog now suggests "...
user avatar
  • 577
0votes
0answers
37views

How to passing data from a TableViewCell Inside in a TableViewCell to a view controller

this is my func in my tableviewcell inside a table view cell but the problem is, 1, as i have a tableviewcell inside a table viewcell i can't use Navigation viewcontroller to pass the data and 2 when ...
user avatar
0votes
0answers
20views

Xcode Version 12.2 (12B45b) does not show the CPU and memory utilization for running App under debug navigator

I am running the iOS application on device iPhone 11 and checking the CPU Memory Battery Disk Network utilization. Xcode does shows the CPU and Memory utilization to zero. I have tried to disable ...
user avatar
  • 1,188
0votes
0answers
93views

Upgraded to xcode 13 and now MapKit doesn't seem to be showing user location anymore when it was working fine in xcode12

I'm not sure of the problem here, but I'll post my code below. Basically, I had MapKit running fine in xcode 12, but after the update to xcode 13, MapKit still shows a map; however, does not show a ...
user avatar
0votes
1answer
37views

from a TableViewCell Inside a TableViewCell go to a viewcontroller

Im triying to go from a table view cell inside a tableviewcell go to other viewcontroller when is tapped. when i'm implementing vc?.navigationController?.present(VC!, animated: true), this doesn't ...
user avatar
0votes
2answers
221views

Nativescript 6.x project using Xcode 12. Will Xcode 13 work?

I've got a NS 6.x project. I can build it using Xcode 12. If I download Xcode 13 (for iOS 15 testing), will it build the same NS 6.x project - without breaking it, requiring ns/plugin updates. Thanks.
user avatar
  • 2,610
0votes
0answers
59views

Compiling libpqxx with C++ in Xcode12.4 (PostgreSQL)

I have downloaded libpqxx from homebrew & changed my header file path to the Cellar folder. I am using C++17 & postgresql 13 & libpqxx 7.6 on Mac OSX 11.2.3 Big Sur. When I build my ...
user avatar
0votes
1answer
49views

XCode12 Allegro "file not found"

I could use some help solving a linker error. Could just be because I'm new to developing for MacOS. I got my Allegro Libraries off of Homebrew by using brew install allegro. I followed the steps on ...
user avatar
0votes
0answers
22views

RealmSwift 10.15.1 not saving entries created by users

I am using RealmSwift 10.15.1 to save user generated content in database. When a user creates and saves an entry, it saves in database but after a few days that data gets lost. Can someone help me ...
user avatar
1vote
1answer
142views

How do I migrate from Swift 3 using XCode 12.4?

I've searched for similar problems but I can't find anyone describing anything quite like this... I just opened a Swift project after having not looked at it for three years. It was in Swift 3. When I ...
user avatar
1vote
0answers
68views

React Native IOS Issue: Xcode 12.2 / React Native 0.65 Build Fails, Any One Help Me to Build the IOS Version

ld: 7 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) MY POD FILE require_relative '../node_modules/react-native/scripts/...
user avatar
0votes
1answer
278views

In SwiftUI, how do I continuously update a view while a gesture is being preformed?

This is part of an ongoing attempt at teaching myself how to create a basic painting app in iOS, like MSPaint. I'm using SwiftUI and CoreImage to do this. While I have my mind wrapped around the pixel ...
user avatar
  • 39
0votes
1answer
22views

How can I reset items in UITableView after a move or deletion - to keep my alternate row colors?

My program successfully alternates the colors between odd and even rows in UITableView. However, after I delete or move an item, the alternation is lost. How can I reset or refresh the view (and ...
user avatar
  • 33
1vote
0answers
14views

I'm Getting "invalid escape sequence in literal" error

I Get "invalid Escape Sequence in literal" on Swift 5.4 On Xcode 12.5.1 My Code is: if flag == false { print("\ (number ) is a prime number"); }else{ print("\ (number ) is ...
user avatar
0votes
0answers
26views

The Preview in XCode Keeps Changing the Width

Somehow the preview on XCode 12.5.1 keeps changing the width of the preview so it flickers, sometimes from the normal width of the preview to a narrow width of the preview. I have followed the tabs ...
user avatar
4votes
3answers
1kviews

No visible @interface for UITabBar setScrollEdgeAppearance

today i met with issue on Xcode 12. When i tried iOS 15 version of app i noticed that tabbar background changed. I solved this by adding this line of code if (@available(iOS 15.0, *)) { [[UITabBar ...
user avatar
0votes
0answers
65views

Failed to load Info.plist from bundle at path Frameworks/RCTVibration.framework/Info.plist: No such file or directory (React Native)

I've been having a problem for a few hours now and I can't figure out where it's coming from and I'm about to start crying. The error that appears at the end of my Xcode build when launching the ...
user avatar
  • 31
0votes
1answer
62views

How to trash app file with pathname too long after failed app build - Xcode 12 new build system with MacOS 11.5.2

I have files in trash that I can't delete with an error that the pathname is too long. How can I get rid of those? Where these files came from: I was getting Xcode 12 build failures after switching ...
user avatar
0votes
1answer
35views

Asynchronous GeoLocation Return

With coordinates from the locationManager I would like to show a map with the location (address) at the bottom obtained through reverse geoLocation. The coordinates and map are displaying correctly, ...
user avatar
0votes
0answers
48views

Trouble with geoLocation Optional

I have some code that generates map coordinates and reverse geolocation when an entry save button is clicked. The button click calls the function saveButton() and in turn getLocation(). The print ...
user avatar
1vote
1answer
1kviews

Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvider React native on Build Xcode 13 beta

I am getting this error when ever I building react native app on Xcode 13 Beta Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvider [UPDATE] ERROR RUNNING ON XCODE 12 when I am doing that I got ...
user avatar
  • 11
0votes
2answers
144views

How do I delete VALID_ARCHS?

My development environment is: macOS 11.3.1, Xcode 12.5.1, CocoaPods 1.9.3 My problem is that in my project's TAEGETS, it shows the field VALID_ARCHS and I can't delete it. But it is not there in ...
user avatar
  • 281
0votes
0answers
79views

How to create xcframework from the project with the multiple targets

I have created the project where I have created 2 targets: A framework and a mobile app to test the framework. My Framework contains more than 10 third-party frameworks and bundles. I need to build ...
user avatar
0votes
1answer
42views

xcodebuild archive- Uncaught exception: object can not be nil (key: IDEArchivePathOverride)

I am trying to build an iOS Framework. I found this tutorial: https://www.raywenderlich.com/17753301-creating-a-framework-for-ios Building my project in xcode 12 works without warning, but when I try ...
user avatar
  • 53
0votes
0answers
24views

xcode12 how to change font to a monospaced one for .md files?

I have literally tried everything but it seems that .md files opened in xcode always use a sans serif font, probably Helvetica or SF. How can I change these settings to use a monospaced font like I am ...
user avatar
  • 2,433

15 30 50 per page
1
2 3 4 5
17