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

Xcode does not show iOS 12.5 Simulator

I can not find iOS 12.5 version for Simulator from (Xcode -> Preferences -> Components). I checked it on Xcode versions 12.2 and 12.4 without any success. Does anyone know why?, Do I need to perform any update?, the latest iOS version Xcode shows…
Joule87
  • 532
  • 4
  • 13
10
votes
1 answer

AKManager Audiokit crash: HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range

I am running XCode 12.4 and iOS 13.7. The following, straightforward class import AudioKit import UIKit class SoundManager { private var sampler: AKAppleSampler private var booster: AKBooster private var reverb: AKReverb private…
abinop
  • 3,153
  • 5
  • 32
  • 46
10
votes
2 answers

Change in Form UI in iOS 14 for SwiftUI

After building my SwiftUI for iOS 14 I've noticed that a lot of alignments were broken in forms. Now each section seems to be in a rectangle with rounded corners and extra padding. It looks great on devices with large screens, but on smaller screens…
marcgg
  • 65,020
  • 52
  • 178
  • 231
10
votes
1 answer

Unable to run ios app on iOS 14 with flutter

I have just installed iOS 14 beta and updated Xcode to latest Version 12 beta 3. I get an error like *Unable to locate DeviceSupport directory with suffix 'DeveloperDiskImage.dmg'. This probably means you don't have Xcode installed, you will need…
Sulfy
  • 239
  • 4
  • 17
10
votes
2 answers

Shared unit tests for new multiplatform template in Xcode 12

How do you test the shared portion of code when you have a multiplatform project? I see tests for iOS and tests for macOS, but nothing for the shared pieces. I want to add unit tests for the platform-independent portion of my app.
PointOfNilReturn
  • 416
  • 4
  • 13
10
votes
2 answers

Verifying receipt with Xcode 12 + StoreKit configuration file

I'm trying to verify receipts with Xcode 12 and a StoreKit config file, but keep getting a 21002 error. According to the docs, I need to use a different cert. I generated the cert but it's not clear what to do with it? #if DEBUG let…
John Scalo
  • 3,194
  • 1
  • 27
  • 35
10
votes
0 answers

SwiftUI - macOS Big Sur - How to move ToolbarItem to corresponding right view

I'm trying to create a three column window with a sidebar and a splitview. Each of the left and right views in the split view should have a corresponding ToolbarItem that display in their respective toolbar/navigationtitle space. For this purpose, I…
Felix Marianayagam
  • 2,634
  • 2
  • 9
  • 29
10
votes
1 answer

How to handle a Swift Package's dependent artifact checksum?

Using Xcode 12 beta and swift-tools-version 5.3, you can link to a framework, like this: .binaryTarget( name: "Stripe", url: "https://github.com/stripe/stripe-ios/releases/download/v19.3.0/Stripe.xcframework.zip", …
Marty
  • 5,926
  • 9
  • 53
  • 91
9
votes
1 answer

React Native App no longer builds after upgrading to XCode12.5

My react native app previously built and ran on a simulator in xcode 11. However since upgrading to xcode 12.5 I get the following build errors Cannot initialize a parameter of type 'NSArray> *' with an rvalue of type…
MarvoloPoet
  • 99
  • 1
  • 4
9
votes
4 answers

Change GroupBox background color in SwiftUI

How can I change the default gray background color of a GroupBox view in SwiftUI? I tried adding a background modifier, but this just changes the white background underneath the box (see screenshot). GroupBox(label: Text("Label"), content: { …
JacobF
  • 2,305
  • 3
  • 24
  • 36
9
votes
2 answers

Xcode cannot generate Swift UI preview - build aborted due to an internal error: planningFailed

I'm using Xcode 12 beta 2. I've packaged my libraries in Swift Packages. DataModel that appear in the error message is one of them, that my current package, WeatherView depends on. I can build the package fine, but Swift UI preview fails build…
Guig
  • 9,891
  • 7
  • 64
  • 126
9
votes
2 answers

How to get UIWindow value in iOS 14 @main file?

I can able to access didFinishLaunchingWithOptions by below implementation. But, I need UIWindow variable. I don't know how to get it. I'm using Xcode 12 beta. iOS14, SwiftUI lifecycle. import SwiftUI @main struct SSOKit_DemoApp: App { …
Azhagusundaram Tamil
  • 2,053
  • 3
  • 21
  • 36
8
votes
3 answers

could not find module 'Alamofire' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64

I have updated xcode to 12.3, i am getting the new errors. could not find module 'Alamofire' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64 Command CompileSwift failed with a nonzero exit code
Ganesh Shetty
  • 302
  • 1
  • 4
  • 12
8
votes
2 answers

How can I load SVG files from URL and use it as UIImage?

With Xcode 12 release, now SVG assets are supported. It is fine if I want to use SVG in my asset catalog. But it doesn't work when I try to load it from an URL any idea? let downloadURL =…
Murat Akdeniz
  • 424
  • 5
  • 7
8
votes
1 answer

Throwing error while debug and run PO command in Xcode 12

When I am running application on simulator or device and try to use PO command during debug. Xcode is throwing error instead of printing value. It is happening after I have updated Xcode 12. error: virtual filesystem overlay…
VRAwesome
  • 4,721
  • 5
  • 27
  • 52