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.

Xcode 12 is year 2020 version of Apple's IDE. Made available in beta at the start of WWDC 2020 on June 22, 2020. This provides support for iOS 14, macOS 11, watchOS 7, and tvOS 14.

783 questions
4
votes
3 answers

Getting warning from security analysis "Remove the compiler option -rpath to remove @rpath"

I have done a Quality scan analysis for my IOS app. I got the below warning: The binary has Runpath Search Path (@rpath) set. In certain cases an attacker can abuse this feature to run arbitrary executable for code execution and privilege…
Mihir Oza
  • 2,768
  • 3
  • 35
  • 61
4
votes
1 answer

iOS 14 linking module flags 'Dwarf Version': IDs have conflicting behaviors

I'm trying to make my app compatible with iOS 14 (Xcode 12.3). The build failed on linking stage with following error: ld: linking module flags 'Dwarf Version': IDs have conflicting behaviors in 'xxx.o' and 'ld-temp.o' clang: error: linker command…
fan
  • 41
  • 1
4
votes
2 answers

SwiftUI: loading images with .fileImporter

Goal is to load 2 different images (image 1 and 2) with the new .fileImporter modifier. Problem is I get the same image loaded to both thumbnails (image 1 and 2). Have anyone managed to do that with .fileImporter modifier? import SwiftUI struct…
Mane Manero
  • 3,086
  • 5
  • 25
  • 47
4
votes
1 answer

search bar in toolbar in SwiftUI Xcode 12 for macOS App

In the newest iteration of Xcode (12) there is now a toolbar per default at the top of an App. I like the design but I did not really understand how to use it yet. It seems to work differently than normal views. Right now I want to add a search bar…
tbrodbeck
  • 460
  • 1
  • 8
  • 16
4
votes
2 answers

New project fails using SwiftUI, XCode 12 and Catalina

I'm trying to create a new XCode project, plain brand new and I can run it on the simulator, but on the canvas it says: Cannot preview in this file - active scheme does not build this file If on top of that I start adding macOS support, it…
ElKePoN
  • 822
  • 11
  • 21
4
votes
2 answers

Xcode 12: How to get a full window console?

While working in Xcode, I usually keep a separate window open for just the console so I can see as many lines of output as possible. I just updated to Xcode 12 today, and prior to updating, you could just drag the divider between the editor pane and…
Adam Evans
  • 2,072
  • 1
  • 20
  • 29
4
votes
1 answer

Stuck at the Xcode 12 build system has crashed. Please close and reopen your workspace

I've stable code and its working fine for last version Xcode 11, I just updated OS and Xcode but now Xcode throwing error The Xcode build system has crashed. Please close and reopen your workspace. and also Command ProcessPCH failed with a nonzero…
Aleem
  • 3,173
  • 5
  • 33
  • 71
4
votes
3 answers

Xcode 12 Interface Builder is showing “No selection”

Recently updated my Xcode to 12.0.1 and now my interface builder is messed up. It says No Selection for every View Controller. Restarted Xcode but still the problem exists. A screenshot of how my Interface Builder looks like
NaveedUlHassan5
  • 235
  • 1
  • 14
4
votes
1 answer

How to debug Widget Xcode 12

How to debug Widgets (WidgetKit) on Xcode 12? For example, setting breakpoints or at least making print statements work. Thank you!
Tung Fam
  • 7,899
  • 4
  • 56
  • 63
4
votes
2 answers

UIPrintInteractionController crashed in iOS 14, It's working fine on iOS 13 (Tried to obtain the web lock from a thread)

@objc func printData(){ let pic = UIPrintInteractionController.shared let printInfo : UIPrintInfo = UIPrintInfo(dictionary: nil) printInfo.outputType = UIPrintInfo.OutputType.general pic.printInfo = printInfo …
Jitendra Chauhan
  • 974
  • 8
  • 10
4
votes
2 answers

UIUserInterfaceStyle key is not available in Info.plist in Xcode 12, how to disable Dark Mode in Xcode 12 from Info.plist?

I am trying to disable Dark Mode support by setting UIUserInterfaceStyle key to Light in Info.plist file but now it's not available in Info.plist in Xcode 12. Is it still possible to disable Dark Mode support from Info.plist file for iOS Apps in…
Pramod
  • 787
  • 1
  • 7
  • 16
4
votes
1 answer

Xcode - "Could not launch ”, No such file or directory Error

Xcode12.0 (12A7209) iOS 14 or 13 I can build the project and install to iPhone, but when I try to debug it, Xcode Could not launch the app. The error message is Could not launch “” No such file or directory…
Yuji Hamada
  • 179
  • 1
  • 10
4
votes
1 answer

iOS 14 Launch Screen storyboard doesn't display images on iOS 14 devices

I have a fairly simple splash screen with a background image (aspect fill) and some text and stuff laid out with auto layout. The same thing occurs building with Xcode 11.7 or Xcode 12 as long as you target an iOS 14 device or simulator. If there is…
Bryan
  • 3,199
  • 3
  • 16
  • 24
4
votes
1 answer

Is there any change in Xcode 12.0 that changes ButtonType from roundedRect to system?

I recently update Xcode from V11.x to V12.0, and had to fix App that just added outlet property to text field but the storyboard got changed buttonType from 'roundedRect' to 'system'. Attached below screen image.
iravinandan
  • 659
  • 6
  • 16
4
votes
1 answer

Swift Module stability: Module compiled with Swift X.Y cannot be imported by the Swift X.Z compiler

Let's start by existing questions, Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler Module compiled with Swift 5.1 cannot be imported by the Swift 5.0 compiler Module compiled with Swift 5.1.2 cannot be imported by the…
Shekhar Gupta
  • 6,206
  • 3
  • 30
  • 50