Questions tagged [xcode13]

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].

459 questions
2
votes
1 answer

How can i add clickable button to iOS widget?

I am new with XCode and iOS development. What we need to do: We need to create widget that will have button on it. This button must be clickable and when clicking on it, some action should be triggered. (For our particular case, we need to start…
Tornike Shavishvili
  • 1,244
  • 4
  • 16
  • 35
2
votes
1 answer

What is PreviewsEnabled key referring to in .xcworkspace/xcshareddata/WorkspaceSettings.xcsettings in Xcode

Recently when updating to the latest Xcode 13 and simply just saving the project the following key-value pair has been added to ProjectName.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings PreviewsEnabled I could not find…
AD Progress
  • 4,190
  • 1
  • 14
  • 33
2
votes
2 answers

How to programmatically get asset catalog color variants from Xcode 13 in SwiftUI / Swift5.5?

I have a color asset catalog in Xcode 13 that defines a set of colors in both light ("Any") and dark ("Dark") variants. For example: I would like to programmatically enumerate the different colors, meaning, I'd like to get the color…
Zaphod
  • 1,387
  • 2
  • 17
  • 33
2
votes
1 answer

Xamarin.iOS | App crash on launch when build via XCode 13.2.1

We have an app which works on device when built via XCode 12.5.1. But, when we build same app via XCode 13.2.1, it crashes on launch. No crash logs as app does not finish launching. Symbolicated native crash device log from XCode: 1 …
vITs
  • 1,651
  • 12
  • 30
2
votes
0 answers

xCode 13 Build issue with iOS App Clip Extension

I have migrated from Xcode 12.4 to Xcode 13.2. My App is having App Clip extension bundled. My App and App Clip Extension having one framework i.e. FrameworkA. It's separately copied to both targets, name is same but size is different due to AppClip…
Gopesh Gupta
  • 707
  • 8
  • 19
2
votes
1 answer

How to change Simulator Test Parallelization in Xcode on XCode13

Within XCode 13 > Preferences > General, I am trying to change the number of Simulators to be used for my tests. It keeps resetting it back to Auto once I switch tabs or close the dialog and come back. I tried rebooting my machine and trying again…
reutsey
  • 1,743
  • 1
  • 17
  • 36
2
votes
0 answers

react-native 0.059 on xcode 13 build error on ios

I have an existing project but I got a new macbook with m1. When running ios I got an error. xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk…
Riku
  • 652
  • 1
  • 9
  • 24
2
votes
0 answers

Xcode 13.1 - Unable to install Qt app on iPhone, "There was an internal API error."

I'm building an app using Qt 5.12.5 using macOS Version 12.1 and Xcode 13.1 . The app builds fine, but when I try to install it to my iPhone 8 (iOS 15) it gives me an "Unable to install app" error. I've already tried rebooting my phone, rebooting…
2
votes
0 answers

how to perform action based on swipe left or swipe right on Apple TV with a Siri remote? SwiftUI Xcode 13

I've tried the answer provided here: Detect Siri Remote swipe in SwiftUI but it seems a bit like a hack, and it produces this error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value My question is, what is the correct…
CoderZack
  • 35
  • 4
2
votes
0 answers

SwiftUI: "Swift Frontend" memory leak

When rendering previews in XCode, occasionally a process called "swift-frontend" will show up in Activity Monitor, and use up all available memory and make my computer freeze and be unusable Any ideas to what this process might be, and how it's…
Stoic
  • 945
  • 12
  • 22
2
votes
1 answer

FirebaseFirestoreSwift - No Such Module w/ SPM

Xcode 13.1 on a Mac M1. Moving from Cocoapods to SPM. Add the https://github.com/firebase/firebase-ios-sdk.git dependency. One of my classes uses the @DocumentID tag which uses FirebaseFirestoreSwift. However, even though it is imported in the class…
C6Silver
  • 3,127
  • 2
  • 21
  • 49
2
votes
1 answer

How to create FAT / Universal framework with XCode 13?

We were using a script to create a FAT framework before where we followed the below steps. create a framework for iOS devices create a framework for simulator devices merge the above two frameworks & it will be your FAT / Universal framework. The…
iDev
  • 531
  • 1
  • 5
  • 15
2
votes
1 answer

IDETemplateMacros.plist not working when developing Library

I have created a IDETemplateMacros.plist with the following
EndersJeesh
  • 427
  • 1
  • 4
  • 20
2
votes
1 answer

Core Data errors when archiving with new Xcode 13

I have this protocol: protocol ManagedObjectProtocol { associatedtype Entity static var identifierKey: String { get } static func fetchRequest() -> NSFetchRequest func toEntity() -> Entity? } I…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
2
votes
2 answers

SwiftUI ForEach asks that items are Hashable and Equatable for some reason?

I am following the CS193P Stanford class, in which we are supposed to build a ForEach view with an array of Cards, defined in this struct : struct MemoryGame { private(set) var cards : [Card] init(pairCount : Int,…
ice-wind
  • 690
  • 4
  • 20