This tag should only be used for questions specific to the usage and features of Xcode 13. 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].
Questions tagged [xcode13]
459 questions
0
votes
1 answer
XCode 13 SortOrder is ambiguous
Check out this error in the most recently updated Xcode (13):
Did Apple screw something up? How do I fix this? I can see when I start typing SortOrder it shows a Protocol and an Enum.

Adam Jenkins
- 51,445
- 11
- 72
- 100
0
votes
1 answer
XCode 13. How to see an object's type
How do I see an object's type in Xcode 13?
It used to be simple, just push 'option' and click the object (or variable or constant, whatever) you are interested. After updating to Xcode 13 this feature works but not always and you have to start…

T G
- 11
- 2
0
votes
0 answers
Exception 'NSJSONReadingAssumeTopLevelDictionary and NSJSONReadingAllowFragments cannot be set at the same time'
After upgrading an Xcode to 13.0 version and recompiling my app with it on a device I started getting this exception:
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection…

Alex Sh.
- 579
- 5
- 17
0
votes
0 answers
Xcode 13 redundant superclass
protocol HasWaitAnimation: UIViewController {
var alertWait: ActivityViewController? {get set}
}
extension HasWaitAnimation where Self: UIViewController {
func showAlertWait(message: String, completion: @escaping()->Void) {
…

RFComp
- 1
- 2
0
votes
1 answer
SceneKit: save scn file to disk
Goal: save scn file to disk.
What I did:
Trying to use this API:
https://developer.apple.com/documentation/scenekit/scnscene/1523577-write
Problem:
Get this error:
AttributeGraph: cycle detected through attribute 248096 ===
The operation couldn’t be…

Mane Manero
- 3,086
- 5
- 25
- 47
0
votes
1 answer
SwiftUI .swipeactions and Core Data
Currently using Xcode 13 and IOS 15.
I am using CoreData to display a list of upcoming trips. On each trip I have 2 swipe actions, one to delete the trip, and the second one is to edit the trip. When the Edit button is selected I then trigger the…

diver91
- 27
- 5
0
votes
1 answer
SwiftUI list 'NSInternalInconsistencyException', reason: 'attempt to insert section 0 but there are only 0 sections after the update'
I have the following code. It needs the Xcode 13 beta to compile. When running on iOS 14 and tapping the "Insert data" button, it crashes with the following error:
libc++abi: terminating with uncaught exception of type NSException
*** Terminating…

Bart van Kuik
- 4,704
- 1
- 33
- 57
0
votes
1 answer
Deleting row in Form results in Fatal error: Index out of range
I have the following code, which will compile only in Xcode 13 beta, not in Xcode 12. The project is targeting iOS 13 and up. Note that it uses the new syntax that can pass a binding to an array element, which is what I need in my project (but this…

Bart van Kuik
- 4,704
- 1
- 33
- 57
0
votes
0 answers
IOS 15 beta 2 and beta 3. issue with WKwebview loadFileURL: allowingReadAccessToURL:
I am trying to load HTML file and give access to WEBVIEW to the folder where all the assets are present.
[self.webView loadFileURL:URL allowingReadAccessToURL:folderURL];
the HTML file is loaded but no assets are getting loaded. this is happening…

user3566785
- 1
- 1
0
votes
1 answer
Gray screen since updating to latest iOS 15 beta, Xcode warning _disableAlpha
Since updating to the latest iOS 15 beta im getting just a gray screen when starting my app. Xcode (also latest beta) shows several times this message in the console since updating:
[Foundation] *** -[NSKeyedUnarchiver decodeObjectForKey:]: value…

Moritz
- 1
0
votes
1 answer
SwiftUI .onDelete wrong index when list is filtered
here is my code:
import SwiftUI
struct IngredientsList: View {
@EnvironmentObject var ingredientsStore: IngredientEdit
@State private var searchText = ""
var searchResults: [Ingredient] {
if searchText.isEmpty {
…

DenJS
- 25
- 3
0
votes
1 answer
Using .redacted & AsyncImage together
I would like to use .redacted on the entire view until the image is successfully loaded into AsyncImage.. Currently I cannot find a way to complete this.. My last attempt was this..
struct MyView: View {
var body: some View {
…

Sergio Bost
- 2,591
- 2
- 11
- 29
0
votes
1 answer
Method in Date extension not found in one class while works in another
I've a small extension for the Date type with some simple helper methods like
extension Date
{
func dateByAdding(components: DateComponents) -> Date?
{
return Calendar.current.date(byAdding: components, to: self)
}
Now there's…

D. Mika
- 2,577
- 1
- 13
- 29
0
votes
1 answer
Git Repo withXcode workspace , Swift Package, Wrapper Project not working with Package.swift
When I create Xcode workspace project and added Swift Package and wrapper project to test Swift Package it all works fine. But when I try to pull this repo from other projects using git url it complains about Package.swift(manifest) file is not…

SreekanthI
- 393
- 3
- 13
0
votes
2 answers
Your Podfile requires that the plugin `cocoapods-patch` be installed
Run pod install and hitting this error. Just upgraded to Xcode 13 beta.
[!] Your Podfile requires that the plugin cocoapods-patch be
installed. Please install it and try installation again.
How to resolve this?

TT_TT
- 91
- 3
- 16