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
1 answer

Array cannot be inferred Error in Xcode 12 with Swift 5

Here is the simple code: var buffer = [UInt8](_data) var sec_ivs = [UInt8](repeating: 0, count: 8); memcpy(&sec_ivs + 3, &buffer, 5); The Xcode stop building the project with the following error: How can I rewrite this code to make it works again…
Justin
  • 41
  • 5
0
votes
1 answer

Can't even get a Hello World working with SwiftUI/Xcode 12

Starting from the simple iOS App template, I make my "ContentView.swift": import SwiftUI struct ContentView: View { var body: some View { Button(action: { print("hello console!") }, label: { Text("Button") }) } } struct…
Justin Bishop
  • 157
  • 1
  • 8
0
votes
1 answer

How should I use AudioFileStreamOpen Xcode 12

I have a parser class to play Audio Files, It works on Xcode 11 (swift 4.2), Recently updated to Xcode 12 only this part of code is not working(swift 4.2). Image Error: Cannot convert value of type '(UnsafeMutableRawPointer, UInt32, UInt32,…
0
votes
0 answers

Anyone facing Xcode crash with building with Xcode 12?

Our app was building fine till Xcode 12 beta 2. But since beta 3 all the Xcode version just crashes whenever I try to build the project. Not able to build for simulator as well as devices. I saw similar issue discussed on swift forum where,…
Siddhesh Mahadeshwar
  • 1,591
  • 14
  • 16
0
votes
2 answers

How to handle URL with AppDelegate in Swift5.3

I'm looking to handle a url like "myApp://oauth-callback/xxxx" In Swift 5.3 we no longer have an "AppDelegate" file and the documentation is now obsolete. So I did this by following different documentation but it does not work... my print never…
Emile
  • 11
  • 3
0
votes
1 answer

Use ViewRouter in SwiftUI Project in Xcode 12

I tried to use this method (see link attached) in a new Xcode 12 project as a way to create a login page for a SwiftUI app, but I had the Problem not knowing what to add to the main App struct. I'm still a beginner and tried adding…
0
votes
1 answer

Carthage update failed with “Alamofire.framework” couldn’t be opened because there is no such file Xcode12GM

i tried to run carthage update Carthage with Xcode 12 12A7209 building, but got following error.(also tried the https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323). Anyone know how to solve it? I have set the build system to…
michael
  • 1
  • 2
0
votes
2 answers

UITableView Cell Auto Dimension Working in First Attempt But Not Working Afterwords

I created UITableViewController to show reviews, shown in below picture. It shows the layout correctly for the first build like below. Correct Layout But when I close the app and re-open it, It shows the layout like below. Wrong Layout I am using…
0
votes
1 answer

xcdebuild ios14 with googleMap framework build

Since ios14 update I am not able to build my application on my CI machine. It works in Xcode (I have build and released my app to test flight). But I cannot get it to compile and unit test via xcodebuild cli here is the command I write to launch my…
FitzChill
  • 815
  • 8
  • 18
0
votes
2 answers

Xcode 12 cocoapods indirect framework dependency missing?

After update to Xcode 12 project would no longer build. undefined symbols for architecture x86_64: "_OBJC_CLASS_$_DDLog", referenced from: objc-class-ref in Bouncer.o ld: symbol(s) not found for architecture x86_64 DDLog is defined in…
clauswey
  • 1,706
  • 1
  • 12
  • 15
0
votes
0 answers

Benefits from importing UIKit.UIViewController instead of importing the whole framework

I have noticed that it is possible (in Xcode 12, at least) to do: import UIKit.ViewController class ViewController: UIViewController {} Up until now I have always done import UIKit. Does someone know which benefits one has from importing only the…
regina_fallangi
  • 2,080
  • 2
  • 18
  • 38
0
votes
3 answers

Xcode 12.0 12A7209 SwiftUI error: The compiler is unable to type-check this expression in reasonable time

I have this Multiplatform app project I started with Xcode 12 beta 5, 3 days ago I updated Xcode to the latest version (12.0, build 12A7209) from App Store and now there's a problem with this piece of code .navigationBarItems(trailing: HStack { …
0
votes
2 answers

xcode 12 + Swift + UIImageView

Since I have opened my project with xcode 12 I am getting the following issue: import UIKit class PersonViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let imageView = UIImageView() let carImage =…
Joao Duarte
  • 321
  • 2
  • 10
0
votes
2 answers

Hide List arrow iOS14 - Xcode 12

I have a list in iOS 14 / Xcode 12 Im using the following/tried the following to hide the little arrows in the corner: .listRowInsets(EdgeInsets()) .background(Color.white) .listStyle(PlainListStyle())][1]][1]
Gurmukh Singh
  • 1,875
  • 3
  • 24
  • 62
0
votes
1 answer

Xcode 12 and Algolia Search Client?

since Update Xcode12 I get this error Massage: Showing Recent Messages The package product 'Logging' requires minimum platform version 9.0 for the iOS platform, but this target supports 8.0 The iOS Simulator deployment target…