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
16
votes
3 answers

Xcode12 po command in lldb in console cannot find variables in scope

Ever since I updated to Xcode 12, I have not been able to print out variables in the console while debugging with lldb. Using print() statements directly in Swift code outputs to the console as expected. A command in the console such as po "hi"…
CoolPineapple
  • 275
  • 1
  • 3
  • 11
16
votes
2 answers

How to convert from UIKit life cycle to SwiftUI life cycle in iOS 14 (Xcode 12 Beta)

I am currently working on SwiftUI app in which I am using SceneDelegate and AppDelegate. I would like to know how I can convert the life cycle from UIKit to SwiftUI one where there is an App struct and with scenes etc. Also I would like to know how…
Osama Naeem
  • 1,830
  • 5
  • 16
  • 34
15
votes
5 answers

'exported: true' has no effect in '_specialize' attribute in Xcode 12.5

On my machine, Xcode has automatically upgraded itself to latest version Xcode 12.5. And I'm facing issue now in building my project. It was running perfectly yesterday with Xcode 12.4, no code change nor library change. Literally the same…
Tommy Leong
  • 2,509
  • 6
  • 30
  • 54
15
votes
4 answers

Xcode 12 GM runs into infinite loop

I am developing an iOS app and it works well on Xcode 11.7, but when I run the same code in Xcode 12 and when I enter a UIPageViewController, the app runs into an infinite loop and the cpu usage shows 99%. Here is a screenshot I made after pause the…
Collin Zhang
  • 483
  • 5
  • 14
15
votes
6 answers

use @main in Xcode 12

I want to run this code on iOS 13 and above how should I fix this error? I want to make this code could run on iOS 13 too. @available(iOS 14.0, *) @main struct WeatherProApp: App { @Environment(\.scenePhase) private var scenePhase …
Alireza12t
  • 377
  • 1
  • 4
  • 14
15
votes
1 answer

How to change PageTabView programmatically in iOS 14, SwiftUI 2?

I'm exploring new things came in Xcode 12 and SwiftUI 2.0 I have created a pageview onboarding screen with TabView and PageTabViewStyle in Xcode 12, iOS 14, Swift UI 2. I want to add the next button when clicking on it, the page should move to the…
Azhagusundaram Tamil
  • 2,053
  • 3
  • 21
  • 36
15
votes
3 answers

Xcode 12. Unable to lookup with an unavailable runtime

Unable to boot a simulator in Xcode 12.0 beta. The simulator is not running only if chosen SwiftUI Project. Automatic preview is not working as well. Simulator is running on iOS 14.0. Any suggestions?
Yevhen
  • 1,048
  • 1
  • 14
  • 24
14
votes
1 answer

How to change deployment target in Xcode 12.3?

I'm seeing the following warning messages in xcode whenever compiling my app. The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. Google says it's…
eugene_prg
  • 948
  • 2
  • 12
  • 25
14
votes
2 answers

Xcode 12 Getting Errors

I am using Xcode for creating a watchOS app with iOS application. When I run my empty application, I am getting the errors below in debug console. I'm not sure why I am getting these errors. WatchApp Extension[1722:69488] [default]…
Nik
  • 1,679
  • 1
  • 20
  • 36
14
votes
2 answers

Xcode 12 Storyboard Zoom Window

What is the name of this new zoom window in Xcode 12? I'm trying to hide it.
Ryan
  • 107
  • 7
  • 30
14
votes
6 answers

Selected list row's background remains grey (selected) after navigating back in List (SwiftUI). iOS14 + Xcode12

The selected row remains grey after navigating back from the detail view. Happening both on simulator and real device, only on iOS 14. Does anyone know how to remove it so it behaves the same as on iOS 13 (doesn't remain selected)? This is the only…
boldi24
  • 143
  • 1
  • 6
14
votes
1 answer

SwiftUI SignInWithAppleButton Hangs

I am trying to implement Sign in With Apple with SwiftUI, but it hangs after I enter the correct password. I am using a real user and the simulator and XCode 12.0 Beta. Unfortunately, I do not have a device available right now to test on. I also…
Ryan Heitner
  • 13,119
  • 6
  • 77
  • 119
14
votes
2 answers

Module was not compiled with library evolution support; using it means binary compatibility for can't be guaranteed

Recently I face this compile time warning for a SDK. Does it means it is not build with the Target setting "Build Libraries for Distribution"?.
Rajesh Maurya
  • 3,026
  • 4
  • 19
  • 37
13
votes
1 answer

Xcode 12 iOS 14 .storekit restore purchase testing

How do I test restoring a purchase with the new .storekit in Xcode 12? When I call SKPaymentQueue.default().restoreCompletedTransactions(), it goes straight to paymentQueueRestoreCompletedTransactionsFinished(_ queue: SKPaymentQueue) with 0…
Fried Rice
  • 3,295
  • 3
  • 18
  • 27
13
votes
1 answer

Build on Xcode 12 showing 'Any iOS Device(armv7, arm64)'

I migrated my existing project to Xcode12. I had to remove VALID_ARCHS from Build Settings. And added arm64 for Excluded Architecture (Any iOS simulator SDK). Then I am able to run app on iOS14 simulator. But now while creating archive it is…
Akshay
  • 752
  • 1
  • 8
  • 25