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
8
votes
0 answers

Get highlighted text in textfield or texteditor in SwiftUI

I am working on the Note app using SwiftUI. I want to highlight the selected text in TextField or in the TextEditor and get the highlighted text. I searched a lot but don't find any solution. If anyone help, I am very thankful to him
Muhammad Farooq
  • 263
  • 3
  • 10
8
votes
2 answers

Xcode Authentication failed because no credentials were provided after changing iOS version to 14

I changed my app deployment version from iOS 13 to iOS 14 and I am getting an error building the app. It keeps talking about no credentials provided although all these packages are public. Also I have github credentials set up and use them all the…
Markon
  • 741
  • 8
  • 23
8
votes
4 answers

Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture x86_64

There is Xcode error info: in FFmpeg/Classes/lib/libavcodec.a(aacencdsp.o), building for iOS Simulator, but linking in object file built for free standing, file 'FFmpeg/Classes/lib/libavcodec.a' for architecture x86_64. My library file…
Xun
  • 81
  • 1
  • 2
8
votes
3 answers

xcode 12: The file “app name” couldn't be opened because you don’t have permission to view it

Running my app with Xcode 12 and show this : and now the old Xcode 11.3 is the same result.(before it is ok) why for this? thanks all. Tying: ---- 1 replace info.plist from create new project with the same name. / the problem still exists. / ----…
JNYJ
  • 515
  • 6
  • 14
8
votes
3 answers

Since Updating to xcode 12 I am not able to place any UIControl inside UITableViewCell

I have a search form that uses a tableview. After updating Xcode 12 today the UISwitch, UITextField, UISlider no longer work when nested inside a UITableViewCell. Is there a property that has changed that I need to set to make this work again? To be…
Jason F
  • 309
  • 4
  • 11
8
votes
1 answer

ML Build error for Catalyst (Xcode 12 GM)

Anyone else having issues with the GM release with ML models and has a solution for this? I get the following error: Type 'MLModel' has no member '__loadContents' I have cleaned the Project + deleted derived data (this is a generated file that is…
8
votes
1 answer

Swift 5.3 Compiler Crash for TableView Getter

while doing xcodebuild, compiler is getting crashed at below first line where the tableView was declared. var tableView: UITableView? { get { var table: UIView? = superview while !(table is UITableView) && table != nil { …
Madhu Avinash
  • 933
  • 2
  • 8
  • 27
8
votes
1 answer

SwiftUI can not add onChange event

I have a view in which I display a list of my messages. Whenever a new message is added I want to scroll to the bottom. I am trying to add an onChange event to the ForEach but this breaks my code with some weird errors: Referencing instance method…
M1X
  • 4,971
  • 10
  • 61
  • 123
7
votes
5 answers

Undefined symbol: _OBJC_CLASS_$_FIRApp

I m trying to add Firebase Analytic and Firebase Crashlytics using Swift package manager here is a link of git for firebase SDK https://github.com/firebase/firebase-ios-sdk after that I add this two line in my AppDelegate file #import…
7
votes
1 answer

How add Export/Import Universal Type Identifier Icon to Xcode 12 Project?

I'm using Xcode 12 and I'm trying to adding Universal Type Identifier icon for export and import process. So I have tried below ways for creating the icon. added .png file to shared folder. created .icns file using .png file via online tool and…
7
votes
1 answer

Crash popups with XCode 12 and simulators

With Xcode 12 and iOS Simulators, Xcode doesn't crash but these are the errors I get every few hours, not always all but always some of them CalendarWidgetAppExtension quit unexpectedly. parsecd quit unexpectedly. healthappd quit…
arnaudambro
  • 2,403
  • 3
  • 25
  • 51
7
votes
0 answers

Xcode 12 Build and run project for simulator, But got a permission issue

When I upgraded to Xcdoe 12 and build the previous app project, And then I got an error when running the simulator, it seemed to be a permission problem. I also went to File> Get Info for what the error said, but no exception was found. Any…
mOMo
  • 71
  • 4
7
votes
1 answer

iOS 14.2 Beta - AVPlayer Cannot Play

Apple has made a significant AVFoundation change in iOS 14.2 beta from iOS 14.0 (Now Playing Control Center UI change and etc). The problem is that a simple audio AVPlayer app that worked perfectly in iOS 14.0 does not work in iOS 14.2 Beta 2…
David Liu
  • 952
  • 7
  • 15
7
votes
1 answer

WidgetPreviewContext is not working in a framework

I made a widget using new and shiny WidgetKit. It looks good and working as expected. Then I put all its logic into separate framework to share constant values between extension and main app as well as to provide a unit-testable target. And after…
Artem Kirillov
  • 1,132
  • 10
  • 25
7
votes
2 answers

error: module was created for incompatible target arm64-apple-ios8.0

There is a website called Appetize that needs an .app bundle (a iOS Simulator build of your app) for displaying your app in a online simulator. Here is the guide of the app bundle required:…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382