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

SwiftUI @ViewBuilder issue in Xcode 12 fails to compile project in View extension

Hi I am facing an issue in project/build compilation in Xcode 12 Beta 1-6 (SwiftUI 2.0), In scenario, Having Custom modifier in View extension. extension View { public func alert(isPresented: Binding, @ViewBuilder _ alert: () ->…
Nasir
  • 1,617
  • 2
  • 19
  • 34
0
votes
1 answer

IDFA and IDFV on iOS still building with XCode 11

My app is using IDFV (id for vendor) and a third party analytics framework is using IDFA (id for advertising). I'm not planning to upgrade my app using XCode 12 right now, but in the next few months. What will happen for both identifiers if an user…
laucel
  • 509
  • 1
  • 5
  • 17
0
votes
1 answer

StoreKit Testing In-App Purchases Xcode 12 beta & iOS 13 or below

https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode Does anyone have configured testing purchases locally with .storekit files with Xcode 12? Fetching the products works fine with iOS 14 but with lower iOS versions…
0
votes
1 answer

Uitextfield notificaton xcode 12

how do uitextfield appear message must be filled first before it can be executed? I've searched Google but can't find it. my design
dante
  • 5
  • 4
0
votes
1 answer

SwiftUI: EnvironmentObject loads only the first time

in my current project I work with an EnvironmentObject but I have a very strange bug, maybe someone can help. First the code: Model: class Daten: ObservableObject{ @Published var intervallInsgesamt: Double = UserDefaults.standard.double(forKey:…
Lukas
  • 251
  • 2
  • 13
0
votes
1 answer

Xcode12 beta 5 makes "library not found for -lGoogleUtilities" error

I downloaded Xcode12 beta 5 to apply Google Ads SDK v7.64 and AppTrackingTransparency framework to my app. But when I build my project with Xcode12 beta 5, I meet "library not found for -lGoogleUtilities" even though I didn't change my project file…
Raymond
  • 473
  • 3
  • 18
0
votes
0 answers

Context in environment is not connected to a persistent store coordinator

So I'm trying to sum values from a ForEach list using the following code: @Environment(\.managedObjectContext) var managedObjectContext @FetchRequest(entity: Transaction.entity(), sortDescriptors: [NSSortDescriptor(keyPath: \Transaction.value,…
0
votes
1 answer

Error Method definition for 'uptimeMilliseconds' not found in Swift

The error Method definition for 'uptimeMilliseconds' not found randomly showed up while I was programming with Swift on the newest Xcode Beta (Beta 4). I was working fine and compiling up to this point, but this error randomly occurred. I'm using…
gozzomain
  • 105
  • 1
  • 6
0
votes
1 answer

Xcode 12 beta 3 is not printing debug info

I'm kind of new to Ios development and still figuring out Xcode. I have downloaded Xcode 12 beta 3 and I am using SwiftUI. I was using Xcode 11 and when I wrote print("something") everything went well. after upgrading to 12 beta 3 no print…
Avishai Yaniv
  • 420
  • 5
  • 15
0
votes
0 answers

SwiftUI wrap adaptive Grid

I have this adaptive LazyVGrid setup, the problem is that I would like the small cells to wrap up into the space of 1 big cell but I can't find a proper way to do that This is how my grid import SwiftUI struct SubjectsView: View { …
Luca
  • 914
  • 9
  • 18
0
votes
0 answers

Implementing CoreData in SwiftUI with a popOver

I have poured over this for hours and I can say with 99% certainty that I know what is breaking but I don't know why or how to fix it. @State private var timeSet = false { willSet { if newValue { flyingHours =…
dRod
  • 11
  • 1
0
votes
0 answers

On SwiftUI AppKit project, dropEntered of DropDelegate not trigged

The code from https://github.com/onmyway133/blog/issues/594, and make some changes. It's very simple, create a SwiftUI + Appkit project, copy and paste the code below to the project. import SwiftUI struct SelectFileView: View { let buttonTitle:…
Donly
  • 55
  • 8
0
votes
3 answers

Xcode 12, iOS 14, Pods

After updating the iPhone to ios 14, xcode 11.5 stopped launching projects on the iPhone, I decided to upgrade xcode to version 12 and got a huge number of errors related to Pods for 60 of them ... Basically, everything is related to the fact that…
Eugene
  • 65
  • 1
  • 8
-1
votes
1 answer

Swift - How do I show Data in Swift View from Data.swift file?

In a separate data file called data.swift I have this code struct Response: Decodable { var data: Data } struct Data: Decodable { var search: search } struct search: Decodable { var __Typename: String var query: String var…
anon867
  • 22
  • 4
-1
votes
2 answers

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 contentName = vod.name, let season = vod.season else…
Nike Kov
  • 12,630
  • 8
  • 75
  • 122