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

How to detect if Local Network permissions are granted in iOS 14

How to detect if the user has granted the local network permission in the app for iOS 14? I have to show an error screen if the user has denied permission and redirects to os settings to grant permission. Has Apple provided any way to find out just…
riyaz
  • 514
  • 4
  • 17
6
votes
4 answers

SwiftUI with Core Data getting Blank Screen in simulator in Xcode 12

In XCode 12, if I create a new SwiftUI App and check the "Use Core Data" button, the resulting application (with no changes) shows a blank screen in simulator (as well as on a device). In preview it shows the example timestamps as expected. Why are…
Sai Durga Mahesh
  • 205
  • 2
  • 13
6
votes
6 answers

ionic serve on iOS 14 device. Error "Invalid Service"

After upgrading an iPhone6s to iOS 14 and Xcode to the latest version, I am unable to serve the app. The error stack is as following Error: InvalidService at LockdownProtocolReader.parseBody…
cpc
  • 608
  • 6
  • 22
6
votes
4 answers

Xcode 12. Value of type 'AVCapturePhotoOutput' has no member 'supportedFlashModes'

In new Xcode 12, there is an error: Value of type 'AVCapturePhotoOutput' has no member 'supportedFlashModes' when i try to reach https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/1648766-supportedflashmodes Any suggestions?
Nike Kov
  • 12,630
  • 8
  • 75
  • 122
6
votes
0 answers

Xcode 12 source control UI truncating git branch names

As the title says, the Xcode 12 UI is no longer displaying git branch names in their entirety. It used to be that under the source control navigator tab Xcode would list of the names with as many characters as possible, for…
Blue
  • 1,408
  • 4
  • 17
  • 36
6
votes
0 answers

How do I fix ASAuthorization errors in Xcode 12 beta 6?

In the latest beta 6 of Xcode 12, I'm having errors popping up when trying to resume a SwiftUI preview. The main error appears to be Cannot find type 'ASAuthorizationAppleIDButton' in scope. The code compiles perfectly fine when building or running…
6
votes
4 answers

Getting error code -10670 when running a Mac Catalyst app in Xcode

I am developing an app for iOS and also using Mac Catalyst to run on my Mac. The app runs fine on my iPhone but always shows an error on Catalyst. The code used to run fine before updating to Big Sur Beta 6 from Beta 5. Here's a screenshot of the…
MysteryCoder456
  • 460
  • 5
  • 21
6
votes
1 answer

c++20 library support for xcode 12

can i use the c++20 library with xcode 12? (xcode 12 beta 5, with clang version 10.0.0). so in xcode build settings, instead of // in xcode build settings, "c++ standard library" CLANG_CXX_LIBRARY = libc++ maybe use something like (does not work =>…
mrchance
  • 1,133
  • 8
  • 24
6
votes
1 answer

Adding fat library to XCFramework not working in Xcode 12

Edit (2020/09/14): This appears to have been an Xcode bug that has now been fixed as of Xcode 12 beta 6. I am using Xcode 12 to build a static library, and for tvOS, Xcode 12 includes both arm64 and arm64e in the single fat library. Similarly,…
Bill Hollings
  • 2,344
  • 17
  • 25
6
votes
0 answers

Xcode 12: environment overrides setting in panel is not reflected on Simulator

I follow a YouTube video on new stuff of iOS 14. Now we could set environment overrides via the panel. But I found the changes like Text Dynamic type is not reflected on iOS simulator. I search around, it is quite new, no related information I…
Zhou Haibo
  • 1,681
  • 1
  • 12
  • 32
6
votes
3 answers

SwiftUI Map Display Annotations

I decided to switch from wrapping MKMapView into a UIViewRepresentable to the new Map() in SwiftUI. I was able to display correctly a MKMapRect into the Map() but I am unable to display two MKPointAnnotation there. Also my route between these…
M1X
  • 4,971
  • 10
  • 61
  • 123
5
votes
1 answer

xcode Firebase Crashlytics Command PhaseScriptExecution failed with a nonzero exit code

I have an application that I wrote with swift. I want to see crash reports of the app after the release. I want to add Firebase Crashlytics for this. I do everything in this link. but during compilation i get the following error: /bin/sh:…
5
votes
2 answers

Opening Xcode 13.0 project in Xcode 12.5

When I try to open a Xcode project I'm getting an error message saying : The project at '/Users/.../[].xcodeproj' cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to…
unknown
  • 788
  • 9
  • 24
5
votes
3 answers

No visible @interface for UITabBar setScrollEdgeAppearance

today i met with issue on Xcode 12. When i tried iOS 15 version of app i noticed that tabbar background changed. I solved this by adding this line of code if (@available(iOS 15.0, *)) { [[UITabBar appearance]…
Roman Varga
  • 101
  • 1
  • 4
5
votes
0 answers

Failed to build module from its module interface

I have added a third party pod to my project. While i can build the app just fine in Debug target. As soon as i try to build my project with release target i get this build error. Failed to build module 'XXXX' from its module interface; the compiler…
dev_ios999
  • 339
  • 3
  • 9