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

xcode12 issus: ld :building for iOS Simulator, but linking in object file built for iOS, file 'xxx.framework/xxx' for architecture arm64

After upgrading xcode12,build issus: ld :building for iOS Simulator, but linking in object file built for iOS, file 'xxx.framework/xxx' for architecture arm64 It can run on iPhone
burningsun
  • 248
  • 1
  • 2
  • 11
7
votes
1 answer

SKProductsRequest fails in Xcode 12 GM in UI Tests and SKTestSession

When I run SKProductsRequest from UI Tests session in Xcode 12 GM, it always fails with this error: Error Domain=SKErrorDomain Code=0 "UNKNOWN_ERROR" UserInfo={NSLocalizedDescription=UNKNOWN_ERROR, NSUnderlyingError=0x600003d30f30 {Error…
silvansky
  • 2,426
  • 2
  • 19
  • 20
7
votes
5 answers

SwiftUI previews not working when using Firebase/Analytics pod

Seems that after updating Xcode 12 to beta 5, SwiftUI previews are not working anymore when using Firebase/Analytics pod. Previews are failing with error: linker command failed with exit code 1 (use -v to see…
sash
  • 8,423
  • 5
  • 63
  • 74
7
votes
0 answers

SwiftUI Padding Not Working After Upgrading to iOS14 Beta 4 and Xcode 12 Beta 4

I am currently updating my iOS application to support iOS 14, using Xcode Beta software. Yesterday, I updated to Xcode Beta 4 and padding on my application became all out of wack. In the image above, I have the padding set to…
user8350399
7
votes
1 answer

Nativescript - Set the target IOS version for Nativescript plugins

I recently updated my xcode to the beta for Xcode12 so I can see how my app will run on the upcoming release of IOS 14 When trying to run TNS RUN IOS I get the following errors: Saving metadata generation's stderr stream to:…
7
votes
1 answer

Picker Row not getting deselected in Form (SwiftUI, Xcode 12 beta 4)

I am creating a picker in a form in SwiftUI. On selection of a new element in picker, when the view pulls back to the form, the picker row isn't getting deselected. Here is a screenshot of what I mean, the picker row remains grayed out like this. I…
Aryan C
  • 407
  • 1
  • 3
  • 12
7
votes
1 answer

Why does onAppear() execute twice when placed on elements inside a NavigationView in swiftUI? (Xcode 12.0)

FirstView Appeared is printed twice. Once when the view first loads and again when the NavigationLink is selected. import SwiftUI struct FirstView: View { var body: some View { NavigationView{ ZStack{ …
Mac Wayne
  • 587
  • 4
  • 13
7
votes
4 answers

Undefined symbol: type metadata for Swift._StringObject.Variant, Undefined symbols for architecture armv7 - Xcode 12 Beta

I'm trying to create archive through Xcode 12.0 beta but it giving me that error. Undefined symbols for architecture armv7: "type metadata for Swift._StringObject.Variant", referenced from: outlined init with take of…
ZAFAR007
  • 3,049
  • 1
  • 34
  • 45
6
votes
2 answers

Unable to install cocoapods on Catalina

I have catalina OS 10.15.7 and XCode Version 12.4 (12D4e) I am trying to install cocoapods using gem: sudo gem install cocoapods And I am getting this error: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write…
Infs
  • 151
  • 2
  • 5
6
votes
8 answers

Multiple commands produce on Xcode 12 and react native

I am trying to build and archive the app for ios. But I am getting the below error. I have a search on StackOverflow and google but my error is a little bit different and I cant understand it. If anyone can help me it will be great. The exact…
sumanta.k
  • 498
  • 1
  • 8
  • 26
6
votes
3 answers

Xcode 12 - Storyboard screens showing up empty/black (using m1 macbook)

We have tried both iOS 14 and 13. In both cases, the storyboard screens show up like this. Has anyone else faced this issue and was able to solve it? Or should we revert back to xcode 11 or 10 in order to solve this? Empty storyboard screens
6
votes
3 answers

Xcode builds successfully a corrupted archive, not showing in organizer, as soon as cocoapods installs react-native-mapbox-gl from Podfile

The problem seems not new, as here, but the solutions proposed didn't work. I tried also several other approaches to understand what's going on (see here). To replicate, this is the process: I have a working iOS App written in Swift. I follow the…
6
votes
0 answers

app crashes after adding SVProgressHUD framework in xcode 12

I have created a framework of SVProgressHUD using https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323 and added in Xcode project. Image of general tab of xcodeproj: Image of build phases tab of xcodeproj: the build was…
satya-p91
  • 478
  • 3
  • 12
6
votes
2 answers

Xcode12 - building for iOS Simulator, but linking in object file built for macOS, file 'dir/SomeFile.a' for architecture x86_64

Getting linker error in Xcode 12 when I am trying to build my large iOS app (hybrid, swift+objc). The application is building fine for real device, but It gives linker error when I am trying to run in Simulator directly with Debug configuration. I…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
6
votes
1 answer

Getting The file 'xxx" couldn't be opened because you don't have permission to view it when importing

I am very new using Swift and SwiftUI and I'm trying to write and iOS app that reads a folder, calculcate hash for each file, and then copy them to an external drive. For now I'm trying to import one file and calculate its hash. However, I always…