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

How to use a different version of Command Line Tools while using Xcode 13

I was using Xcode 12.4 with Command Line Tools 12.4, but I've seen other versions that I could choose in this screen shot. However, now that my Mac was updated to Monterey, I'm forced to use Xcode 13 and I can't run my project anymore. Can I change…
-1
votes
1 answer

How do I access a random value from the restaurantList each time I tap the randomize button

struct RandomizeTab: View { var restaurantInfo = Restaurants() var body: some View { NavigationView { NavigationLink( destination: DetailView(restaurantInfo:…
sadel
  • 31
  • 7
-1
votes
1 answer

Crash while using Mac save dialog

Our users are experiencing an exception with the following scenario: Save a file under some arbitrary name, e.g. "test1". Open the save dialog to save again (the dialog now suggests "test1" by default). Click "Save", and then "Replace" to overwrite…
gil_mo
  • 575
  • 1
  • 6
  • 27
-1
votes
1 answer

Xcode import local Swift Package and build from the app

The goal is to import a local Swift Package "Shared" into a Xcode project and have them both in a workspace. I have created a workspace, dragged and dropped both the package and the project in, and then added the package to the app by adding it to…
1058u4
  • 172
  • 1
  • 10
-1
votes
1 answer

Is it possible to run WidgetKit code in iOS 13?

I'm creating a project that has a requirement of having a Widget. My project is created using Xcode 12.4, the minimum iOS version supported by my iOS App is iOS 13, hence my App's target deployment iOS version is iOS 13. Since WidgetKit is available…
-1
votes
1 answer

Xcode 12.4/Swift Playgrounds: Code does not generate View

I am new to Xcode 12.4/Playgrounds, and am trying to get this code to run. So far, it doesn't generate the View object, and does not generate an error code either. Any ideas about what I'm doing wrong? import SwiftUI import PlaygroundSupport struct…
-1
votes
1 answer

Add multiple custom tableviewcells in UITableView section

I am trying to add two custom UITableViewcell in UITableview section but first section is displaying properly and second section custom cell is not displaying. How can I fix this? Here is my code. func tableView(_ tableView: UITableView,…
IOS Rocks
  • 2,127
  • 2
  • 21
  • 24
-1
votes
1 answer

How to cause a SwiftUI tabview to reload when another tab is interacted with?

I've tried looking around at State and ObservableObject solutions to this but I need some help. Essentially I have in my ContentView a tabView with 2 tabs in it, say subview1 and subview2. Both subviews also contain another view called cellView.…
-1
votes
1 answer

Error: Type of expression is ambiguous without more context Using Paper Onboarding

I am trying to use paper onboarding for my application but I am always getting the error "Type of expression is ambiguous without more context". I'm using Xcode 12. There's no error anywhere else except on the return part of the function "func…
Marko360
  • 13
  • 5
-1
votes
1 answer

Code signing is required for product type 'Application' in SDK 'iOS 14.3'

I am trying to build an old iOS application in xcode 12.3 (macOS Catalina 10.15.6). The app was written by another person many years ago. So previously it was signed by another AppleID certificate. Now I have already managed to build the app in…
pyfyc
  • 127
  • 2
  • 9
-1
votes
1 answer

Does anyone know where storyboard option is for xcode?

xcode screenshot How can I create a project with storyboard? I don't see the interface dropdown. Thanks!
Mof
  • 1
-1
votes
1 answer

What is any ios device(arm64) in Xcode12?

I searched for this on the internet but I can't look the best definition and details about it. As far as I know, my ios head says that build the project first in "any ios device(arm64)" before sending a review to apple. And from my understanding, it…
Nitrogen
  • 1
  • 2
-1
votes
1 answer

When I click in the TabBar item , The Entire TabBar disappears.... , Swift , Xcode

I don't know why this is happening , but if you do , PLEASE let me know . When I click in the TabBar_ProfileButton , go to the Profilepage , then click again in the TabBarButton_ChatButton, and go to the ConversationView, the TabBar Disappears. I…
-1
votes
1 answer

In Xcode 12, many XIBs are stuck with "View as: iPhone 11"—how can I fix this?

In Xcode 12, many XIBs are stuck with "View as: iPhone 11"—how can I fix this? I need to view as iPad. Here is an example: Similar questions about this (from past Xcode versions) have said to change "Size" property in "Simulated Metrics" in the…
CommaToast
  • 11,370
  • 7
  • 54
  • 69
-1
votes
2 answers

Pass Data to a TabBarController

Very confused about something, I have my first view controller, which will allow a user to type in a word (including wildcards) and that view will return a tableview of results, which is just a list of matching words to the search. The user then…
jdez
  • 57
  • 1
  • 7