Questions tagged [xcode14]

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].

Filter by
Sorted by
Tagged with
391 votes
37 answers
275k views

Missing file libarclite_iphoneos.a (Xcode 14.3)

After installing Xcode 14.3 in order to run my app on my iOS 16.3 iPhone XS. I get the following error: File not found: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault....
Justin A's user avatar
  • 4,471
133 votes
4 answers
34k views

Xcode 14 deprecates bitcode - but why?

Xcode 14 Beta release notes are out, all thanks to the annual WWDC. And alas, the Bitcode is now deprecated, and you'll get a warning message if you attempt to enable it. And I was wondering, why has ...
Isaaс Weisberg's user avatar
90 votes
2 answers
53k views

Use of bitwise '|' with boolean operands | Xcode 14.3 fails builds using react-native Yoga [closed]

Just updated my Xcode to Version 14.3 today and the build is failing with the following error in the Yoga file: Use of bitwise '|' with boolean operands Looks like we have some issues with the iOS ...
Mitesh Baraiya's user avatar
71 votes
20 answers
54k views

Missing file `libarclite_iphoneos.a` in Xcode 14.3 after update flutter and Xcode

I have flutter project, I'm trying to run the iOS version but I get error after I update flutter and Xcode to the latest version, I use firebase core plugin error: Could not build the precompiled ...
Ellet's user avatar
  • 1,249
68 votes
2 answers
39k views

In Xcode 14 & iOS 16 purple warnings starting with 'This method should not be called on the main thread as it may lead to UI unresponsiveness.'

When loading the URL in WKWebView, it leads to a security warning and later app gets crashes. Warning in UIApplicationMain - This method should not be called on the main thread as it may lead to UI ...
PrasathBabu's user avatar
  • 4,826
47 votes
12 answers
97k views

Xcode 14: Command PhaseScriptExecution failed with a nonzero exit code

After updating my Xcode to the version 14.0, I am getting this error: Command PhaseScriptExecution failed with a nonzero exit code If anyone knows how to resolve it, please let me know.
Aqib shahzad's user avatar
42 votes
21 answers
30k views

The provided entity includes a relationship with an invalid value

The following error occurs when I upload my app to App Store Connect: The provided entity includes a relationship with an invalid value '' is not a valid ID for this relationship. (ID: XXXXXXXX-XXXX-...
Cihan Kalmaz's user avatar
38 votes
4 answers
24k views

Upgrade from xCode 14.2 to 14.3 PhaseScriptExecution failed with a nonzero exit code

I've upgraded from xcode 14.2 to xcode 14.3 beta, and now I can't archive anymore for Any iOS Device (arm64) with the following error : PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks mkdir -p /...
Maxime Esprit's user avatar
37 votes
10 answers
43k views

Xcode 14 beta error: Stored properties cannot be marked potentially unavailable with '@available'

I get this error when I run my app on Xcode 14 beta and I don't know how to fix it: Stored properties cannot be marked potentially unavailable with '@available' It doesn't pop up when I run Xcode 13,...
bmeikle's user avatar
  • 391
37 votes
6 answers
35k views

Main thread warning with CLLocationManager.locationServicesEnabled()

I just upgraded to Xcode 14.0 and when I run our app on iOS 16 devices, calls to: CLLocationManager.locationServicesEnabled() Are returning the warning: This method can cause UI unresponsiveness if ...
nurider's user avatar
  • 1,705
30 votes
6 answers
24k views

Charts not compile on Xcode 14

I am facing following errors in library - Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection' Unavailable instance method 'replaceSubrange(_:with:)' was used to satisfy a ...
Saurabh Sharma's user avatar
26 votes
3 answers
3k views

App size increased(almost doubled) with Xcode 14 and Bitcode Disabled

Apple has deprecated the usage of Bitcode and is longer accepting any submissions with Bitcode enabled apps starting from Xcode 14. We at PhonePe disabled Bitcode and uploaded the app to the App ...
Srikanth's user avatar
  • 1,910
25 votes
2 answers
6k views

Why doesn't clearing the new iOS 16 SwiftUI NavigationPath to "pop to root" animate smoothly back to the root view?

I have a new iOS 16 SwiftUI NavigationStack with navigation determined by the NavigationDestination modifier which works fine. My question is why doesn't it animate smoothly by sliding back to the ...
Mgwd's user avatar
  • 512
22 votes
1 answer
14k views

'init(destination:isActive:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView

I have tried different iterations of examples posted on this site but nothing is going right. I have also tried following the examples listed here: Navigation to new navigation types: I am getting the ...
LizG's user avatar
  • 2,448
22 votes
0 answers
10k views

Xcode 14.1: Error: UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly.?

What does it mean ? I haven't added UINavigationBar in my project. UINavigationController is embedded through editor -> Embed In -> Navigation Controller. [Assert] UINavigationBar decoded as ...
SwiftNewbie's user avatar
21 votes
2 answers
4k views

Xcode 14 unit testing clone simulator

In Xcode 14, running unit testing seems to be creating simulator 'clones' (named 'Clone 1/2.. of iPhone'). On older machines, this can take a long time. This is happening every time when switching ...
bauerMusic's user avatar
  • 5,820
21 votes
3 answers
15k views

Mutation of captured var in concurrently-executing code

I had an issue in Swift 5.5 and I don't really understand the solution. import Foundation func testAsync() async { var animal = "Dog" DispatchQueue.main.asyncAfter(deadline: .now()...
Jere's user avatar
  • 213
21 votes
4 answers
16k views

When compiling with Xcode14 I get Error unsupported Swift architecture. How to solve this?

After switching to xcode 14 build system. Generated headers for our pod frameworks start looking like that: #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7 (...
Vitali Kazakevich's user avatar
21 votes
5 answers
6k views

How to remove section header top padding in SwiftUI Plain List with iOS16

When we use SwiftUI List component and need a section header, top padding will appear on the header of each section. Under iOS15, we use UITableView.appearance().sectionHeaderTopPadding = 0 to solve ...
Eric's user avatar
  • 211
18 votes
6 answers
23k views

Xcode 14 - Cannot code sign because the target does not have an Info.plist file

I am using cocoapods in my project and it was working fine but after upgrade to Xcode 14 it is giving different kind or errors. Firstly it was asking for bit code and later asked for the development ...
Hassy's user avatar
  • 5,168
17 votes
4 answers
10k views

How do you fix Xcode 14 warning: NavigationLink presenting a value must appear inside a NavigationContent-based NavigationView. Link will be disabled

Since installing Xcode 14, I am now getting the following error message printed in my console: NavigationLink presenting a value must appear inside a NavigationContent-based NavigationView. Link will ...
xanderbuck's user avatar
15 votes
5 answers
16k views

iOS 16 Scene orientation issue

I always received this error when I tried to allowed only portrait orientation on my controller: Error Domain=UISceneErrorDomain Code=101 "None of the requested orientations are supported by the ...
Hatoine's user avatar
  • 151
12 votes
3 answers
4k views

No matching function for call to 'RCTAppSetupPrepareApp'

When running Archive in Xcode 14.2 of React Native code we run into this error in the AppDelegate file. No matching function for call to 'RCTAppSetupPrepareApp' I am using React Native 0.71.7, react-...
Manish Sharma's user avatar
12 votes
5 answers
11k views

iOS 16 Simulator: Running an app in the simulator results in a ".xpc error"

After updating to macOS 13.0 Beta and installing Xcode 14.0 Beta we run an app where we set the target OS to 16. The following error occurs: The iPhones simulators won't start either when started ...
Felix Lunzenfichter's user avatar
12 votes
2 answers
2k views

How to remove "search web" option for selected text iOS 16 xcode14 beta

I'm having trouble removing this tick when text is selected, I've tried this: class CustomUITextField: UITextField { open override func canPerformAction(_ action: Selector, withSender sender: Any?) ...
Pontus's user avatar
  • 54
12 votes
1 answer
4k views

How do we get visual representation of core data in Xcode 14?

There used to be editor style button which is completely missing in Xcode Version 14.0 (14A309), earlier it was broken but at least after few try it use to work.
Kraming's user avatar
  • 237
11 votes
5 answers
8k views

Open simulator xcode 14 by Rosetta to fix scroll

I just updated to xcode 14, and it seems the simulator can't run with Rosetta to fix scroll lag. Does anyone have a solution that can help me? thank you This is photo can not open by Rosetta is here ...
Dagg Tuan's user avatar
  • 113
11 votes
1 answer
6k views

Xcode Account Authentication Failure

There is a problem when I'm trying to sign in to my Apple ID account. Re-signing in doesn't help. Xcode 14.0
Fedor Pashin's user avatar
11 votes
2 answers
2k views

Xcode 14 and missing sync with CFBundleVersion edit in Info.plist during Build/Archive

In my iOS apps, i have a script (a build phase actually) that upgrades the target's Info.plist CFBundleVersion to a number related to the git commit count. I've been using for a while and it works for ...
lucadb's user avatar
  • 432
10 votes
4 answers
3k views

Xcode 14 removes shortcut for comment selection on European keyboards

Normally the shortcut is "⌘⇧/". But being that "/" is on the "7" key on a Danish keyboard, this shortcut now opens the Help menu - ironically. Manually adding it as a key ...
Zappel's user avatar
  • 1,682
9 votes
4 answers
8k views

Xcode 14 is not getting attached to Simulator in Debug mode

While debugging any iOS application, Xcode builds and run successfully, also launches a simulator but it is not able to attach debugger from Xcode 14 to Simulator iOS app. It throws an error in Xcode: ...
Mrunal's user avatar
  • 14k
9 votes
5 answers
8k views

iOS16+ Present UIViewController in landscape only for single screen not working [Swift 5.7]

Before iOS 16 presenting a single screen in landscape is fine for portrait application. The working code is as below. Remark: Whole application is in Portrait mode only. override public var ...
Chetan Prajapati's user avatar
9 votes
1 answer
1k views

Add Language in Xcode 14.1 Simulator problem

I updated my Xcode to 14.1. but when I want to add a language in Setting, it stays on this page and I can't do any thing. All I can do is Erase All content and Setting to return to normal state. It ...
Sajjad's user avatar
  • 1,595
9 votes
3 answers
7k views

Build failed after upgrading Xcode 14.3

After upgrading Xcode 14.3 my flutter run failed to run on iOS specifically but I am able to run on Android. I am getting following error: Failed to build iOS app Error output from Xcode build: ↳ ...
Code Hunter's user avatar
  • 10.7k
9 votes
2 answers
1k views

upgrade xcode14 error build: Dependency for P1:target-

Does anyone have the same problem?how to fix it? thanks.
ht_'s user avatar
  • 111
8 votes
4 answers
11k views

Looking for iOS 15.7 support files for XCode14

My iPhoneXR updated to 15.7, and XCode updated to 14. Which happened right as MacOS was updating, so I'm wondering if something got wonked with the XCode update. Now I can't program my phone. Looking ...
Travis Griggs's user avatar
8 votes
13 answers
19k views

error build: Cannot link directly with dylib/framework XCTAutomationSupport for architecture arm64

I am using Xcode Beta 14, tring to build WebDriverAgent getting below errors WebDriverAgent/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib ld: cannot link directly with ...
Solid Soft's user avatar
  • 1,902
8 votes
2 answers
6k views

EAS local builds not working with Xcode 14

I believe this is what's happening: My MacOS system updated and subsequently, Xcode was updated to version 14. Ever since that happened my eas local builds no longer complete successfully. Submitting ...
Umer Kiani's user avatar
  • 3,330
8 votes
0 answers
3k views

Hide navigation bar in iOS16 + xcode 14 beta not working

We use Firebase's Crashlytics and in the last 2 days we've seen a spike in crashes with navigationController?.setNavigationBarHidden on iOS 16 devices. I was able to reproduce the crash after ...
josealvarado111's user avatar
7 votes
1 answer
7k views

How to get an iPad's device name on iOS16?

UIDevice.current.name it's worked if used iOS15, but when I tested on iOS16 (beta3) still return 'iPad' name all the time. See related WWDC 2022 video file https://developer.apple.com/videos/play/...
Uthen's user avatar
  • 707
7 votes
2 answers
3k views

Xcode 14 project compile error:com.apple.xcode.tools.swift.compiler is not absolute

There was no error in Xcode 13 but I am starting to get error below after upgraded to Xcode 14.This error doesn't seem to stop build from completing successfully. error build: Dependency for P1:target-...
OrrHsiao's user avatar
7 votes
1 answer
843 views

Xcode 14 Beta 5 throws an exception

Xcode 14 Beta 5 shows this exception: [<_UINavigationBarContentViewLayout valueForUndefinedKey:]: this class is not key value coding-compliant for the key inlineTitleView. I am getting this new ...
Joshua's user avatar
  • 1,984
7 votes
0 answers
2k views

Can't print(po) through Xcode 14 debugger

My project was fine until I upgrade my Xcode to Xcode 14, after I upgrade my Xcode a few week, now that every time I try to debug and print it always show error like below and I can't figure it out ...
Rattanakoudom Sambath's user avatar
6 votes
3 answers
3k views

SwiftUI - Value of type 'some View' has no member 'resizable'

I'm new to SwiftUI coding and trying to learn step by step. Sometimes I don't get what XCode is trying to tell me with its errors. Following a super simple tutorial on how to resize an image. Did ...
helloimbrando's user avatar
6 votes
1 answer
10k views

Fastlane with XCode 14: ARCHIVE FAILED

My current version of Fastlane 2.173.0 works OK with XCode 13 and builds and publishes my iOS RN/Native project to TestFlight. But after moving to XCode 14 I have got next error on start building (gym)...
iUrii's user avatar
  • 13.3k
6 votes
3 answers
649 views

SwiftUI navigation bar items frame are misaligned after sheet dismiss

Navigation bar buttons are not tappable after dismissing a sheet in SwiftUI. Below is the steps to reproduce the issue Present a sheet, Move the app to background for a short duration (2 seconds) ...
Mohammed Shakeer's user avatar
6 votes
5 answers
9k views

Xcode14 crash on launch: dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib

When I upgrade my Xcode to 14, my app crashed and Get an error message: dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib It's only happen on devices with iOS version below 13,like ...
Tom Peter's user avatar
6 votes
1 answer
16k views

What is the minimum Deployments version we must set for iOS after April 2023 in Xcode 14.1 when submitting to app store?

By April 2023, Apple has mandate us to use Xcode 14.1 with iOS 16.1 SDK when building and submitting app. In Xcode there're 2 fields: "iOS Deployment Target": iOS 16.1 ("Default" ...
TT_TT's user avatar
  • 141
6 votes
1 answer
867 views

Entitlements for multiplatform applications in Xcode 14

When creating a Multiplatform Application prior to Xcode 14, Xcode would create a separate Entitlements-file for each target. Now, with Xcode 14, all targets use the same Entitlements file by default. ...
Gary's user avatar
  • 1,058
6 votes
3 answers
4k views

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 ...
Sebastian's user avatar
  • 6,314

1
2 3 4 5
7