This tag should only be used for questions specific to the usage and features of Xcode 13. 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].
Questions tagged [xcode13]
459 questions
11
votes
0 answers
Swift Package Manager XCode 13.1 Could not find module 'xxx' for target 'x86_64-apple-ios-simulator'
As many other somewhat similar issues reported, having problem building for simulator on M1 Macbook, trying to see if anyone has resolved this. Including my own framework using Swift Package Manager. There is nothing special about it other than it…

kos
- 1,357
- 9
- 21
11
votes
1 answer
iOS15 How can I test the App Icon in Xcode 13?
In the session Get ready to optimize your App Store product page show:
And remember, to test a variation of your app icon, you'll need to include the icon assets in the binary of your app version that is currently live.
How should I create…

iHTCboy
- 2,715
- 21
- 20
11
votes
5 answers
Enum cases with associated values cannot be marked potentially unavailable with '@available'
I am getting an error message with Xcode 13 on the following code
@available(iOS 13.0, *)
case windowScene(_: UIWindowScene, windowLevel: UIWindow.Level)
Enum cases with associated values cannot be marked potentially unavailable with…

Hassy
- 5,068
- 5
- 38
- 63
11
votes
4 answers
Failing to add pod file to Xcode 13 project
I am trying to add a pod file to my project but I consistently get this error in the terminal. Does anyone know how to fix this? Or is it because I already use Xcode 13 with iOS 15 beta? My Project is called AdMob testing because I wanted to use…

Rob
- 125
- 1
- 1
- 7
10
votes
1 answer
Xcode 13 missing products folder, where is the "Show Build Folder" in Finder menu
The Xcode 13 release notes state that:
The project navigator hides the Products group when it’s in the
default location. The Product > Show Build Folder in Finder menu item
replaces the most common use. (71561549)
Where is this menu? I'm on OSX…

James Whiffin
- 153
- 1
- 5
10
votes
2 answers
UIDatePicker rendering is getting right aligned in Xcode 13 (iOS 15)
I compiled my app with Xcode 13 and iOS 15, and I noticed the UIDatePicker is getting right aligned.
You can see that my storyboard is properly setup with constraints:
This UI element was working fine, even if I download the App Store version of…

KBog
- 3,800
- 1
- 25
- 31
10
votes
4 answers
Xcode 13, iOS 15 Issues with signing and expired account, any connection?
So I am trying to run apps on my phone. I do have Xcode 13 and running iOS 15. Not sure how relevant that is.
So when I run the app I get the following errors:
Xcode:
The operation couldn’t be completed. Unable to launch app because it has an…

Micheal
- 309
- 4
- 16
10
votes
1 answer
Swift 5.5 Concurrency: creating a task with custom error type
I need to use my own custom error enum in tasks that I create:
enum MyError: Error {
case someError
}
var myTask: Task = Task { () throws -> MyModel in
// in case of an error:
// throw .someError
…

JAHelia
- 6,934
- 17
- 74
- 134
10
votes
1 answer
Update UI after async await call
I load books from API, show activity indicator while loading, update label after server response.
activityView.isHidden = false
let task = detach {
do {
let books = try await self.bookService.fetchBooks()
…

Ivan Vavilov
- 1,520
- 1
- 15
- 28
9
votes
1 answer
SPM dependencies branch is deprecated on Xcode 13.3 and Swift 5.6
Xcode 13.3 shows warnings for deprecation on the dependencies for external packages.
For example:
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "MyPackage",
platforms: [
.iOS(.v15)
],
…

vicegax
- 4,709
- 28
- 37
9
votes
5 answers
Unable to install Cocoapods in macOS Monterey Version 12.0 Beta - Xcode 13.0(13A233)
unable to install Cocoapods in MacOS 12.0 Beta and Xcode Version 13.0
here is terminal output for sudo gem install cocoapods
userName@users-Mac-mini ~ % sudo gem install cocoapods
Password:
Building native extensions. This could take a…

Shree Softech
- 109
- 1
- 2
- 7
9
votes
3 answers
Xcode 13 - The project at '/Users/test.xcodeproj' cannot be opened because it is in a future Xcode project file format
When opening in Xcode 12.5 a project created with Xcode13, I get this error message:
"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…

multitudes
- 2,898
- 2
- 22
- 29
9
votes
2 answers
XCode 13 beta 2, App installation failed on iOS 15
App runs fine on iOS 14 device but on iOS 15 i'm not able to install
It throws below error from the XCode 13 beta 2.
Cleaned Dervied Data and tried it didnt work, Opted for Automatic / Manual sign in both didnt work
System Information
macOS Version…

Madhu Avinash
- 933
- 2
- 8
- 27
8
votes
1 answer
UIAlertController title and message not displaying in iphone 12
I displayed UIAlertController with UIAlertControllerStyleActionSheet style. When building with XCode 13 UIAlertController title and message not working on iPhone 12. It's working on other devices. Same code previously working on iPhone…

Siva
- 700
- 6
- 25
8
votes
1 answer
Xcode 13 UIButton state config not showing up in interface builder
After updating to Xcode 13, when I add an UIButton to my Storyboard, the State Config no longer shows up as an option.

Mikkel Cortnum
- 481
- 4
- 11