<?xml version="1.0" encoding="utf-8" standalone="no"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Active questions tagged xcode - Stack Overflow</title><description>most recent 30 from stackoverflow.com</description><managingEditor>noemail@noemail.org (Roman Podymov)</managingEditor><pubDate>Tue, 30 Jun 2026 11:00:23 GMT</pubDate><creativeCommons:license xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">https://creativecommons.org/licenses/by-sa/4.0/rdf</creativeCommons:license><link>https://stackoverflow.com/questions/tagged?tagnames=xcode&amp;sort=active</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>most recent 30 from stackoverflow.com</itunes:subtitle><itunes:owner><itunes:email>noemail@noemail.org</itunes:email></itunes:owner><item><title>Cannot use com.apple.developer.video-subscriber-single-sign-on and com.apple.smoot.subscriptionservice in a tvOS app</title><link>https://stackoverflow.com/questions/79970333/cannot-use-com-apple-developer-video-subscriber-single-sign-on-and-com-apple-smo</link><category>xcode</category><category>tvos</category><category>apple-tv</category><category>entitlements</category><author>noemail@noemail.org (Roman Podymov)</author><pubDate>Mon, 29 Jun 2026 12:51:34 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79970333</guid><description>
            &lt;p&gt;In my tvOS app, I'm using the &lt;code&gt;VideoSubscriberAccount&lt;/code&gt; framework. As I understand it, to make it work I need to add&lt;/p&gt;
&lt;pre class="lang-xml prettyprint-override"&gt;&lt;code&gt;&amp;lt;key&amp;gt;com.apple.smoot.subscriptionservice&amp;lt;/key&amp;gt;
&amp;lt;true/&amp;gt;
&amp;lt;key&amp;gt;com.apple.developer.video-subscriber-single-sign-on&amp;lt;/key&amp;gt;
&amp;lt;true/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to MyProject.entitlements. However, I’m getting this error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Entitlements com.apple.developer.video-subscriber-single-sign-on and com.apple.smoot.subscriptionservice not found and could not be included in profile. These likely are not valid entitlements and should be removed from your entitlements file.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;How to fix this build error?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">-1</re:rank></item><item><title>error: attach by pid 'xxxxx' failed -- attach failed (Not allowed to attach to process</title><link>https://stackoverflow.com/questions/78956578/error-attach-by-pid-xxxxx-failed-attach-failed-not-allowed-to-attach-to-p</link><category>ios</category><category>xcode</category><category>ios-simulator</category><author>noemail@noemail.org (Gorthez)</author><pubDate>Fri, 6 Sep 2024 09:52:47 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/78956578</guid><description>
            &lt;p&gt;I am facing problem with building app for simulator. After build complete this error appears:
&lt;a href="https://i.sstatic.net/4aiS1reL.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/4aiS1reL.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and here are logs from console.app:
&lt;a href="https://i.sstatic.net/gYRePXBI.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/gYRePXBI.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;error suggest that there is some issue with memory space? But disc has 400GB empty space&lt;/p&gt;
&lt;p&gt;What i have tried:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;sudo DevToolsSecurity -enable&lt;/li&gt;
&lt;li&gt;Remove derived data&lt;/li&gt;
&lt;li&gt;Turn off Debug Executable&lt;/li&gt;
&lt;li&gt;Delete App and run again&lt;/li&gt;
&lt;li&gt;Clean build folder from Xcode&lt;/li&gt;
&lt;li&gt;Adding an environment variable IDEPreferLogStreaming with value YES&lt;/li&gt;
&lt;/ol&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Flutter: How to create a new project</title><link>https://stackoverflow.com/questions/49047411/flutter-how-to-create-a-new-project</link><category>ios</category><category>xcode</category><category>flutter</category><category>visual-studio-code</category><category>xcode9.3-beta</category><author>noemail@noemail.org (Krunal)</author><pubDate>Thu, 1 Mar 2018 10:17:30 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/49047411</guid><description>
            &lt;p&gt;I installed Flutter SDK, following steps, provided from this link: &lt;a href="https://flutter.io/setup-macos/" rel="noreferrer"&gt;Install on macOS - iOS setup&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But I am unable to create a new sample project in Xcode. I can't find a proper way to start a new project using Xcode.&lt;/p&gt;
&lt;p&gt;Here are steps to start a new sample project but not for Xcode: Get &lt;a href="https://flutter.io/get-started/test-drive/#create-app" rel="noreferrer"&gt;Started: Test Drive&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How to create a new Flutter project in Xcode?&lt;/p&gt;
&lt;p&gt;I'm using &lt;a href="https://stackoverflow.com/questions/44390162/download-install-xcode-9-1-9-2-9-3-beta-or-xcode-9-version-without-premium-d/44390183#44390183"&gt;Xcode 9.3 - beta 3&lt;/a&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">132</re:rank></item><item><title>How to Resolve Xcode Linker Warnings For Tests Target in App</title><link>https://stackoverflow.com/questions/35754326/how-to-resolve-xcode-linker-warnings-for-tests-target-in-app</link><category>ios</category><category>xcode</category><category>linker-warning</category><author>noemail@noemail.org (JeffB6688)</author><pubDate>Wed, 2 Mar 2016 17:37:29 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/35754326</guid><description>
            &lt;p&gt;The solution offered in &lt;a href="https://stackoverflow.com/questions/26772504/apple-llvm-6-0-error-clang-failed-with-exit-code-1"&gt;Apple LLVM 6.0 Error: clang failed with exit code -1&lt;/a&gt; may work to resolve this problem, but as I stated at the end of my problem statement is that I did not want to remove the Tests target unless that is the only solution. So, is there another solution?&lt;/p&gt;

&lt;p&gt;When trying to build a new app in Xcode, I am getting a ton of linker warnings. The warnings are related to a target that was automatically created called Tests. The expanded view of some of the warnings look like the following:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Ld /Users/me/Library/Developer/Xcode/DerivedData/My_App-ahfusfuifhsybmalxaykbmfrhylc/Build/Products/Debug-iphoneos/My\ AppTests.xctest/My\ AppTests normal arm64
cd "/Users/me/iPhone Apps/myProducts/My App"
. . .
ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/Developer/Library/Frameworks'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;GenerateDSYMFile /Users/me/Library/Developer/Xcode/DerivedData/My_App-ahfusfuifhsybmalxaykbmfrhylc/Build/Products/Debug-iphoneos/My\ AppTests.xctest.dSYM /Users/me/Library/Developer/Xcode/DerivedData/My_App-ahfusfuifhsybmalxaykbmfrhylc/Build/Products/Debug-iphoneos/My\ AppTests.xctest/My\ AppTests
cd "/Users/me/iPhone Apps/myProducts/My App"
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/me/Library/Developer/Xcode/DerivedData/My_App-ahfusfuifhsybmalxaykbmfrhylc/Build/Products/Debug-iphoneos/My\ AppTests.xctest/My\ AppTests -o /Users/me/Library/Developer/Xcode/DerivedData/My_App-ahfusfuifhsybmalxaykbmfrhylc/Build/Products/Debug-iphoneos/My\ AppTests.xctest.dSYM

while processing /Users/me/Library/Developer/Xcode/DerivedData/My_App-ahfusfuifhsybmalxaykbmfrhylc/Build/Intermediates/My App.build/Debug-iphoneos/My AppTests.build/Objects-normal/arm64/My_AppTests.o:
warning: /Users/me/Library/Developer/Xcode/DerivedData/ModuleCache/3K6537SSXYD4O/UIKit-2LM3EQU7VVY4O.pcm: No such file or directory
...
warning: Could not resolve external type c:objc(cs)XCTestCase
...
warning: Could not resolve external type c:objc(cs)_XCTestCaseInterruptionException
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;What can I do to eliminate these warnings? Since I don't really understand how to use test cases yet, I'd rather not delete the target (but if that is the only option, I will).&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>The developer disk image could not be mounted on this device</title><link>https://stackoverflow.com/questions/79910915/the-developer-disk-image-could-not-be-mounted-on-this-device</link><category>ios</category><category>iphone</category><category>flutter</category><category>xcode</category><author>noemail@noemail.org (Josal)</author><pubDate>Thu, 19 Mar 2026 20:19:50 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79910915</guid><description>
            &lt;p&gt;I'm trying to run my app on a physical iPhone using Xcode, but I’m getting the following error:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.sstatic.net/rp7FInkZ.png" alt="screenshot of xcode select device option" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The developer disk image could not be mounted on this device.&lt;/p&gt;
&lt;p&gt;Error mounting image: 0xe800010f (kAMDMobileImageMounterPersonalizedBundleMissingVariantError: The bundle image is missing the requested variant for this device.)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I am using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;iPhone 17&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Recently installed Xcode 26.3 from AppStore&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;% xcodebuild -version

&amp;gt; Xcode 16.4
&amp;gt; Build version 16F6
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;iOS version - 26.2&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;MacBook Air M3&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It's my first time developing an iOS app on a MacBook and an iPhone, and I've tried many solutions, including restarting the iPhone, toggling developer mode, restarting VS Code, and Xcode.&lt;br /&gt;
Would appreciate it if anyone else has hit this and found a fix.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Are there any ways to prevent app record/capture on macOS</title><link>https://stackoverflow.com/questions/79965552/are-there-any-ways-to-prevent-app-record-capture-on-macos</link><category>swift</category><category>xcode</category><category>macos</category><category>swiftui</category><category>screencapturekit</category><author>noemail@noemail.org (user1542125)</author><pubDate>Tue, 23 Jun 2026 00:07:14 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79965552</guid><description>
            &lt;p&gt;I'm looking for a way to prevent my app from displaying in screenshots and screen recordings. There appears to be plenty of options for UIKit/iOS but nothing I can find for macOS.&lt;/p&gt;
&lt;p&gt;userDidTakeScreenshotNotification&lt;/p&gt;
&lt;p&gt;@Environment(\.sceneCaptureState) private var captureState&lt;/p&gt;
&lt;p&gt;Obviously it's possible though as I remember back in the day you couldn't take screenshots of the DVD Player etc.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Xcode Export Localizations for an iOS app using Swift Package Manager packages fails: No such module UIKit</title><link>https://stackoverflow.com/questions/75537843/xcode-export-localizations-for-an-ios-app-using-swift-package-manager-packages-f</link><category>ios</category><category>swift</category><category>xcode</category><category>swift-package-manager</category><author>noemail@noemail.org (alpennec)</author><pubDate>Wed, 22 Feb 2023 20:28:55 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/75537843</guid><description>
            &lt;p&gt;I'm building an iOS app (the supported destinations in the app target are iOS, iPad and Mac - Designed for iPad). I've many SPM frameworks in order to split my codebase in different features. I want to export the localisations for the different packages and the app using Xcode but it fails. I followed the Apple guide regarding SPM localization: the packages contains a Resources folder with a folder for each language supported. I specified the platforms &lt;code&gt;.iOS(.v16)&lt;/code&gt; in the packages. But it seems that exporting the localisations using the &lt;code&gt;Product &amp;gt; Export Localizations&lt;/code&gt; feature in Xcode compiles also the packages and app for macOS. Here is the error message:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Showing Recent Messages

/Users/axel/Developer/AppName/Packages/Helpers/Sources/Helpers/UIKit/UIImage+Extension.swift:7:14:
No such module 'UIKit'

/Users/axel/Developer/AppName/Packages/Helpers/Sources/Helpers/UIKit/UIImage+Extension.swift:7:14:
UIKit is not available when building for macOS. Consider using `#if canImport(UIKit)` to conditionally import this framework.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is there a way to have the export feature work when building an iOS app with packages specified for iOS?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/QAgQ5.jpg" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/QAgQ5.jpg" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">3</re:rank></item><item><title>How to install universal (x86_64 + arm64) iOS Simulator runtime in Xcode 27 beta?</title><link>https://stackoverflow.com/questions/79965664/how-to-install-universal-x86-64-arm64-ios-simulator-runtime-in-xcode-27-beta</link><category>xcode</category><category>xcode27</category><author>noemail@noemail.org (ximmyxiao)</author><pubDate>Tue, 23 Jun 2026 07:10:01 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79965664</guid><description>
            &lt;p&gt;In Xcode 26 and earlier, I could install a &amp;quot;universal&amp;quot; iOS Simulator runtime (containing both &lt;code&gt;arm64&lt;/code&gt; and &lt;code&gt;x86_64&lt;/code&gt; slices, so that Apple Silicon Macs can run simulators under Rosetta when needed) with:&lt;/p&gt;
&lt;pre class="lang-bash prettyprint-override"&gt;&lt;code&gt;xcodebuild -downloadPlatform iOS -architectureVariant universal
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But in Xcode 27 this command doesn't seem to be working. Is there any other way to install universal simulator in Xcode 27?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">-1</re:rank></item><item><title>Library 'swiftWebKit' not found when building for physical iOS devices after upgrading Xcode — works fine on Simulator</title><link>https://stackoverflow.com/questions/79790204/library-swiftwebkit-not-found-when-building-for-physical-ios-devices-after-upg</link><category>swift</category><category>xcode</category><category>react-native</category><category>xcode26</category><author>noemail@noemail.org (anie)</author><pubDate>Tue, 14 Oct 2025 13:07:51 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79790204</guid><description>
            &lt;p&gt;After upgrading to the latest version of Xcode &lt;strong&gt;Version 26.0 (17A324)&lt;/strong&gt;, my React Native iOS project fails to build or run on a &lt;strong&gt;physical iOS device&lt;/strong&gt;, but runs successfully on the &lt;strong&gt;iOS Simulator&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error shown in Xcode’s build output is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Library 'swiftWebKit' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This issue occurs even after:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Performing a clean build (&lt;code&gt;Shift + Cmd + K&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Deleting &lt;code&gt;DerivedData&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Reinstalling CocoaPods (&lt;code&gt;pod deintegrate &amp;amp;&amp;amp; pod install&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Setting &lt;strong&gt;Always Embed Swift Standard Libraries = YES&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Reinstalling Command Line Tools&lt;/li&gt;
&lt;li&gt;Reinstalling Xcode from the App Store&lt;/li&gt;
&lt;li&gt;Verifying correct toolchain selection (&lt;code&gt;xcode-select -p&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Added file.swift in ios root directory.&lt;/li&gt;
&lt;li&gt;Deleting node_modules folder and pods folder and Podfile.lock then installing them again&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;strong&gt;Steps to Reproduce&lt;/strong&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Upgrade to the latest version of Xcode.&lt;/li&gt;
&lt;li&gt;Open React Native iOS project.&lt;/li&gt;
&lt;li&gt;Select a physical iPhone device as the run target.&lt;/li&gt;
&lt;li&gt;Build and run the project.&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;strong&gt;Expected Result&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The project should compile and run successfully on the physical iOS device, as it does on the simulator.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;strong&gt;Actual Result&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The build fails with:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Library 'swiftWebKit' not found&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Only occurs on physical devices.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;strong&gt;Environment&lt;/strong&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;React native version:&lt;/strong&gt; Version 0.77.0&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Xcode version:&lt;/strong&gt; Version 26.0 (17A324)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;macOS version:&lt;/strong&gt; Version 26.0.1 (25A362) Tahoe&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Device:&lt;/strong&gt; iPhone iPhone 13 Pro&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;iOS version:&lt;/strong&gt; iOS 26.0.1&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;strong&gt;Additional Notes&lt;/strong&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;I am using &lt;a href="https://github.com/paytabscom/react-native-paytabs-library" rel="nofollow noreferrer"&gt;Paytabs&lt;/a&gt; that require libswiftWebKit.tbd to be added in Link Binary With Libraries in build phases section&lt;/li&gt;
&lt;/ul&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">1</re:rank></item><item><title>Xcode doesn't show simulators</title><link>https://stackoverflow.com/questions/78372541/xcode-doesnt-show-simulators</link><category>xcode</category><author>noemail@noemail.org (avisrapāx)</author><pubDate>Tue, 23 Apr 2024 12:56:51 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/78372541</guid><description>
            &lt;p&gt;I have Xcode 15, and I have iOS 17.0 runtime installed manually through terminal, but still it doesn't show Simulator List, just show get iOS 17.0 button&lt;/p&gt;
&lt;p&gt;I checked on platforms and I have iOS 17.0, but I'm trying to download iOS 17 again trough Xcode, why I don't get list of simulators?&lt;/p&gt;
&lt;p&gt;I tried to delete derived data, and I tried to copy manually things from iOS dmg
I also tried to reboot the macbook
I tried to list runtimes with &lt;code&gt;xcrun simctl runtime list&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;== Disk Images ==
-- iOS --
iOS 17.0 (21A328) - 4BFC8A79-C8B1-47CE-B63C-40DB3AE1A321 (Ready)
iOS 17.2 (21C62) - 56D20B12-A33C-45CE-9706-BA5601DE62B6 (Ready)
iOS 17.0 (21A328) - CA6A5939-BB41-40A5-B68C-E670013DA58C (Ready)

Total Disk Images: 3 (16.0G)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/f8Jfat6t.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/f8Jfat6t.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">16</re:rank></item><item><title>iOS 27: App freezes when accessing CLLocationManager.authorizationStatus()</title><link>https://stackoverflow.com/questions/79965130/ios-27-app-freezes-when-accessing-cllocationmanager-authorizationstatus</link><category>ios</category><category>swift</category><category>xcode</category><category>location</category><author>noemail@noemail.org (Rahul Acharya)</author><pubDate>Mon, 22 Jun 2026 08:25:47 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79965130</guid><description>
            &lt;ul&gt;
&lt;li&gt;&lt;p&gt;I'm running into a strange issue that only occurs on iOS 27.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I have a basic &lt;code&gt;LocationManager&lt;/code&gt; implementation:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
import Foundation
import CoreLocation
import UIKit

class LocationManager: NSObject, CLLocationManagerDelegate {

    static let shared = LocationManager()

    private let manager = CLLocationManager()
    private let geocoder = CLGeocoder()

    // MARK: - Public API
    func fetchLocationIfNeeded() {

        manager.delegate = self

        handleAuthorization(CLLocationManager.authorizationStatus())
    }

    private func handleAuthorization(_ status: CLAuthorizationStatus) {

        switch status {
        case .notDetermined:
            manager.requestWhenInUseAuthorization()

        case .restricted, .denied:
            showLocationPermissionAlert()
        case .authorizedWhenInUse, .authorizedAlways:
            manager.desiredAccuracy = kCLLocationAccuracyThreeKilometers
            manager.requestLocation()

        @unknown default:
            break
        }
    }

    private func showLocationPermissionAlert() {
        let alertController = UIAlertController(
            title: &amp;quot;Location Access Required&amp;quot;,
            message: &amp;quot;Please enable location access in Settings to use this feature.&amp;quot;,
            preferredStyle: .alert
        )

        alertController.addAction(UIAlertAction(title: &amp;quot;Open Settings&amp;quot;, style: .default, handler: { _ in
            if let settingsURL = URL(string: UIApplication.openSettingsURLString) {
                UIApplication.shared.open(settingsURL)
            }
        }))

        if let topController = UIApplication.shared.windows.first?.rootViewController {
            topController.present(alertController, animated: true)
        }
    }

    func locationManager(_ manager: CLLocationManager,
                         didChangeAuthorization status: CLAuthorizationStatus) {
        handleAuthorization(status)
    }

    // MARK: - Location
    func locationManager(_ manager: CLLocationManager,
                         didUpdateLocations locations: [CLLocation]) {

        guard let location = locations.first else { return }

        geocoder.reverseGeocodeLocation(location) {
            placemarks,
            error in

            guard error == nil,
                  let postalCode = placemarks?.first?.postalCode,
                  !postalCode.isEmpty else { return }

            print(&amp;quot;zipcode :&amp;quot;, postalCode)
            globalZipCode = postalCode

                NotificationCenter.default.post(
                    name: NSNotification.Name(&amp;quot;ZipcodeGet&amp;quot;),
                    object: nil
                )
        }
    }

    func locationManager(_ manager: CLLocationManager,
                         didFailWithError error: Error) {
        print(&amp;quot;Location error: &amp;quot;, error.localizedDescription)
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On iOS 27, the app appears to freeze before &lt;code&gt;handleAuthorization(_:)&lt;/code&gt; is entered.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The line that seems to trigger the issue is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;handleAuthorization(CLLocationManager.authorizationStatus())
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When I inspect the value in the debugger, I get the following output the first time:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;po CLLocationManager.authorizationStatus() 
warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Running the same command again produces:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;po CLLocationManager.authorizationStatus()
__C.CLAuthorizationStatus
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I've already confirmed that the required permission key exists in &lt;code&gt;Info.plist&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;key&amp;gt;NSLocationWhenInUseUsageDescription&amp;lt;/key&amp;gt;
&amp;lt;string&amp;gt;We use your location to determine your ZIP code.&amp;lt;/string&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The exact same implementation works correctly in older apps, and the issue only appears in this project on iOS 27&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Has anyone seen a similar issue or knows if there are any changes to &lt;code&gt;CLLocationManager.authorizationStatus()&lt;/code&gt; or location authorization handling in iOS 27?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">1</re:rank></item><item><title>Build cancelled on xcode exited with status code 127</title><link>https://stackoverflow.com/questions/79963302/build-cancelled-on-xcode-exited-with-status-code-127</link><category>flutter</category><category>xcode</category><category>mobile-development</category><author>noemail@noemail.org (General Omosco)</author><pubDate>Fri, 19 Jun 2026 17:05:22 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79963302</guid><description>
            &lt;p&gt;I'm trying to publish my flutter app on appstore but unfortunately  i'm getting &lt;strong&gt;build cancelled&lt;/strong&gt; on xcode with an error &lt;code&gt;exited with status code 127&lt;/code&gt; from flutter project anytime i run build or archive on xcode.&lt;/p&gt;
&lt;p&gt;Here is the error logs from xcode:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Showing All Issues
SchemeAction Run\ Prepare\ Flutter\ Framework\ Script /var/folders/gq/5kkd4s5x1036g1g32k6wszg40000gn/T/SchemeScriptAction-4UclLX.sh
    cd /var/folders/gq/5kkd4s5x1036g1g32k6wszg40000gn/T/
    export ACTION=build
    export ADDITIONAL_SDKS=
    export AD_HOC_CODE_SIGNING_ALLOWED=NO
    export AGGREGATE_TRACKED_DOMAINS=YES
    export ALLOW_BUILD_REQUEST_OVERRIDES=NO
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION=NO
    export ALL_OTHER_LDFLAGS=&amp;quot;   -ObjC -l\&amp;quot;bz2\&amp;quot; -l\&amp;quot;c++\&amp;quot; -l\&amp;quot;iconv\&amp;quot; -l\&amp;quot;swiftCoreGraphics\&amp;quot; -l\&amp;quot;z\&amp;quot; -framework \&amp;quot;AudioToolbox\&amp;quot; -framework \&amp;quot;CoreMedia\&amp;quot; -framework \&amp;quot;OrderedSet\&amp;quot; -framework \&amp;quot;PassKit\&amp;quot; -framework \&amp;quot;ffmpeg_kit_flutter_new\&amp;quot; -framework \&amp;quot;ffmpegkit\&amp;quot; -framework \&amp;quot;flutter_background_service_ios\&amp;quot; -framework \&amp;quot;flutter_inappwebview_ios\&amp;quot; -framework \&amp;quot;flutter_native_video_trimmer\&amp;quot; -framework \&amp;quot;get_thumbnail_video\&amp;quot; -framework \&amp;quot;launch_app_store\&amp;quot; -framework \&amp;quot;libavcodec\&amp;quot; -framework \&amp;quot;libavdevice\&amp;quot; -framework \&amp;quot;libavfilter\&amp;quot; -framework \&amp;quot;libavformat\&amp;quot; -framework \&amp;quot;libavutil\&amp;quot; -framework \&amp;quot;libswresample\&amp;quot; -framework \&amp;quot;libswscale\&amp;quot; -framework \&amp;quot;libwebp\&amp;quot; -framework \&amp;quot;pay_ios\&amp;quot; -framework \&amp;quot;permission_handler_apple\&amp;quot; -framework \&amp;quot;sms_autofill\&amp;quot; -framework \&amp;quot;social_sharing_plus\&amp;quot;    &amp;quot;
    export ALL_OTHER_LIBTOOLFLAGS=&amp;quot;    &amp;quot;
    export ALTERNATE_GROUP=staff
    export ALTERNATE_LINKER=
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=generalomosco
    export ALTERNATE_PERMISSIONS_FILES=
    export ALTERNATIVE_DISTRIBUTION_WEB=NO
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES
    export ALWAYS_SEARCH_USER_PATHS=NO
    export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
    export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY=NO
    export APPLY_RULES_IN_COPY_FILES=NO
    export APPLY_RULES_IN_COPY_HEADERS=NO
    export APP_INTENTS_DEPLOYMENT_POSTPROCESSING=NO
    export APP_INTENTS_DEPLOYMENT_TARGET=14.0
    export APP_INTENTS_METADATA_PATH=/Metadata.appintents
    export APP_INTENTS_PLATFORM_FAMILY=
    export APP_PLAYGROUND_ASSET_CATALOG_GENERATOR=appleProductTypesTool
    export APP_PLAYGROUND_GENERATED_ASSET_CATALOG_APPICON_NAME=AppIcon
    ...
    export PROJECT_DIR=/Users/generalomosco/development/FlutterPrts/omosco/ios
    export PROJECT_FILE_PATH=/Users/generalomosco/development/FlutterPrts/omosco/ios/Runner.xcodeproj
    export PROJECT_NAME=Runner
    export PROJECT_TEMP_DIR=/Users/generalomosco/Library/Developer/Xcode/DerivedData/Runner-cdnbojjlaupwrwenkefxtwzvpfpx/Build/Intermediates.noindex/Runner.build
    export PROJECT_TEMP_ROOT=/Users/generalomosco/Library/Developer/Xcode/DerivedData/Runner-cdnbojjlaupwrwenkefxtwzvpfpx/Build/Intermediates.noindex
    export PROVISIONING_PROFILE=
    export PROVISIONING_PROFILE_DESTINATION_PATH=/Users/generalomosco/Library/Developer/Xcode/DerivedData/Runner-cdnbojjlaupwrwenkefxtwzvpfpx/Build/Products/Debug-iphoneos/Runner.app
    export PROVISIONING_PROFILE_REQUIRED=YES
    export PROVISIONING_PROFILE_REQUIRED_YES_YES=YES
    export PROVISIONING_PROFILE_SPECIFIER=
    export PROVISIONING_PROFILE_SUPPORTED=YES
    export PUBLIC_HEADERS_FOLDER_PATH=Runner.app/Headers
    export PWD=
    export REALITYASSET_DEPLOYMENT_TARGET=14.0
    export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
    export REFERENCEOBJECT_STRIP_USDZ=NO
    export REGISTER_APP_GROUPS=
    export REMOVE_CVS_FROM_RESOURCES=YES
    export REMOVE_GIT_FROM_RESOURCES=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
    export REMOVE_HEADER_DIRECTORIES=NO
    export REMOVE_HG_FROM_RESOURCES=YES
    export REMOVE_STATIC_EXECUTABLES_FROM_EMBEDDED_BUNDLES=YES
    export REMOVE_SVN_FROM_RESOURCES=YES
    export RESCHEDULE_INDEPENDENT_HEADERS_PHASES=YES
    export RESMERGER_SOURCES_FORK=auto
    export RESOURCES_PLATFORM_NAME=
    export RESOURCES_UI_FRAMEWORK_FAMILY=
    export RESOURCE_RULES_PLIST_PATH=
    export RETAIN_RAW_BINARIES=
    export REZ_COLLECTOR_DIR=/Users/generalomosco/Library/Developer/Xcode/DerivedData/Runner-cdnbojjlaupwrwenkefxtwzvpfpx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/ResourceManagerResources
    export REZ_EXECUTABLE=
    export REZ_OBJECTS_DIR=/Users/generalomosco/Library/Developer/Xcode/DerivedData/Runner-cdnbojjlaupwrwenkefxtwzvpfpx/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/ResourceManagerResources/Objects
    export REZ_PREFIX_FILE=
    export REZ_PREPROCESSOR_DEFINITIONS=
    export REZ_PREPROCESSOR_UNDEFINITIONS=
    export REZ_RESOLVE_ALIASES=Always
    export REZ_RESOURCE_MAP_READ_ONLY=NO
    export REZ_SCRIPT_TYPE=Roman
    export REZ_SEARCH_PATHS=
    export REZ_SHOW_DEBUG_OUTPUT=NO
    export REZ_SUPPRESS_REDECLARED_RESOURCE_TYPE_WARNINGS=NO
    export RUNTIME_EXCEPTION_ALLOW_DYLD_ENVIRONMENT_VARIABLES=NO
    export RUNTIME_EXCEPTION_ALLOW_JIT=NO
    export RUNTIME_EXCEPTION_ALLOW_UNSIGNED_EXECUTABLE_MEMORY=NO
    export RUNTIME_EXCEPTION_DEBUGGING_TOOL=NO
    export RUNTIME_EXCEPTION_DISABLE_EXECUTABLE_PAGE_PROTECTION=NO
    export RUNTIME_EXCEPTION_DISABLE_LIBRARY_VALIDATION=NO
    export RUN_CLANG_STATIC_ANALYZER=NO
    export RUN_DESTINATION_DEVICE_ECID=678965814624302
    export RUN_DESTINATION_DEVICE_MODEL=iPhone11,6
    export RUN_DESTINATION_DEVICE_NAME=Generalomosco
    export RUN_DESTINATION_DEVICE_OS_VERSION=18.7.9
    export RUN_DESTINATION_DEVICE_PLATFORM_IDENTIFIER=com.apple.platform.iphoneos
    export RUN_DESTINATION_DEVICE_PLATFORM_NAME=iphoneos
    export RUN_DESTINATION_DEVICE_UDID=00008020-000269840C32002E
    export RUN_DESTINATION_DEVICE_UUID=A11D2768-BDED-5E0D-8CA8-06834B026FCA
    export RUN_DOCUMENTATION_COMPILER=NO
    export RemoveFile=
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
    export SCENEKIT_DEPLOYMENT_TARGET=14.0
    export SCHEME_ACTION_NAME=&amp;quot;Run Prepare Flutter Framework Script&amp;quot;
    export SCHEME_NAME=Runner
    export SCRIPTS_FOLDER_PATH=Runner.app/Scripts
    export SDKDB_TO_SYMGRAPH_EXEC=/Applications/Xcode.app/Contents/Developer/../SharedFrameworks/CoreDocumentation.framework/Resources/sdkdb_to_symgraph
    export SDKROOT=iphoneos26.5
    export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk
    export SDK_DIR_iphoneos26_5=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk
    export SDK_NAME=iphoneos26.5
    export SDK_NAMES=iphoneos26.5
    export SDK_PRODUCT_BUILD_VERSION=23F73
    export SDK_STAT_CACHE_ENABLE=YES
    export SDK_STAT_CACHE_VERBOSE_LOGGING=NO
    export SDK_VERSION=26.5
    export SDK_VERSION_ACTUAL=260500
    export SDK_VERSION_MAJOR=260000
    export SDK_VERSION_MINOR=260500
    export SECTORDER_FLAGS=
    export SED=/usr/bin/sed
    export SEPARATE_STRIP=NO
    export SEPARATE_SYMBOL_EDIT=NO
    export SETTING_DefaultValue_NO_NO=NO
    export SETTING_DefaultValue_NO_YES=YES
    export SETTING_DefaultValue_YES_NO=YES
    export SETTING_DefaultValue_YES_YES=YES
    export SETTING_DefaultValue__=NO
    export SET_DIR_MODE_OWNER_GROUP=YES
    export SET_FILE_MODE_OWNER_GROUP=NO
    export SHALLOW_BUNDLE=YES
    export SHALLOW_BUNDLE_PLATFORM=
    export SHALLOW_BUNDLE_TRIPLE=ios
    export SHALLOW_BUNDLE_ios_macabi=NO
    export SHALLOW_BUNDLE_macos=NO
    export ...
    export __OTHER_IIG_CFLAGS__=YES
    export __SWIFT_ENFORCE_EXCLUSIVE_ACCESS_DEBUG_ENFORCEMENT_DEBUG=YES
    export __SWIFT_ENFORCE_EXCLUSIVE_ACCESS_DEBUG_ENFORCEMENT_RELEASE=YES
    export __infoplist_absolute__=/Users/generalomosco/Library/Developer/Xcode/DerivedData/Runner-cdnbojjlaupwrwenkefxtwzvpfpx/Build/Products/Debug-iphoneos/Runner.app
    export __infoplist_subpath__=Info.plist
    export __no_validate_extension__=YES
    export _exclude_ds_store_files_=
    export _resolve_src_symlinks_=
    export arch=undefined_arch
    export build_file_compiler_flags=
    export diagnostic_message_length=0
    export mig_generate_client_sources=YES
    export mig_generate_server_sources=NO
    export print_note_include_stack=YES
    export variant=normal
    /bin/sh -c /var/folders/gq/5kkd4s5x1036g1g32k6wszg40000gn/T/SchemeScriptAction-4UclLX.sh

/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
p
Exited with status code 127

&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>How can I only show errors in the issue navigator?</title><link>https://stackoverflow.com/questions/18039197/how-can-i-only-show-errors-in-the-issue-navigator</link><category>xcode</category><author>noemail@noemail.org (Adam Lee)</author><pubDate>Sun, 4 Aug 2013 02:26:42 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/18039197</guid><description>
            &lt;p&gt;In the issue navigator inside Xcode 4, a lot of warnings are shown, as well as errors.&lt;/p&gt;
&lt;p&gt;How can I force it to only show errors? I.e., I would like hide warnings.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">96</re:rank></item><item><title>Unable to add nullable symbols for weak library /System/Library/Frameworks/DeveloperToolsSupport.framework/Versions/A/DeveloperToolsSupport</title><link>https://stackoverflow.com/questions/79962421/unable-to-add-nullable-symbols-for-weak-library-system-library-frameworks-devel</link><category>xcode</category><author>noemail@noemail.org (Apoorva Sharma)</author><pubDate>Thu, 18 Jun 2026 02:17:55 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79962421</guid><description>
            &lt;p&gt;Trying to create an app using xcode and cursor. After setting up the project, getting following error in set up.&lt;/p&gt;
&lt;p&gt;Uable to add nullable symbols for weak library /System/Library/Frameworks/DeveloperToolsSupport.framework/Versions/A/DeveloperToolsSupport&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Xcode, Pods ProjectName.debug.xcconfig unable to open file. Wrong directory</title><link>https://stackoverflow.com/questions/55558984/xcode-pods-projectname-debug-xcconfig-unable-to-open-file-wrong-directory</link><category>xcode</category><category>cocoapods</category><author>noemail@noemail.org (pragmus)</author><pubDate>Sun, 7 Apr 2019 12:23:11 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/55558984</guid><description>
            &lt;p&gt;When I build project, I see build error: &lt;code&gt;ProjectName.debug.xcconfig unable to open file&lt;/code&gt;. I couldn't understand my problem for a long time, but today I take attention, what directory is wrong: full error: &lt;code&gt;projectName/Pods/Pods...ProjectName.debug.xcconfig unable to open file&lt;/code&gt; Where &lt;code&gt;Pods&lt;/code&gt; part duplicated, so correct directory must be as &lt;code&gt;projectName/Pods...ProjectName.debug.xcconfig&lt;/code&gt; How to fix it?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">101</re:rank></item><item><title>Ack command not found error</title><link>https://stackoverflow.com/questions/24134775/ack-command-not-found-error</link><category>ios</category><category>xcode</category><category>bash</category><category>terminal</category><category>assets</category><author>noemail@noemail.org (Tariq)</author><pubDate>Tue, 10 Jun 2014 07:00:47 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/24134775</guid><description>
            &lt;p&gt;Recently I wrote a &lt;a href="https://gist.github.com/tariq235/ecda40b89f85a9f94716#file-removeunusedimages-sh" rel="nofollow"&gt;bash script&lt;/a&gt; to delete unused images from the Xcode project. That was working fine on Mountain Lion. Today I installed latest version of Mavericks (I did clean install). But now while running the terminal command i.e.&lt;code&gt;bash removeunusedimages.sh&lt;/code&gt;. I'm getting following error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;removeUnusedImages.sh: line 5: ack: command not found
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I have tried searching about ack on google but still not able to fix the issue. &lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>iOS 26/27 SwiftUI — how to get the “search as a tab” morph (tabs collapse left + search field at the bottom) with a separated search tab?</title><link>https://stackoverflow.com/questions/79960644/ios-26-27-swiftui-how-to-get-the-search-as-a-tab-morph-tabs-collapse-left</link><category>ios</category><category>swift</category><category>xcode</category><category>swiftui</category><author>noemail@noemail.org (Maxime Poriel)</author><pubDate>Tue, 16 Jun 2026 12:45:38 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79960644</guid><description>
            &lt;p&gt;I'm building a SwiftUI app on &lt;strong&gt;Xcode 26/27 (beta), targeting iOS 26 / iOS 27&lt;/strong&gt;, and I want the exact &lt;em&gt;“search as a tab”&lt;/em&gt; behavior that Apple's own apps use (Phone, News, Health, Music): a search tab that is &lt;strong&gt;visually detached&lt;/strong&gt; on the trailing side of the Liquid Glass tab bar, and when tapped, the other tabs &lt;strong&gt;collapse to the left&lt;/strong&gt; while the &lt;strong&gt;search field slides in at the bottom&lt;/strong&gt; of the screen (taking the place of the tab bar), with the keyboard appearing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What's supposed to work (WWDC “search as a tab”):&lt;/strong&gt;&lt;/p&gt;
&lt;pre class="lang-swift prettyprint-override"&gt;&lt;code&gt;TabView {
    Tab(&amp;quot;Home&amp;quot;, systemImage: &amp;quot;house&amp;quot;) { HomeView() }
    Tab(&amp;quot;Ranking&amp;quot;, systemImage: &amp;quot;medal&amp;quot;) { RankingView() }
    Tab(role: .search) {
        NavigationStack {
            SearchView()
        }
    }
}
.searchable(text: $query)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On &lt;strong&gt;iOS 26&lt;/strong&gt; this gives the separated, morphing search tab as expected.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My problem on iOS 27:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;On my iOS 27 build, &lt;code&gt;Tab(role: .search)&lt;/code&gt; is &lt;strong&gt;not&lt;/strong&gt; visually separated — it stays glued to the other tabs.&lt;/p&gt;
&lt;p&gt;I found the separation fix in a &lt;strong&gt;StackOverflow answer, not in the Apple documentation&lt;/strong&gt; (am I blind? I genuinely cannot find it documented): on iOS 27 there's the new &lt;code&gt;TabRole.prominent&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="lang-swift prettyprint-override"&gt;&lt;code&gt;Tab(&amp;quot;Search&amp;quot;, systemImage: &amp;quot;magnifyingglass&amp;quot;, value: .search, role: .prominent) {
    NavigationStack { SearchView() }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This correctly detaches the tab to the right.
But now I lose the search behavior: with .prominent, .searchable just renders a normal search field at the top (under the nav bar). I can push it to the bottom bar with:&lt;/p&gt;
&lt;pre class="lang-swift prettyprint-override"&gt;&lt;code&gt;.searchable(text: $query)
.toolbar { DefaultToolbarItem(kind: .search, placement: .bottomBar) }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;…but that's only a static bottom search field. I don't get the &lt;strong&gt;morph&lt;/strong&gt; — the tabs collapsing to the left and the field expanding in place of the tab bar (like the Phone app).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Question&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;On iOS 27, how do I get &lt;strong&gt;both&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;the search tab visually &lt;strong&gt;separated&lt;/strong&gt; (which apparently requires &lt;code&gt;.prominent&lt;/code&gt;), and&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;the native &lt;strong&gt;“search as a tab” morph&lt;/strong&gt; (other tabs collapse left + search field replaces the tab bar at the bottom + keyboard), which seems to only happen with &lt;code&gt;role: .search&lt;/code&gt;?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Are &lt;code&gt;.search&lt;/code&gt; (for the morph) and &lt;code&gt;.prominent&lt;/code&gt; (for the separation) &lt;strong&gt;mutually exclusive&lt;/strong&gt; on iOS 27? Is there an API I'm missing to make a &lt;code&gt;role: .search&lt;/code&gt; tab reliably separate on iOS 27, or to trigger the morph with &lt;code&gt;.prominent&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Environment:&lt;/strong&gt; Xcode 27 beta · iOS 27 simulator + device · deployment target iOS 26.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">3</re:rank></item><item><title>Xcode debugger freezes with "error: memory read failed for 0x0" on iOS 27 and tvOS 27 devices</title><link>https://stackoverflow.com/questions/79960461/xcode-debugger-freezes-with-error-memory-read-failed-for-0x0-on-ios-27-and-tv</link><category>ios</category><category>swift</category><category>xcode</category><author>noemail@noemail.org (Rahul Acharya)</author><pubDate>Tue, 16 Jun 2026 05:48:11 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79960461</guid><description>
            &lt;p&gt;I'm experiencing an issue when debugging my app on a physical device running &lt;strong&gt;iOS 27&lt;/strong&gt; (also reproducible on &lt;strong&gt;tvOS 27&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;The app itself runs correctly, but Xcode gets stuck during debugging. The Project Navigator highlights &lt;strong&gt;Thread 1&lt;/strong&gt;, and the debugger shows the following message:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;error: memory read failed for 0x0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Additional warnings may appear, such as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not find the on-disk shared cache for this device.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Observations:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The app works normally on the device.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If I stop debugging and launch the app manually, it runs without any issues.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The problem only occurs when running from Xcode with the debugger attached.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Has anyone encountered this issue with Xcode and iOS 27/tvOS 27?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Struggling with In-App Purchases - App Store Connect</title><link>https://stackoverflow.com/questions/79958658/struggling-with-in-app-purchases-app-store-connect</link><category>ios</category><category>xcode</category><category>in-app-purchase</category><author>noemail@noemail.org (user30008885)</author><pubDate>Sat, 13 Jun 2026 23:09:38 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79958658</guid><description>
            &lt;p&gt;Getting my IAPs rejected&lt;/p&gt;
&lt;p&gt;We have begun the review of your In-App Purchase products but are not able to continue because you have submitted In-App Purchase products for the Consumable type, but you have not yet submitted an updated binary for review.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Next Steps&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To resolve this issue, please upload a new binary and resubmit the In-App Purchase products for review&lt;/p&gt;
&lt;p&gt;However, my version 1.03 is approved and live. Each resubmission triggers the same rejection. I've contacted Apple Support, and their feedback isn't helpful. I'm not sure what to do as it's my 7th time submitting it.&lt;/p&gt;
&lt;p&gt;Please advise if possible. Thank you so much&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">1</re:rank></item><item><title>How to automatically operate SwiftUI TabView / TabBar when running UI XCTestCase</title><link>https://stackoverflow.com/questions/79841906/how-to-automatically-operate-swiftui-tabview-tabbar-when-running-ui-xctestcase</link><category>ios</category><category>swift</category><category>xcode</category><category>swiftui</category><author>noemail@noemail.org (Andrei Herford)</author><pubDate>Tue, 9 Dec 2025 12:12:58 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79841906</guid><description>
            &lt;p&gt;I am trying to run an and operate my app automatically using a &lt;code&gt;UI XCTestCase&lt;/code&gt;. While operating buttons and other controls by addressing them with their &lt;code&gt;accessibilityIdentifier&lt;/code&gt; I struggle to do the same with a &lt;code&gt;TabView&lt;/code&gt; and its pages / tab bar.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// View Code
TabView(selection: $viewModel.selectedTabIndex)  {
    PageOne()
        .tag(0)
        .accessibilityIdentifier(&amp;quot;pageOneTab&amp;quot;)

    PageTwo()
        .tag(1)
        .accessibilityIdentifier(&amp;quot;pageTwoTab&amp;quot;)

    PageThree()
        .tag(2)
        .accessibilityIdentifier(&amp;quot;pageThreeTab&amp;quot;)
}

// View as TabBar or use paging
.tabViewStyle(.page(indexDisplayMode: .never))

.accessibilityIdentifier(&amp;quot;myTabView&amp;quot;)


// Test Code
@MainActor
func testUI() throws {
    let app = XCUIApplication()
    app.launch()
    ...

    // try to swipe paging tab view
    app.otherElements[&amp;quot;pageOneTab&amp;quot;].swipeLeft() // fails
    app.otherElements[&amp;quot;myTabView&amp;quot;].swipeLeft()  // fails

    // OR
    // try to operate tab bar
    app.buttons[&amp;quot;pageOneTab&amp;quot;].tap()  // fails
}

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In all cases the test fails, with some message like&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Failed to swipe left &amp;quot;pageOneTab&amp;quot; Other: No matches found for
Elements matching predicate '&amp;quot;pageOneTab&amp;quot; IN identifiers' from...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So the test cannot find the controls using the given IDs. But how to address the tabs correctly?&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Full Demo:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import SwiftUI

@main
struct TestApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

struct ContentView: View {
    var body: some View {
        TabView {
            PageOne()
                .tag(0)
                .accessibilityIdentifier(&amp;quot;pageOneTab&amp;quot;)
            PageTwo()
                .tag(1)
                .accessibilityIdentifier(&amp;quot;pageTwoTab&amp;quot;)
        }
    }
}

struct PageOne: View {
    var body: some View {
        VStack {
            Text(&amp;quot;PageOne&amp;quot;)
            
            TabView {
                Text(&amp;quot;TabPage1&amp;quot;)
                    .tag(0)
                    .accessibilityIdentifier(&amp;quot;pagerPage1&amp;quot;)
                Text(&amp;quot;TabPage2&amp;quot;)
                    .tag(1)
                    .accessibilityIdentifier(&amp;quot;pagerPage2&amp;quot;)
            }
            .tabViewStyle(.page(indexDisplayMode: .never))
            .accessibilityIdentifier(&amp;quot;pagerTabView&amp;quot;)
        }
        .frame(maxWidth: .infinity, maxHeight: .infinity)
        .background(.yellow)
    }
}

struct PageTwo: View  {
    var body: some View {
        VStack {
            Text(&amp;quot;PageTwo&amp;quot;)
        }
        .frame(maxWidth: .infinity, maxHeight: .infinity)
        .background(.red)
    }
}


import XCTest

final class TestUITests: XCTestCase {
    @MainActor
    func testUI() throws {
        let app = XCUIApplication()
        app.launch()
        
        app.buttons[&amp;quot;pageTwoTab&amp;quot;].tap()
        app.tabs[&amp;quot;pageTwoTab&amp;quot;].firstMatch.tap()
        
        app.otherElements[&amp;quot;pagerPage1&amp;quot;].swipeLeft()
        app.otherElements[&amp;quot;pagerTabView&amp;quot;].swipeLeft()
    }
}
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">1</re:rank></item><item><title>I got error "app record creation failed as you do not have permission to perform request of this type." when trying to upload the archive</title><link>https://stackoverflow.com/questions/76306556/i-got-error-app-record-creation-failed-as-you-do-not-have-permission-to-perform</link><category>ios</category><category>xcode</category><category>app-store-connect</category><author>noemail@noemail.org (Sarosh Tahir)</author><pubDate>Mon, 22 May 2023 13:10:50 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/76306556</guid><description>
            &lt;p&gt;When I tried to upload the app previously its was working fine I uploaded around 17 builds to testflight but recently we converted to Organization account and I was assigned the admin role and since then I am unable to upload.
Xcode version 14.2
&lt;a href="https://i.sstatic.net/920Pt.png" rel="nofollow noreferrer"&gt;Error&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have tried removing and adding the app store id.
I ahve also tried changing name and bundle identifier.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">3</re:rank></item><item><title>How to open Safari Extension ToolbarItem popover programmatically</title><link>https://stackoverflow.com/questions/40554363/how-to-open-safari-extension-toolbaritem-popover-programmatically</link><category>swift</category><category>xcode</category><category>cocoa</category><category>safari-extension</category><author>noemail@noemail.org (michael_head)</author><pubDate>Fri, 11 Nov 2016 18:50:42 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/40554363</guid><description>
            &lt;p&gt;I want to programmatically trigger a 'click' event on my Safari Extension toolbarItem so that my custom popover appears after something happens on the webpage. I'm using the new Xcode extension IDE and have built my popover using interface builder. All of the answers on StackOverflow currently deal with extensions built in the Safari extension builder and not in the Xcode interface. For example, I have tried injected Safari JS solutions like: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;safari.extension.toolbarItems[0].showPopover();
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But nothing happens, and I don't think it's supposed to work when you build extensions in Xcode. I don't care whether the popover is triggered in the injected javascript or in my SafariExtensionHandler.Swift file -- I just need a way to show it without a user click on the toolbar item.&lt;/p&gt;

&lt;p&gt;I have associated my popover with my toolbar item using the extension's info.plist which I have linked to below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.sstatic.net/VxyLs.png" rel="noreferrer"&gt;https://i.sstatic.net/VxyLs.png&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The extension is bundled with a native CocoaOS app, and it's constructed using the new Xcode paradigm introduced at WWDC '15 (link below). I can access the Toolbaritem in SafariExtensionHandler.Swift with this method: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt; func getToolbarItem(completionHandler: @escaping (SFSafariToolbarItem?) -&amp;gt; Void) {
    SFSafariApplication.getActiveWindow {$0?.getToolbarItem (completionHandler: completionHandler)}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But the toolbarItem object doesn't seem to have a method to show the popover.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.apple.com/videos/play/wwdc2016/214/" rel="noreferrer"&gt;https://developer.apple.com/videos/play/wwdc2016/214/&lt;/a&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">12</re:rank></item><item><title>"No Script Url Provided" Error when running React Native Project on Xcode</title><link>https://stackoverflow.com/questions/79170098/no-script-url-provided-error-when-running-react-native-project-on-xcode</link><category>ios</category><category>xcode</category><category>react-native</category><author>noemail@noemail.org (Jin)</author><pubDate>Fri, 8 Nov 2024 12:50:25 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79170098</guid><description>
            &lt;p&gt;I have been following the react native set up guide from &lt;a href="https://reactnative.dev/docs/getting-started-without-a-framework" rel="noreferrer"&gt;https://reactnative.dev/docs/getting-started-without-a-framework&lt;/a&gt;
and set up the environment according to here &lt;a href="https://reactnative.dev/docs/set-up-your-environment" rel="noreferrer"&gt;https://reactnative.dev/docs/set-up-your-environment&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I have followed everything and once opening up the workspace with Xcode 16.1 and building successfully with the IPhone 16 simulator I get this error:
&lt;a href="https://i.sstatic.net/jtBxGD5F.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/jtBxGD5F.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;No idea whats wrong, I am new to Xcode and building IOS apps. I have checked other answers but they all seem to be using the 'react-native' command which I never used, I simply click the run button on Xcode.&lt;/p&gt;
&lt;p&gt;What is going on? And what is the solution? What am I missing from the guide?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">10</re:rank></item><item><title>Testing SMS in the iOS Simulator</title><link>https://stackoverflow.com/questions/9012393/testing-sms-in-the-ios-simulator</link><category>ios</category><category>xcode</category><category>ios-simulator</category><author>noemail@noemail.org (Aldee)</author><pubDate>Thu, 26 Jan 2012 00:18:43 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/9012393</guid><description>
            &lt;p&gt;Is it possible to open the message composer interface in the iPhone simulator in xcode? if it is can someone tell me how.. I really need it  now and having hard times finding a solution how and why my code does not work on simulator.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">18</re:rank></item><item><title>Swift package is not loading and giving dyld[11588]: Library not loaded: @rpath/libinference_engine.dylib error</title><link>https://stackoverflow.com/questions/79957357/swift-package-is-not-loading-and-giving-dyld11588-library-not-loaded-rpath</link><category>ios</category><category>swift</category><category>xcode</category><category>swiftui</category><author>noemail@noemail.org (Pranay Vohra)</author><pubDate>Sat, 13 Jun 2026 00:45:01 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79957357</guid><description>
            &lt;p&gt;I am trying to use &lt;a href="https://github.com/Liquid4All/leap-ios" rel="nofollow noreferrer"&gt;LeapSDK&lt;/a&gt; iOS Swift SDK to run leap on device models. My app is building but upon running it is giving the following errors:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Library not loaded: @rpath/libinference_engine.dylib
  Referenced from: &amp;lt;B297B50F-C1AB-333F-A7BE-DF002AA2DCB3&amp;gt; /private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/LeapSDK.framework/LeapSDK
  Reason: tried: '/usr/lib/system/introspection/libinference_engine.dylib' (no such file, not in dyld cache), '/usr/lib/swift/libinference_engine.dylib' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/libinference_engine.dylib' (no such file), '/private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/libinference_engine.dylib' (no such file), '/private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/LeapSDK.framework/Frameworks/libinference_engine.dylib' (code signature invalid in &amp;lt;68BDF178-BCF6-304F-BC96-2409A199131A&amp;gt; '/private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/LeapSDK.framework/Frameworks/libin
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libLogRedirect.dylib:/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/usr/lib/libViewDebuggerSupport.dylib
Library not loaded: @rpath/libinference_engine.dylib
  Referenced from: &amp;lt;B297B50F-C1AB-333F-A7BE-DF002AA2DCB3&amp;gt; /private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/LeapSDK.framework/LeapSDK
  Reason: tried: '/usr/lib/system/introspection/libinference_engine.dylib' (no such file, not in dyld cache), '/usr/lib/swift/libinference_engine.dylib' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/libinference_engine.dylib' (no such file), '/private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/libinference_engine.dylib' (no such file), '/private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/LeapSDK.framework/Frameworks/libinference_engine.dylib' (code signature invalid in &amp;lt;68BDF178-BCF6-304F-BC96-2409A199131A&amp;gt; '/private/var/containers/Bundle/Application/C73AB24E-5E9B-4765-83EC-8493F6E98C28/MemoIt.app/Frameworks/LeapSDK.framework/Frameworks/libin
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libLogRedirect.dylib:/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/usr/lib/libViewDebuggerSupport.dylib  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I am using Xcode 26.5 and there is no option to explicitly embed and sign frameworks. Also checked that my Runpath is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@executable_path/Frameworks
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>“xxx.app” cannot be opened because the developer cannot be verified. even though notarization was successfull</title><link>https://stackoverflow.com/questions/78623570/xxx-app-cannot-be-opened-because-the-developer-cannot-be-verified-even-though</link><category>flutter</category><category>xcode</category><category>github-actions</category><category>notarize</category><category>sparkle</category><author>noemail@noemail.org (Maximilian Fornacon)</author><pubDate>Fri, 14 Jun 2024 14:34:10 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/78623570</guid><description>
            &lt;p&gt;I'm building a MacOS application with Flutter. I'm new to MacOS-Development in general and might need some assistance with all the steps that are necessary to complete before I can successfully publish the application.&lt;/p&gt;
&lt;p&gt;The main problem currently is that I get this &lt;em&gt;&lt;strong&gt;&amp;quot;“xxx.app” cannot be opened because the developer cannot be verified.&amp;quot;&lt;/strong&gt;&lt;/em&gt; dialog, when I want to execute the application.&lt;/p&gt;
&lt;p&gt;I want to deliver the app via dmg-File. The &amp;quot;installation&amp;quot; works fine I guess, but the dialog appears when I'm launching the app e.g. from launchpad.&lt;/p&gt;
&lt;p&gt;I'm also using sparkle-project for updating the application later on.&lt;/p&gt;
&lt;p&gt;My research has resulted in it being an issue with notarization.&lt;/p&gt;
&lt;p&gt;I'll try to describe my whole build process as detailed as possible.&lt;/p&gt;
&lt;p&gt;First of all I'm using GitHub Actions.
For creating the build I'm using the &lt;a href="https://pub.dev/packages/flutter_distributor" rel="nofollow noreferrer"&gt;flutter_distributor&lt;/a&gt; package. It simplifies the process of packaging and creating the dmg-file.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- name: Build with flutter_distributor
  run: |
    dart pub global activate flutter_distributor
    flutter_distributor release --name prod --jobs macos-dmg
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is the configuration for flutter_distributor:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;output: dist/
releases:
  - name: prod
    jobs:
      - name: macos-dmg
        package:
          platform: macos
          target: dmg
          build_args:
            dart-define:
              APP_ENV: dev
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Packaging went all good and it resulted in a dmg-image which could be executed.
It uses &lt;a href="https://github.com/LinusU/node-appdmg" rel="nofollow noreferrer"&gt;node-appdmg&lt;/a&gt; for creation of the dmg-image.&lt;/p&gt;
&lt;p&gt;The next step is notarization and stapling:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;      - name: &amp;quot;Notarize and Staple Release Build&amp;quot;
        uses: GuillaumeFalourd/notary-tools@v1
        with:
          product_path: &amp;quot;dist/${{ steps.version.outputs.VERSION }}/xxx.dmg&amp;quot;
          apple_id: ${{ secrets.NOTARIZATION_USERNAME }}
          password: ${{ secrets.NOTARIZATION_PASSWORD }}
          team_id: ${{ secrets.NOTARIZATION_TEAMID }}
          staple: true
          xcode_path: '/Applications/Xcode.app'
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Notarization &lt;em&gt;&lt;strong&gt;failed&lt;/strong&gt;&lt;/em&gt; at this point.&lt;/p&gt;
&lt;p&gt;I read in the logs of node-appdmg that it skipped the signing part when creating the dmg-image. Therefore I added the code-sign configuration:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;code-sign&amp;quot;: {
  &amp;quot;signing-identity&amp;quot;: &amp;quot;Developer ID Application: xxx (***)&amp;quot;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After this it signed the dmg but notarization still &lt;em&gt;&lt;strong&gt;failed&lt;/strong&gt;&lt;/em&gt;. So I looked into the notarization logs:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{
      &amp;quot;severity&amp;quot;: &amp;quot;error&amp;quot;,
      &amp;quot;code&amp;quot;: null,
      &amp;quot;path&amp;quot;: &amp;quot;xxx.dmg/xxx.app/Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate&amp;quot;,
      &amp;quot;message&amp;quot;: &amp;quot;The binary is not signed with a valid Developer ID certificate.&amp;quot;,
      &amp;quot;docUrl&amp;quot;: &amp;quot;https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087721&amp;quot;,
      &amp;quot;architecture&amp;quot;: &amp;quot;x86_64&amp;quot;
    },
    {
      &amp;quot;severity&amp;quot;: &amp;quot;error&amp;quot;,
      &amp;quot;code&amp;quot;: null,
      &amp;quot;path&amp;quot;: &amp;quot;xxx.dmg/xxx.app/Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate&amp;quot;,
      &amp;quot;message&amp;quot;: &amp;quot;The signature does not include a secure timestamp.&amp;quot;,
      &amp;quot;docUrl&amp;quot;: &amp;quot;https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087733&amp;quot;,
      &amp;quot;architecture&amp;quot;: &amp;quot;x86_64&amp;quot;
    },
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;There were more like this that appear to be related to sparkle.
So my solution to this was adding &lt;code&gt;--timestamp&lt;/code&gt; and &lt;code&gt;--deep&lt;/code&gt; to &lt;code&gt;Other Code Signing Flags&lt;/code&gt; in XCode.&lt;/p&gt;
&lt;p&gt;After this notarization and stapling was &lt;em&gt;&lt;strong&gt;successful&lt;/strong&gt;&lt;/em&gt;, but the dialog still appeared when I try to start the application.&lt;/p&gt;
&lt;p&gt;What am I missing? Do I need to notarize the app before adding it to the dmg-image aswell?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">2</re:rank></item><item><title>error build: Command PhaseScriptExecution failed with a nonzero exit code (Xcode 14)</title><link>https://stackoverflow.com/questions/73738960/error-build-command-phasescriptexecution-failed-with-a-nonzero-exit-code-xcode</link><category>xcode</category><category>flutter</category><author>noemail@noemail.org (user16525780)</author><pubDate>Fri, 16 Sep 2022 01:34:09 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/73738960</guid><description>
            &lt;p&gt;I updated Xcode to 14.0, and tried to run flutter app with flutter run.&lt;/p&gt;
&lt;p&gt;After a bunch of warnings, flutter fails saying &amp;quot;Could not build the precompiled application for the device.&amp;quot;
It's same when I build with Xcode.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    In module 'UIKit' imported from /Users/tenna/Desktop/sflo/ios/Pods/Target Support Files/AppAuth/AppAuth-prefix.pch:2:
 ...

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/in_ap
    p_purchase_storekit/in_app_purchase_storekit.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/googl
    e_maps_flutter/google_maps_flutter.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
    e/Stripe3DS2.bundle'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/geoco
    ding/geocoding.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/gRPC-
    C++/gRPCCertificates-Cpp.bundle'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/geolo
    cator_apple/geolocator_apple.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
    er_native_splash/flutter_native_splash.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
    er_local_notifications/flutter_local_notifications.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
    er_app_badger/flutter_app_badger.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
    ase_storage/firebase_storage.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
    ase_messaging/firebase_messaging.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
    er_image_compress/flutter_image_compress.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
    ase_crashlytics/firebase_crashlytics.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
    ase_core/firebase_core.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
    ase_dynamic_links/firebase_dynamic_links.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
    ase_auth/firebase_auth.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/cloud
    _functions/cloud_functions.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
    ase_analytics/firebase_analytics.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
    eApplePay/StripeApplePay.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
    e/Stripe.bundle'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/SFLO.
    app'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/SDWeb
    ImageWebPCoder/SDWebImageWebPCoder.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
    eCore/StripeCore.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
    eUICore/StripeUICore.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
    eFinancialConnections/StripeFinancialConnections.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/SDWeb
    Image/SDWebImage.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/absei
    l/absl.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Mantl
    e/Mantle.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Promi
    sesObjC/FBLPromises.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/MTBBa
    rcodeScanner/MTBBarcodeScanner.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
    e/Stripe.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Googl
    eUtilities/GoogleUtilities.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/GTMAp
    pAuth/GTMAppAuth.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Googl
    eDataTransport/GoogleDataTransport.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseMessaging/FirebaseMessaging.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/GTMSe
    ssionFetcher/GTMSessionFetcher.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseStorage/FirebaseStorage.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseInstallations/FirebaseInstallations.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseFunctions/FirebaseFunctions.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseCoreDiagnostics/FirebaseCoreDiagnostics.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseDynamicLinks/FirebaseDynamicLinks.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseCrashlytics/FirebaseCrashlytics.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/gRPC-
    Core/grpc.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseCore/FirebaseCore.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/FMDB/
    FMDB.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseFirestore/FirebaseFirestore.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
    aseAuth/FirebaseAuth.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/AppAu
    th/AppAuth.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/gRPC-
    C++/grpcpp.framework'

    note: Removed stale file
    '/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Borin
    gSSL-GRPC/openssl_grpc.framework'

    warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not
    specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run
    in every build by unchecking &amp;quot;Based on dependency analysis&amp;quot; in the script phase. (in target 'BoringSSL-GRPC' from project
    'Pods')
    warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not
    specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run
    in every build by unchecking &amp;quot;Based on dependency analysis&amp;quot; in the script phase. (in target 'abseil' from project 'Pods')
    warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not
    specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run
    in every build by unchecking &amp;quot;Based on dependency analysis&amp;quot; in the script phase. (in target 'gRPC-Core' from project
    'Pods')
    warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not
    specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run
    in every build by unchecking &amp;quot;Based on dependency analysis&amp;quot; in the script phase. (in target 'gRPC-C++' from project
    'Pods')
    warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To
    address this warning, either add output dependencies to the script phase, or configure it to run in every build by
    unchecking &amp;quot;Based on dependency analysis&amp;quot; in the script phase. (in target 'SFLO' from project 'Runner')
    warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To
    address this warning, either add output dependencies to the script phase, or configure it to run in every build by
    unchecking &amp;quot;Based on dependency analysis&amp;quot; in the script phase. (in target 'SFLO' from project 'Runner')

    Result bundle written to path:
        /var/folders/cv/yb103sl92sn87wng_mvscb_80000gn/T/flutter_tools.MJYYvf/flutter_ios_build_temp_dirwtIiAC/temporary_xcresul
        t_bundle


Could not build the precompiled application for the device.

Error launching application on tenna (2).
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I've tried excluding arm64, setting IPHONEOS_DEPLOYMENT_TARGET to 15.0.
flutter clean, clean build cache etc.
But none of them works..&lt;/p&gt;
&lt;p&gt;flutter doctor
.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[✓] Flutter (Channel stable, 3.3.2, on macOS 12.5 21G72 darwin-arm, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.71.0)
[✓] Connected device (5 available)
[✓] HTTP Host Availability

• No issues found!
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">3</re:rank></item><item><title>Does DEVELOPER_DIR need to remain set in the environment?</title><link>https://stackoverflow.com/questions/42862112/does-developer-dir-need-to-remain-set-in-the-environment</link><category>xcode</category><category>macos</category><category>environment-variables</category><category>clang</category><category>xcrun</category><author>noemail@noemail.org (acm)</author><pubDate>Fri, 17 Mar 2017 16:01:25 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/42862112</guid><description>
            &lt;p&gt;I'd like to have side-by-side installations of Xcode, and use the &lt;code&gt;DEVELOPER_DIR&lt;/code&gt; environment variable to select between them. The goal for this is to use the result of &lt;code&gt;xcrun -f --sdk macosx clang&lt;/code&gt; to determine the appropriate C compiler, and then use that in a script or build system.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CC=$(DEVELOPER_DIR=&amp;lt;something&amp;gt; xcrun -f --sdk macosx clang)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;My question is whether &lt;code&gt;DEVELOPER_DIR&lt;/code&gt; needs to remain set when &lt;em&gt;using&lt;/em&gt; the tools found by &lt;code&gt;xcrun&lt;/code&gt;, or whether it is OK to just set it during the execution of &lt;code&gt;xcrun&lt;/code&gt;, as is done above, and then use the returned tools in the default environment, without &lt;code&gt;DEVELOPER_DIR&lt;/code&gt; still set.&lt;/p&gt;
&lt;p&gt;In other words, while &lt;code&gt;xcrun&lt;/code&gt; clearly does depend on the value of &lt;code&gt;DEVELOPER_DIR&lt;/code&gt;, do the tools themselves depend on it too? Is there a meaningful difference between:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;DEVELOPER_DIR=&amp;lt;whatever&amp;gt; command CC=$(xcrun -f --sdk macosx clang)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;command CC=$(DEVELOPER_DIR=&amp;lt;whatever&amp;gt; xcrun -f --sdk macosx clang)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is the second one correct? Or only the first?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">8</re:rank></item><item><title>Xcode 26.4 build error: "call to consteval function 'fmt::basic_format_string' is not a constant expression" in React Native iOS build</title><link>https://stackoverflow.com/questions/79921402/xcode-26-4-build-error-call-to-consteval-function-fmtbasic-format-string-i</link><category>ios</category><category>xcode</category><category>react-native</category><category>mobile</category><category>build</category><author>noemail@noemail.org (Waseem Kurne)</author><pubDate>Tue, 7 Apr 2026 09:09:10 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79921402</guid><description>
            &lt;p&gt;I am encountering a build error while compiling a React Native iOS project using Xcode 26.4.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Environment&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;React Native: 0.81.x&lt;/li&gt;
&lt;li&gt;Xcode: 26.4&lt;/li&gt;
&lt;li&gt;macOS: 26.4&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;
During the build process, I get the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;call to consteval function 'fmt::basic_format_string' is not a constant expression
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Expected Behaviour&lt;/strong&gt;
The project should compile and run successfully on iOS without build errors.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Actual Behaviour&lt;/strong&gt;
The build fails during compilation with the above error.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Steps to Reproduce&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create or open a React Native project&lt;/li&gt;
&lt;li&gt;Install dependencies (npm install / yarn)&lt;/li&gt;
&lt;li&gt;Open the iOS project in Xcode 26.4&lt;/li&gt;
&lt;li&gt;Attempt to build the project&lt;/li&gt;
&lt;li&gt;The error appears during compilation&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;What I Tried&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Cleaned the build folder&lt;/li&gt;
&lt;li&gt;Deleted DerivedData&lt;/li&gt;
&lt;li&gt;Reinstalled node_modules&lt;/li&gt;
&lt;li&gt;Ran pod install again&lt;/li&gt;
&lt;li&gt;Tried rebuilding multiple times&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;What is the root cause of this error in Xcode 26.4, and how can it be resolved in a React Native iOS project?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">23</re:rank></item><item><title>SwiftUI Back Button Chevron Glitches With Bounce Animation When .toolbarRole(.editor) Used and Liquid Glass Disabled</title><link>https://stackoverflow.com/questions/79956196/swiftui-back-button-chevron-glitches-with-bounce-animation-when-toolbarrole-ed</link><category>ios</category><category>xcode</category><category>swiftui</category><category>swiftui-navigationstack</category><category>liquid-glass</category><author>noemail@noemail.org (svranaw)</author><pubDate>Wed, 10 Jun 2026 22:55:09 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79956196</guid><description>
            &lt;p&gt;I have a brand-new SwiftUI app in which I've opted out of the Liquid Glass redesign by adding &lt;code&gt;UIDesignRequiresCompatibility&lt;/code&gt; = &lt;code&gt;YES&lt;/code&gt; to my Info.plist.&lt;/p&gt;
&lt;p&gt;On a detail screen pushed onto a &lt;code&gt;NavigationStack&lt;/code&gt;, I apply &lt;code&gt;.toolbarRole(.editor)&lt;/code&gt; so the back button shows only the chevron (without the previous screen's title text next to it). With that modifier, the &lt;strong&gt;back button chevron plays a glitchy animation&lt;/strong&gt; during the push transition: when I arrive on the detail screen, the chevron animates downward, then back up, and finally settles into its correct position in the top-leading corner.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://imgur.com/a/ZImV3rp" rel="nofollow noreferrer"&gt;Here&lt;/a&gt; is a short video showing the glitchy back button animation.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What I've observed / tried&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The glitch &lt;strong&gt;only&lt;/strong&gt; happens when Liquid Glass is disabled. If I set &lt;code&gt;UIDesignRequiresCompatibility&lt;/code&gt; = &lt;code&gt;NO&lt;/code&gt; (so the app uses the new &lt;strong&gt;Liquid Glass&lt;/strong&gt; design), the back button transition is perfectly smooth.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Removing &lt;code&gt;.toolbarRole(.editor)&lt;/code&gt; makes the glitch go away, but then the back button shows the previous screen's title text, which is exactly what I'm trying to avoid.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The glitch also does &lt;strong&gt;not&lt;/strong&gt; happen if the parent view's title is inline instead of large: setting &lt;code&gt;.navigationBarTitleDisplayMode(.inline)&lt;/code&gt; on &lt;code&gt;ParentView&lt;/code&gt; (rather than &lt;code&gt;.large&lt;/code&gt;) results in a smooth back button transition.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It reproduces in the &lt;strong&gt;Xcode Preview&lt;/strong&gt;, the &lt;strong&gt;Simulator&lt;/strong&gt;, and on a physical device.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="lang-swift prettyprint-override"&gt;&lt;code&gt;struct ParentView: View {
    @State private var path = NavigationPath()

    var body: some View {
        NavigationStack(path: $path) {
            Text(&amp;quot;HI&amp;quot;)
                .navigationTitle(&amp;quot;My Items&amp;quot;)
                .navigationDestination(for: String.self) { route in
                    switch route {
                    case &amp;quot;View2&amp;quot;:
                        DetailView()
                    default:
                        EmptyView()
                    }
                }
                .navigationBarTitleDisplayMode(.large) 
                .toolbar {
                    ToolbarItem(placement: .topBarTrailing) {
                        Button {
                            path.append(&amp;quot;View2&amp;quot;)
                        } label: {
                            Image(systemName: &amp;quot;plus&amp;quot;)
                        }
                    }
                }
        }
    }
}

struct DetailView: View {
    var body: some View {
        Text(&amp;quot;Detail View&amp;quot;)
            .navigationTitle(&amp;quot;Detail Screen&amp;quot;)
            .toolbarRole(.editor)
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Environment&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Xcode 26.5&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimum deployment target: iOS 26&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;UIDesignRequiresCompatibility&lt;/code&gt; = &lt;code&gt;YES&lt;/code&gt; (Liquid Glass disabled). Setting it to &lt;code&gt;NO&lt;/code&gt; makes the problem disappear.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reproduced on &lt;strong&gt;Xcode Preview&lt;/strong&gt;, &lt;strong&gt;Simulator&lt;/strong&gt;, and a real device.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Question&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Why does &lt;code&gt;.toolbarRole(.editor)&lt;/code&gt; cause the back button chevron to animate/glitch during the push transition only when &lt;strong&gt;Liquid Glass&lt;/strong&gt; is disabled (&lt;code&gt;UIDesignRequiresCompatibility&lt;/code&gt; = &lt;code&gt;YES&lt;/code&gt;) and the parent title is &lt;code&gt;.large&lt;/code&gt;, and how can I keep the chevron-only back button without triggering this animation glitch?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item></channel></rss>