This tag should only be used for questions specific to the usage and features of Xcode 14. 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 [xcode14]
351 questions
3
votes
3 answers
Breakpoints not resolving on Xcode 14 (Turn to outlines when app is run)
We are running into an issue where breakpoints are not resolving on Xcode 14 (The same break points on Xcode 13.4.1 are working fine). They change to an outline when we run our app
This is code that is definitely executing. What's really strange is…

Rajusa
- 101
- 6
3
votes
1 answer
How to Edit Complication name in Watch app of iPhone?
I am trying to create a WidgetKit based complication for watchOS 9 on XCode 14. Everything works fine but the Complication name in the Watch app of the iPhone shows COMPLICATION_TYPE_EDIT_LABEL_(NULL)_COMPANION
How do I change it to display my app's…

Kamal Kumar Lakshmanan
- 168
- 7
3
votes
0 answers
Xcode: Add LaunchScreen without Storyboard
I try to add a LaunchScreen in Xcode (Version 14.0.1) without using Storyboard.
I followed the Launch screens in Xcode: All the options explained article Chapter "Using a plist configuration"
1. I added an image asset named "LaunchScreen"
2. In…

PascalS
- 975
- 1
- 16
- 40
3
votes
1 answer
Im trying to make a picker style like the appearance picker in settings
I'm tying to make a picker style that looks like this
Here is the code for the theme
@main
struct GreenPowerPlantUniversalApp: App {
var body: some Scene {
WindowGroup {
ContentView()
…

Ash
- 81
- 9
3
votes
1 answer
CocoaPod config to solve XCode 14, iOS16 Requires a development team. Select a development team in the Signing & Capabilities editor
In my project i have different targets, signed with different entities
in Xcode 14, some of the pods require signing, and however i could assign a signing team manually, it differs from target to target
How to configure cocoapods to sign the…

Peter Lapisu
- 19,915
- 16
- 123
- 179
3
votes
2 answers
Xcode 14 - Cannot preview in this file, Cannot connect to iPhone 14 | FailedToConnectToDTServiceHubError: Cannot connect to iPhone 14
while exploring the swiftUI and creating my first swiftUI app in Xcode, it is throwing an error for the preview saying - Cannot preview in this file, Cannot connect to [Device Name]. While it's working fine in simulator.
In order to troubleshoot,…

Mohit G.
- 1,157
- 2
- 12
- 22
3
votes
1 answer
Widgets not showing in iOS 15 or earlier from Xcode 14
I just added lock screen widgets through Xcode 14 RC. When sending it to TestFlight, the home screen widgets do not show on iOS 15 devices but show on iOS 16 ones. The home screen and lock screen widgets use the same file, but I have a switch on the…

fphelp
- 1,544
- 1
- 15
- 34
3
votes
1 answer
How to update MARKETING_VERSION and CFBundleVersion from plist file?
I have a simple project and I want to update the project version and build number values from info.plist. I have added this Bundle version string (short) and Bundle version in plist file but its value is not reflected in the build.
But if I tried to…

Pratik Prajapati
- 1,137
- 1
- 13
- 26
3
votes
3 answers
SwiftUI Animation from screen bottom not working properly
I'm trying to create an animation of a View coming into the screen from the bottom. But in the very first time it only appears on screen without any animation and then it starts work properly.
This is the code:
struct ContentView: View {
@State…

Sebastian
- 6,154
- 5
- 33
- 51
3
votes
1 answer
Swift Components.Url is Returning the Wrong URL
I implemented the following code, where I can pass in the name of the resource and it should give me the URL. I am using Xcode 14 Beta 3.
static let baseUrl = "localhost:8080"
static func resource(for resourceName: String) -> URL? {
…

Mary Doe
- 1,073
- 1
- 6
- 22
3
votes
2 answers
Xcode 14 beta: CMake not able to resolve CMAKE_C_COMPILER and CMAKE_CXX_COMPILER
Trying to run cmake to create an Xcode project using:
cmake -G Xcode ..
This has been running perfectly under Xcode 13 and below. But under Xcode 14 beta, suddenly if fails, and I get the following output:
-- Found Git: /usr/bin/git (found version…

Bill Hollings
- 2,344
- 17
- 25
2
votes
1 answer
XCode 14.3.1 doesn't launch on Simulator
I receive the following error while launching my project on simulator
iPhone 14 Pro Max supports emulating this architecture, but the
emuluation support software is not installed Domain:
DVTDeviceIneligibilityErrorDomain
Code: 26
Recovery…

Ramprasath Selvam
- 3,868
- 3
- 25
- 41
2
votes
0 answers
How to center map on user location and set default location if user location is not available?
I'm working on an iOS app that includes a map view. I want the map to automatically center on the user's location when available, and if the user's location is not available or not granted, I want to set a default location.
In my MapViewModel, I…

Jael Ruvalcaba
- 23
- 5
2
votes
0 answers
Xcode preview and console too slow or not working
I had just recently downloaded xcode and everytime I write code and come to an error, I would fix the error but the console and preview do not update. It down not change the error live will not rerun my code even though I have it on Auto run.
I…

Maria Grassa
- 43
- 2
2
votes
2 answers
xcodebuild failing in Xcode14 but working in Xcode 13
I am facing a issue while generating build using command line script in Xcode 14, the same script is working with Xcode 13.
the function to archive is
function buildArchieve {
BUILD_FILES="$BUILD_DIR/${ASSET_BASENAME}"
mkdir -p "$BUILD_FILES"
#…

Surbhi Garg
- 414
- 5
- 19