<?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 (Iiro Alhonen)</managingEditor><pubDate>Thu, 27 Aug 2026 04:45:12 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>Reusing build phase for multiple targets in Xcode</title><link>https://stackoverflow.com/questions/73946451/reusing-build-phase-for-multiple-targets-in-xcode</link><category>xcode</category><category>xcodebuild</category><category>swiftlint</category><category>xcode-build-settings</category><author>noemail@noemail.org (Iiro Alhonen)</author><pubDate>Tue, 4 Oct 2022 10:24:19 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/73946451</guid><description>
            &lt;p&gt;Can I reuse the same build phase for multiple targets?&lt;/p&gt;
&lt;p&gt;I have multiple targets on my project and I want to run SwiftLint for all the targets as a build phase.&lt;/p&gt;
&lt;p&gt;Is there a way I can achieve this without duplicating the build phase?&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>Xcode 13+ Missing "Products" folder when creating a framework</title><link>https://stackoverflow.com/questions/70635415/xcode-13-missing-products-folder-when-creating-a-framework</link><category>xcode</category><category>frameworks</category><author>noemail@noemail.org (Moos)</author><pubDate>Sat, 8 Jan 2022 18:52:16 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/70635415</guid><description>
            &lt;p&gt;In Xcode 13+ When I create a framework, there is no &amp;quot;Products&amp;quot; folder as it used to be there prior to that version same like the below image&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/24E2q.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/24E2q.png" alt="products folder as it appears in Xcode.X &amp;lt;13" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Even when I build the project, I still cannot find the &amp;quot;.framework&amp;quot; file anywhere.
All tutorials on google follow the same flow of creating the framework project, building then extracting the .framework binary from the Products folder, but that doesn't seem to be available in Xcode 13+
Any one have a clue?&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>Apple Watch can't always reconnect</title><link>https://stackoverflow.com/questions/78511979/apple-watch-cant-always-reconnect</link><category>xcode</category><category>apple-watch</category><category>watchos</category><author>noemail@noemail.org (Ирина Пересыпкина)</author><pubDate>Tue, 21 May 2024 12:43:54 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/78511979</guid><description>
            &lt;p&gt;Using Xcode to build and deploy the app to my watch, this is what I get:&lt;/p&gt;
&lt;p&gt;“Waiting to reconnect to Apple Watch. Previous preparation error: Transport error.&amp;quot; And then “Connecting to Apple Watch. Xcode will continue when the operation completes.”
And these messages continue to switch between each other.&lt;/p&gt;
&lt;p&gt;Sometimes the watch to connect and the application starts, but more often a scenario occurs with endless reconnection.&lt;/p&gt;
&lt;p&gt;I'm using: MacOS 14.4.1 (MacBook Pro 2019; 1.4 GHz Quad-Core Intel Core i5), Xcode 15.3, Watch OS 10.2 (Apple Watch SE 1), iOS 17.1.1 (iPhone 15 Pro).&lt;/p&gt;
&lt;p&gt;Any help?&lt;/p&gt;
&lt;p&gt;Methods I tried:
Connecting Macbook, iPhone and Watch to the same WIfi network;
Disabling Watch (and  IPhone) from the &amp;quot;Devices and Simulators&amp;quot; menu and setting up Watch (and  IPhone) from the beginning.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">6</re:rank></item><item><title>Where should I put the .gitignore file in my xcode project? [duplicate]</title><link>https://stackoverflow.com/questions/9672319/where-should-i-put-the-gitignore-file-in-my-xcode-project</link><category>xcode</category><category>git</category><category>gitignore</category><author>noemail@noemail.org (Mauricio Alberto Barragn Huert)</author><pubDate>Mon, 12 Mar 2012 18:01:06 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/9672319</guid><description>
            &lt;p&gt;I want Git to ignore my &lt;code&gt;UserInterfaceState.xcuserstate&lt;/code&gt; file in my XCode4 project, but where should I put the &lt;code&gt;.gitignore&lt;/code&gt; file? Is it inside the &lt;code&gt;.git&lt;/code&gt; folder or outside?&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;.git&lt;/code&gt; folder is in same folder with the &lt;code&gt;ProjectName.xcodeproj&lt;/code&gt; file.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">105</re:rank></item><item><title>How do I use an SF Symbol in Swift using its symbol literal instead of its name?</title><link>https://stackoverflow.com/questions/72980026/how-do-i-use-an-sf-symbol-in-swift-using-its-symbol-literal-instead-of-its-name</link><category>swift</category><category>xcode</category><category>sf-symbols</category><author>noemail@noemail.org (Senseful)</author><pubDate>Thu, 14 Jul 2022 11:50:38 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/72980026</guid><description>
            &lt;p&gt;The normal way to use an SF Symbol is to find the image you want in the SF Symbols app, copy its name, and then use this name in the &lt;code&gt;Image(systemName:)&lt;/code&gt; constructor. For example, if I'd like to display the share Icon, I could use the following code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Image(systemName: &amp;quot;square.and.arrow.up&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will produce the following image in the UI:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/6zFI5.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/6zFI5.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is great, but just like &lt;a href="https://designcode.io/swiftui-handbook-color-literals" rel="nofollow noreferrer"&gt;color and image literals&lt;/a&gt;, I was hoping that instead of the string &lt;code&gt;square.and.arrow.up&lt;/code&gt; I could have something more literal in my code. For example, if I choose &amp;quot;Copy symbol&amp;quot; in SF Symbols and then paste that into Xcode, I get a string which represents a &amp;quot;symbol literal&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/DdUax.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/DdUax.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If I try using that code, though, I get the following error:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/bvBYQ.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/bvBYQ.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;No symbol named '&#1049090;' found in system symbol set&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Is there another way to use this Symbol within Xcode and have it provide me an Image with the corresponding systemName so I can stop using the string &lt;code&gt;square.and.arrow.up&lt;/code&gt; in my codebase and instead use the symbol literal?&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;My current workaround is to add the literal symbol as a comment, but I'd like to avoid duplicating the symbol:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/FZctb.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/FZctb.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Other things I've tried:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Image(_ name:bundle:)&lt;/code&gt;: This doesn't show anything.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Text(_ content:)&lt;/code&gt;: This shows a black square with a question mark.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/60579637/displaying-sf-symbols-as-an-image-literal"&gt;Using an #imageLiteral&lt;/a&gt;: I investigated this a while ago but couldn't find a way to do this.&lt;/li&gt;
&lt;/ul&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">2</re:rank></item><item><title>Xcode Preview crash with ModelContainer initialization</title><link>https://stackoverflow.com/questions/79854507/xcode-preview-crash-with-modelcontainer-initialization</link><category>xcode</category><category>swiftui</category><category>canvas</category><category>preview</category><category>swiftdata</category><author>noemail@noemail.org (Tony Chen)</author><pubDate>Wed, 24 Dec 2025 16:54:31 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79854507</guid><description>
            &lt;p&gt;Background:&lt;/p&gt;
&lt;p&gt;I have complex Swift Data models with some Relationships, and at some point, my Xcode Preview is no longer working when I want to init a ModelContainer in it. So I tried to debug and create a simple file with no dependencies with other parts of my project.&lt;/p&gt;
&lt;p&gt;Here's my simple code:&lt;/p&gt;
&lt;pre class="lang-swift prettyprint-override"&gt;&lt;code&gt;import Foundation
import SwiftUI
import SwiftData

struct DebugView: View {
    var body: some View {
        Text(&amp;quot;Hello&amp;quot;)
    }
}

@Model
class User {
    var name: String

    init(name: String) {
        self.name = name
    }
}

#Preview {
    let config = ModelConfiguration(UUID().uuidString, isStoredInMemoryOnly: true)
    let container = try! ModelContainer(for: User.self, configurations: config) // This line failed
    DebugView()
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The thing is even this simple view cannot be shown in the Preview window. Error message:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.sstatic.net/0kiSnVaC.png" alt="enter image description here" title="Error message of Preview crash" /&gt;&lt;/p&gt;
&lt;p&gt;I'm sure that the crash line is at the ModelContainer init because it works fine without it.&lt;/p&gt;
&lt;p&gt;I tried to delete the cache data with command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;xcrun simctl --set previews delete all
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But it's still not working.&lt;/p&gt;
&lt;p&gt;The weird thing is, when I created a new project and move all the files in it, it works at the beginning. But it started to failed when I tried to do some modifications on other files (these simple codes stay unchanged).&lt;/p&gt;
&lt;p&gt;Does any one have any idea?&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>pod install Xcode Error Failed to save foo.xcodeproj</title><link>https://stackoverflow.com/questions/78636310/pod-install-xcode-error-failed-to-save-foo-xcodeproj</link><category>xcode</category><category>cocoapods</category><author>noemail@noemail.org (make)</author><pubDate>Tue, 18 Jun 2024 08:39:16 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/78636310</guid><description>
            &lt;p&gt;&lt;a href="https://i.sstatic.net/FypJoOuV.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/FypJoOuV.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I've been encountering an issue where, after running pod install, Xcode consistently throws an error: &amp;quot;Failed to save foo.xcodeproj.&amp;quot; To clear this warning, I have to click through it more than 50 times.&lt;/p&gt;
&lt;p&gt;This has become quite frustrating, as it happens every time I run pod install. Is there a way to prevent this error from occurring?&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>Kotlin Multiplatform Mobile unable to run on iOS: Execution failed for task ':shared:compileKotlinIosX64'</title><link>https://stackoverflow.com/questions/66113448/kotlin-multiplatform-mobile-unable-to-run-on-ios-execution-failed-for-task-sh</link><category>ios</category><category>xcode</category><category>kotlin</category><category>kotlin-multiplatform</category><author>noemail@noemail.org (Fatin Wasta)</author><pubDate>Tue, 9 Feb 2021 05:24:18 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/66113448</guid><description>
            &lt;p&gt;I have created &lt;strong&gt;fresh project(Hello World)&lt;/strong&gt; in KMM followed by their official website. In android it works smooth but when I am trying to run in XCode it's giving errors because of which &lt;code&gt;I am unable to build / run the xcode project&lt;/code&gt;. I have attached screenshots and logs for my errors. Somehow xcode scheme is not getting generated in the KMM platform that's what I am guessing.
Can anyone please help me understand what am I missing?
Any help would be appriciated.
&lt;a href="https://i.sstatic.net/u6u4u.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/u6u4u.png" alt="Screenshot of android studio build settings" /&gt;&lt;/a&gt;
&lt;a href="https://i.sstatic.net/xA4ZD.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/xA4ZD.png" alt="Screenshot of blank iOS scheme" /&gt;&lt;/a&gt;
&lt;a href="https://i.sstatic.net/vKGo6.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/vKGo6.png" alt="XCode error log 1" /&gt;&lt;/a&gt;
&lt;a href="https://i.sstatic.net/DU1Xa.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/DU1Xa.png" alt="XCode error log 2" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Following is my dev env:

Xcode 11.4.1
Android 4.1.2
Kotling Plugin version 1.4.30 (stable)
KMM 0.2.0```


XCode Logs:

&amp;gt; Task :shared:compileKotlinIosX64
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Extracting dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz into /Users/fatin/.konan/dependencies
e: java.lang.RuntimeException: Cannot extract archive with dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz.

&amp;gt; Task :shared:compileKotlinIosX64 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:compileKotlinIosX64'.
&amp;gt; Compilation finished with errors

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
1 actionable task: 1 executed
Command PhaseScriptExecution failed with a nonzero exit code ```
[![enter image description here][3]][3]


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

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">13</re:rank></item><item><title>Can't rearrange files in Project Navigator</title><link>https://stackoverflow.com/questions/78830432/cant-rearrange-files-in-project-navigator</link><category>xcode</category><author>noemail@noemail.org (adamek)</author><pubDate>Sun, 4 Aug 2024 06:44:08 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/78830432</guid><description>
            &lt;p&gt;I created a new workspace. I added several files and folder to it. Now I can’t rearrange the files within the groups. Files in the Project Navigator are only showing up in strict alphabetical order in each group.&lt;/p&gt;
&lt;p&gt;This problem is not showing up in other older workspaces.&lt;/p&gt;
&lt;p&gt;The problem does show up in another new workspace I just created.&lt;/p&gt;
&lt;p&gt;Does anyone know a setting in Xcode that could be causing this?&lt;/p&gt;
&lt;p&gt;It could be a beta problem. I'm using Version 16.0 beta 4 (16A5211f). I have filed feedback with Apple.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">27</re:rank></item><item><title>StoreKit 2 Sandbox: transaction.finish() logs requestEncodeFailed and replays subscription renewals on every launch</title><link>https://stackoverflow.com/questions/79993964/storekit-2-sandbox-transaction-finish-logs-requestencodefailed-and-replays-su</link><category>swift</category><category>xcode</category><category>swiftui</category><category>storekit</category><author>noemail@noemail.org (Fran)</author><pubDate>Fri, 14 Aug 2026 01:00:52 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79993964</guid><description>
            &lt;p&gt;I’m testing an auto-renewable subscription using StoreKit 2 on a physical iOS device with a Sandbox account.&lt;/p&gt;
&lt;p&gt;A fresh purchase succeeds, Transaction.currentEntitlements contains an active transaction, and the app unlocks the subscription correctly.&lt;/p&gt;
&lt;p&gt;The app starts a single Transaction.updates listener at launch and finishes every verified transaction:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Task {
    for await result in Transaction.updates {        
guard case .verified(let transaction) = result else {
            continue        
}
        // Deliver/reconcile the entitlement first.
        await transaction.finish()
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, every call to finish() produces this internal StoreKit console error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Error finishing transaction:StoreKitServiceError(
    error: StoreKitInternalError.requestEncodeFailed,
    environment: Sandbox
)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On every subsequent launch, Transaction.updates delivers the same original purchase and all of its renewal transactions again. Calling finish() again produces the same error.&lt;/p&gt;
&lt;p&gt;The subscription remains active and currentEntitlements is correct while its expiration date is in the future.&lt;/p&gt;
&lt;p&gt;After the Sandbox subscription eventually expires, product.purchase() may return .success(.verified(transaction)) with one of those old expired transactions without presenting the system purchase confirmation sheet. currentEntitlements is then empty, so the app correctly does not unlock the subscription, but the user cannot initiate a new purchase.&lt;/p&gt;
&lt;p&gt;The same implementation works correctly with an Xcode StoreKit configuration:&lt;br /&gt;
purchase → expiration → repurchase presents the confirmation sheet and succeeds.&lt;/p&gt;
&lt;p&gt;Transaction.finish() is nonthrowing, so the application cannot detect or retry requestEncodeFailed as a Swift error.&lt;/p&gt;
&lt;p&gt;How can I avoid this 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>How do you show a NSStatusBar item AND hide the dock icon?</title><link>https://stackoverflow.com/questions/45291536/how-do-you-show-a-nsstatusbar-item-and-hide-the-dock-icon</link><category>swift</category><category>xcode</category><category>macos</category><category>user-interface</category><category>cocoa</category><author>noemail@noemail.org (xtian)</author><pubDate>Mon, 24 Jul 2017 23:18:07 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/45291536</guid><description>
            &lt;p&gt;I've tried setting "Application is Agent" to 1 but the status bar item disappears. When set to 0 both the status bar item and dock icon are showing. How do I show the status bar item but hide the dock icon? &lt;/p&gt;

&lt;p&gt;I've tried the following in both &lt;code&gt;awakeFromNib()&lt;/code&gt; and &lt;code&gt;applicationDidFinishLaunching()&lt;/code&gt; in &lt;code&gt;AppDelegate.swift&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;//class scope    
let statusItem = NSStatusBar.system().statusItem(withLength: NSVariableStatusItemLength)

//function scope    
self.statusItem.image = NSImage(named: "myImage")
let menu = NSMenu(title: "MyApp-Menu")
let menuItem = NSMenuItem(title: "title", action: nil, keyEquivalent: "")
menu.addItem(menuItem)
self.statusItem.menu = menu
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">5</re:rank></item><item><title>Black screen my app on Simulator and stuck at Launching App every couple of runs - macos ventura</title><link>https://stackoverflow.com/questions/76086512/black-screen-my-app-on-simulator-and-stuck-at-launching-app-every-couple-of-runs</link><category>xcode</category><category>ios-simulator</category><category>xcode15</category><author>noemail@noemail.org (MBH)</author><pubDate>Sun, 23 Apr 2023 18:15:36 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/76086512</guid><description>
            &lt;p&gt;While developing native apps from Xcode, the screen of my app goes black and Xcode is stuck on launching app and attaching to iPhone 14 Pro as in screenshot below:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/Xe32Y.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/Xe32Y.png" alt="xcode &amp;amp; simulator" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When my app's screen goes black, the simulator still works normally. If I kill my app and restart it, it stuck on launch screen.&lt;/p&gt;
&lt;p&gt;I tried before last updates to set to Rosetta Stone, but I was facing same issue. After updating Xcode and macOS, I don't even have the Rosetta option.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/xasXC.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/xasXC.png" alt="xcode no rosetta option" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Device: &lt;strong&gt;Macbook Pro, M1 Pro&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Xcode: &lt;strong&gt;14.3 (14E222b)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;macOS: &lt;strong&gt;Ventura 13.3.1&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;project is developed with Swift, uses Cocoapods&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The only thing that works now is killing the process of the simulator completely, and restarting it from Xcode.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/em&gt;: When I develop &lt;em&gt;flutter&lt;/em&gt; apps from Android studio on iOS Simulator, everything works just fine.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;UPDATE: 09/19/2023&lt;/strong&gt;&lt;/em&gt;:
It is still the same on Xcode 15.0 public release.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/3Ayby.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/3Ayby.png" alt="black screen on iPhone15 xcode 15.0" /&gt;&lt;/a&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">20</re:rank></item><item><title>How to stop Xcode from automatically adding close quotes, parentheses, and braces when typing in a plain text file?</title><link>https://stackoverflow.com/questions/76286182/how-to-stop-xcode-from-automatically-adding-close-quotes-parentheses-and-brace</link><category>xcode</category><author>noemail@noemail.org (HangarRash)</author><pubDate>Fri, 19 May 2023 05:17:56 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/76286182</guid><description>
            &lt;p&gt;I have a plain text file in my Xcode project I use to make notes as I work.&lt;/p&gt;
&lt;p&gt;One really annoying &amp;quot;feature&amp;quot; of Xcode is its insistence on adding a matching &lt;code&gt;'&lt;/code&gt;, &lt;code&gt;&amp;quot;&lt;/code&gt;, &lt;code&gt;}&lt;/code&gt;, or &lt;code&gt;)&lt;/code&gt; if I type a &lt;code&gt;'&lt;/code&gt;, &lt;code&gt;&amp;quot;&lt;/code&gt;, &lt;code&gt;{&lt;/code&gt;, or &lt;code&gt;(&lt;/code&gt; respectively, followed by another character.&lt;/p&gt;
&lt;p&gt;For example, if I simply want to type the word &lt;code&gt;it's&lt;/code&gt;, then after I've entered the &lt;code&gt;it'&lt;/code&gt;, as soon as I type the &lt;code&gt;s&lt;/code&gt;, Xcode automatically adds a &amp;quot;closing apostrophe&amp;quot; and I end up with &lt;code&gt;it's'&lt;/code&gt;. And when I don't notice and continue typing, I end up with something like &lt;code&gt;it's an annoying feature'&lt;/code&gt; (note the extraneous &lt;code&gt;'&lt;/code&gt; at the end).&lt;/p&gt;
&lt;p&gt;How can I turn off this feature, at least for plain text files?&lt;/p&gt;
&lt;p&gt;I've been through all of the settings and I've looked through the Editor menu but I can't see anything relevant.&lt;/p&gt;
&lt;p&gt;The only thing I've found is in the key bindings there is a binding for Ctrl-' (&lt;code&gt;^'&lt;/code&gt;) mapped to &amp;quot;Insert Single Quote without Extra Action (Insertions and Indentations)&amp;quot;. But this doesn't seem to apply in my example. If I type &lt;code&gt;it&lt;/code&gt;, then Ctrl-', then &lt;code&gt;s&lt;/code&gt;, I still get the extraneous &lt;code&gt;'&lt;/code&gt; at the end.&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>Navigation bar back button “jumps” on first push from TabBar root on iOS 26 Beta</title><link>https://stackoverflow.com/questions/79752375/navigation-bar-back-button-jumps-on-first-push-from-tabbar-root-on-ios-26-beta</link><category>ios</category><category>xcode</category><category>uikit</category><category>uinavigationcontroller</category><category>uitabbarcontroller</category><author>noemail@noemail.org (Paulo Silva)</author><pubDate>Mon, 1 Sep 2025 09:48:06 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79752375</guid><description>
            &lt;p&gt;Short description / problem&lt;/p&gt;
&lt;p&gt;When I push from a tab bar root navigation controller to a new screen, the navigation bar back button jumps (moves out of place) briefly during the push animation and then snaps back. This is consistent for the first push from the tab root. If I push deeper (increase stack depth) the jump does not happen. This does not occur on iOS 18. Console shows no warnings that are consistent enough to detect any patterns.&lt;/p&gt;
&lt;p&gt;It seems like a conflict with iOS 26’s new Liquid Glass navigation animations and I have the compatibility flag on on Info.plist (UIDesignRequiresCompatibility set to True). I am wondering if there is a solution or workaround that preserves the old design (until Liquid Glass adoption) or otherwise explains how to avoid the jump, if possible.&lt;/p&gt;
&lt;p&gt;What I’ve already tried&lt;/p&gt;
&lt;p&gt;Checked Xcode console for warnings — none relevant.
Verified behavior on Simulator and real devices.
Tried setting navigationItem.backButtonDisplayMode / setting explicit (empty) back button title to remove label layout changes. No improvement.
Considered removing UIRequiresDesignCompatibility (which makes app adopt Liquid Glass) — that appears to avoid the mismatch, but I need to know if there’s a way to keep compatibility mode and avoid this jump.
Tried ensuring consistent largeTitleDisplayMode on root/detail (no effect).&lt;/p&gt;
&lt;p&gt;Questions&lt;/p&gt;
&lt;p&gt;Is this a known iOS 26 beta bug / expected behavior when UIRequiresDesignCompatibility is set?
Is there a recommended workaround that preserves the compatibility (old look) without the back-button jump?
Are there UINavigationBarAppearance or transition APIs I can override to prevent the system attempting the new “merge” animation while running in compatibility mode?&lt;/p&gt;
&lt;p&gt;Extra details&lt;/p&gt;
&lt;p&gt;App uses custom subclasses for tab and navigation controllers; the behavior reproduces with plain UINavigationController too.
Only one main tab in the app (so it’s always root-from-tab scenario).
No third-party layout engines are involved.&lt;/p&gt;
&lt;p&gt;Thanks — I can paste logs, screen recordings, or a sample project if that helps. Any guidance appreciated.&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 C with GUI in Mac OS? [closed]</title><link>https://stackoverflow.com/questions/2545989/how-to-c-with-gui-in-mac-os</link><category>c</category><category>xcode</category><category>macos</category><category>user-interface</category><author>noemail@noemail.org (cGio)</author><pubDate>Tue, 30 Mar 2010 14:29:55 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/2545989</guid><description>
            &lt;p&gt;I am a beginner to C language and I want to develop applications with GUI for Mac OS. Where do I start?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">5</re:rank></item><item><title>dyld: Library not loaded: @rpath/App.framework/App</title><link>https://stackoverflow.com/questions/58642820/dyld-library-not-loaded-rpath-app-framework-app</link><category>ios</category><category>xcode</category><category>flutter</category><author>noemail@noemail.org (Subaharan Vel)</author><pubDate>Thu, 31 Oct 2019 11:54:54 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/58642820</guid><description>
            &lt;p&gt;While Flutter Run for IOS from Xcode I am getting this issue. I have search a lot but non of the solution is working to me. My issue on App.framework . I am not able to fine solution for this. I am struggling on this. Please guide me on this. I will post error which I am getting.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;dyld: Library not loaded: @rpath/App.framework/App   Referenced from:
  /~/Developer/CoreSimulator/Devices/9399EA4C-DDE3-4F6C-9CB9-A9D0194C2297/data/Containers/Bundle/Application/A5F968E9-0E67-4037-AFB0-02C5E1E68841/Runner.app/Runner
  Reason: image not found (lldb)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thanks in advance&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;target Version 10.3  
Xcode Version 11.1
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">7</re:rank></item><item><title>How to inspect structures like NSRect/NSSize using lldb?</title><link>https://stackoverflow.com/questions/79804713/how-to-inspect-structures-like-nsrect-nssize-using-lldb</link><category>xcode</category><category>macos</category><category>debugging</category><category>lldb</category><author>noemail@noemail.org (Marek H)</author><pubDate>Thu, 30 Oct 2025 11:42:11 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79804713</guid><description>
            &lt;p&gt;I have previously used lldb to print structures like &lt;code&gt;NSRect&lt;/code&gt; or &lt;code&gt;NSSize&lt;/code&gt; of 3rd party processes without issues. But I am struggling in modern versions of Xcode to inspect them. Namely since the introduction of Xcode 15 and &lt;code&gt;dwim-print&lt;/code&gt; I am struggling with printing structures. I want to state everything works on binaries that were compiled by me. However if I attach to another processes such as PhotoBoot.app (SIP disabled) I cannot even print &lt;code&gt;frame&lt;/code&gt; on &lt;code&gt;NSWindow&lt;/code&gt;. Yet it is nicely shown by Xcode view hierarchy.&lt;/p&gt;
&lt;pre class="lang-none prettyprint-override"&gt;&lt;code&gt;(lldb) e @import AppKit
(lldb) po (NSRect)[[[NSApp windows] firstObject] frame]
error: &amp;lt;user expression 16&amp;gt;:1:9: attempt to use a deleted function
1 | (NSRect)[[[NSApp windows] firstObject] frame]
|         ^
note: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h:77:13: destructor of 'CGRect' is implicitly deleted because field 'origin' has no destructor
   77 |     CGPoint origin;
|           
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src="https://i.sstatic.net/JpqgEby2.jpg" alt="lldb" /&gt;&lt;/p&gt;
&lt;p&gt;I have found workarounds but I am confused on how to use &lt;code&gt;dwim-print&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Wrapping it in &lt;code&gt;NSValue&lt;/code&gt; (boxable)&lt;/p&gt;
&lt;pre class="lang-none prettyprint-override"&gt;&lt;code&gt;(lldb) po [[(NSWindow*)0x13c606800 valueForKey:@&amp;quot;frame&amp;quot;] description]
NSRect: {{434, 480}, {692, 550}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Manually finding offset of &lt;code&gt;CGRect&lt;/code&gt; structure within &lt;code&gt;NSWindow&lt;/code&gt; class&lt;/p&gt;
&lt;pre class="lang-none prettyprint-override"&gt;&lt;code&gt;(lldb) p (ptrdiff_t)ivar_getOffset((struct Ivar *)class_getInstanceVariable([NSWindow class], &amp;quot;_frame&amp;quot;))
(ptrdiff_t) 224
(lldb) p (CGRect *)(0x13c606800 + 224)
(CGRect *) (origin = (x = 434, y = 480), size = (width = 692, height = 550))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please do not suggest &lt;code&gt;NSStringFromRect&lt;/code&gt; or casting to &lt;code&gt;NSWindow&lt;/code&gt; as it doesn't work as well. I repeat everything works if I run my own app (doesn't work in 3rd party apps.)&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 16.2 and Xcode 16.2 beta "The tunnel connection failed"</title><link>https://stackoverflow.com/questions/79305097/xcode-16-2-and-xcode-16-2-beta-the-tunnel-connection-failed</link><category>ios</category><category>xcode</category><category>tunnel</category><category>ios16.2</category><author>noemail@noemail.org (Kawthar Al-Tamimi)</author><pubDate>Tue, 24 Dec 2024 08:16:07 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79305097</guid><description>
            &lt;p&gt;I have installed iOS 18.3 on my iPhone SE (second generation)
after installing the beta version it stops running on my device.&lt;/p&gt;
&lt;p&gt;I have already tried to install the Xcode 16.2 beta version and did the settings on Xcode (sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer).&lt;/p&gt;
&lt;p&gt;but still got this error &lt;strong&gt;&amp;quot;Previous preparation error: The tunnel connection failed while the system tried to connect to the device.; The tunnel connection failed while the system tried to connect to the device.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;also I tried to turn off the beta version on my iPhone but unfortunately, I still got the same issue now.&lt;/p&gt;
&lt;p&gt;I tried every solution from cleaning the caches and everything to restarting my Mac and iPhone but nothing worked and I don't want to erase the iPhone and back to the older version.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/TlYulAJj.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/TlYulAJj.png" alt="The tunnel connection failed while the system tried to connect to the device." /&gt;&lt;/a&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">4</re:rank></item><item><title>Xcode: What is a target and scheme in plain language?</title><link>https://stackoverflow.com/questions/20637435/xcode-what-is-a-target-and-scheme-in-plain-language</link><category>ios</category><category>xcode</category><category>xcode-scheme</category><category>xcode-target</category><author>noemail@noemail.org (MichiZH)</author><pubDate>Tue, 17 Dec 2013 14:59:23 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/20637435</guid><description>
            &lt;p&gt;Yeah the title says it :-) What do they mean in plain English language? I really don't understand the explanation on Apple's website and I need to rename my target and I'm afraid that nothing works after that..&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">304</re:rank></item><item><title>Double-quoted include [all Facebook SDK imports], expected angle-bracketed instead</title><link>https://stackoverflow.com/questions/67609408/double-quoted-include-all-facebook-sdk-imports-expected-angle-bracketed-inste</link><category>ios</category><category>xcode</category><category>compiler-warnings</category><author>noemail@noemail.org (JeffB6688)</author><pubDate>Wed, 19 May 2021 19:04:28 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/67609408</guid><description>
            &lt;p&gt;I am getting the following warning in iOS Xcode builds:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    Double-quoted include &amp;quot;FBSDKDeviceLoginCodeInfo.h&amp;quot; in framework header, expected angle-bracketed instead. 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is apparently a new default warning in Xcode 12 which will throw a warning anywhere you #import or #include with &amp;quot;quotes.h&amp;quot; instead of &amp;lt;brackets.h&amp;gt;.&lt;/p&gt;
&lt;p&gt;I am getting this for all of the Facebook SDK imports. There are a few StackOverflow proposed solutions out there, but none of them works.&lt;/p&gt;
&lt;p&gt;These solutions do not work:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;go in the project's Build Settings a just set the option Quoted Include In Framework Header to No :&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;you can use Cocoapods version 1.10.0.rc.1 temporarily until 1.10.1 is officially available -&amp;gt; gem install cocoapods -v '1.10.0.rc.1'&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Another option is to update your Podfile (add below code) to disable the warning flag CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER setting for all pods in your project&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
      end
    end
  end
end
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can disable these warnings for your entire project by navigating to your project's &amp;quot;build settings&amp;quot;, finding the field &amp;quot;other linker flags&amp;quot; and adding the following flag: -Wno-quoted-include-in-framework-header&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Worked for me:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;rm -rf ~/Library/Developer/Xcode/DerivedData/
rm -rf ~/Library/Caches/CocoaPods/
pod deintegrate
pod update
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;These solutions were written 7 or 8 months ago and &lt;strong&gt;DO NOT WORK FOR ME&lt;/strong&gt;.
Are there any new solutions beyond manually editing hundreds of occurrences of this?&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>Why to add icons in info.plist file?</title><link>https://stackoverflow.com/questions/38068229/why-to-add-icons-in-info-plist-file</link><category>ios</category><category>xcode</category><author>noemail@noemail.org (TechChain)</author><pubDate>Tue, 28 Jun 2016 06:06:13 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/38068229</guid><description>
            &lt;p&gt;I have added required icons files in my app. But when I upload app to app store then it shows me an error saying &lt;strong&gt;Bundle does not contain icon file 57*57&lt;/strong&gt; but in my app I already have it.&lt;/p&gt;

&lt;p&gt;I developed this app in Xcode 5 then that time I added icons in info.plist because on some of devices icons were not visible.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;dict&amp;gt;
        &amp;lt;key&amp;gt;CFBundlePrimaryIcon&amp;lt;/key&amp;gt;
        &amp;lt;dict&amp;gt;
            &amp;lt;key&amp;gt;CFBundleIconFiles&amp;lt;/key&amp;gt;
            &amp;lt;array&amp;gt;
                &amp;lt;string&amp;gt;icon76&amp;lt;/string&amp;gt;
                &amp;lt;string&amp;gt;icon40&amp;lt;/string&amp;gt;
                &amp;lt;string&amp;gt;icon40@2x&amp;lt;/string&amp;gt;
                &amp;lt;string&amp;gt;icon60@2x&amp;lt;/string&amp;gt;
                &amp;lt;string&amp;gt;icon40@3x&amp;lt;/string&amp;gt;
                &amp;lt;string&amp;gt;icon50@2x&amp;lt;/string&amp;gt;
                &amp;lt;string&amp;gt;icon50&amp;lt;/string&amp;gt;
            &amp;lt;/array&amp;gt;
            &amp;lt;key&amp;gt;UIPrerenderedIcon&amp;lt;/key&amp;gt;
            &amp;lt;true/&amp;gt;
        &amp;lt;/dict&amp;gt;
    &amp;lt;/dict&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So why do we add icons in plist because in my latest project in xcode 7 I did not add icon name in plist still it was uploaded on app store.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; &amp;lt;key&amp;gt;CFBundleIcons&amp;lt;/key&amp;gt;
    &amp;lt;dict/&amp;gt;
    &amp;lt;key&amp;gt;CFBundleIcons~ipad&amp;lt;/key&amp;gt;
    &amp;lt;dict/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;used above code in plist &amp;amp; tried to run it does not show any icon&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>How can I get XCTest to wait for async calls in setUp before tests are run?</title><link>https://stackoverflow.com/questions/29504712/how-can-i-get-xctest-to-wait-for-async-calls-in-setup-before-tests-are-run</link><category>xcode</category><category>unit-testing</category><category>swift</category><category>asynchronous</category><category>xctest</category><author>noemail@noemail.org (Brett Elliot)</author><pubDate>Wed, 8 Apr 2015 02:13:15 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/29504712</guid><description>
            &lt;p&gt;I'm writing integration tests in Xcode 6 to go alongside my unit and functional tests. XCTest has a setUp() method that gets called before every test. Great! &lt;/p&gt;

&lt;p&gt;It also has XCTestException's which let me write async tests. Also great!&lt;/p&gt;

&lt;p&gt;However, I would like to populate my test database with test data before every test and setUp just starts executing tests before the async database call is done.&lt;/p&gt;

&lt;p&gt;Is there a way to have setUp wait until my database is ready before it runs tests?&lt;/p&gt;

&lt;p&gt;Here's an example of what I have do now. Since setUp returns before the database is done populating I have to duplicate a lot of test code every test:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;func test_checkSomethingExists() {

    let expectation = expectationWithDescription("")
    var expected:DatabaseItem

    // Fill out a database with data. 
    var data = getData()
    overwriteDatabase(data, {
      // Database populated.
      // Do test... in this pseudocode I just check something...
      db.retrieveDatabaseItem({ expected in

        XCTAssertNotNil(expected)

        expectation.fulfill()
      })
    })

    waitForExpectationsWithTimeout(5.0) { (error) in
        if error != nil {
            XCTFail(error.localizedDescription)
        }
    }

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

&lt;p&gt;Here's what I would like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;class MyTestCase: XCTestCase {

    override func setUp() {
        super.setUp()

        // Fill out a database with data. I can make this call do anything, here
        // it returns a block.
        var data = getData()
        db.overwriteDatabase(data, onDone: () -&amp;gt; () {

           // When database done, do something that causes setUp to end 
           // and start running tests

        })        
    }

    func test_checkSomethingExists() {

        let expectation = expectationWithDescription("")
        var expected:DatabaseItem


          // Do test... in this pseudocode I just check something...
          db.retrieveDatabaseItem({ expected in

            XCTAssertNotNil(expected)

            expectation.fulfill()
        })

        waitForExpectationsWithTimeout(5.0) { (error) in
            if error != nil {
                XCTFail(error.localizedDescription)
            }
        }

    }

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

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">76</re:rank></item><item><title>Xcode/Simulator: How to run older iOS version?</title><link>https://stackoverflow.com/questions/4262018/xcode-simulator-how-to-run-older-ios-version</link><category>ios</category><category>objective-c</category><category>iphone</category><category>xcode</category><category>ipad</category><author>noemail@noemail.org (Shai UI)</author><pubDate>Tue, 23 Nov 2010 23:16:44 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/4262018</guid><description>
            &lt;p&gt;I'm thinking of upgrading to iOS SDK 4.2. But what I'm wondering is if I'll still be able to run the simulator as iOS 3.2. This is because I'm creating iAds for iPad but I still want to check if my program will run with iOS 3.2.&lt;/p&gt;

&lt;p&gt;Note: I have seen a similar post to this in the past, but they weren't really helpful in giving the exact steps in how this could be done.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">200</re:rank></item><item><title>Swift Package Manager stuck on loading screen forever</title><link>https://stackoverflow.com/questions/79125835/swift-package-manager-stuck-on-loading-screen-forever</link><category>xcode</category><category>swift-package-manager</category><author>noemail@noemail.org (Plato)</author><pubDate>Fri, 25 Oct 2024 13:07:16 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79125835</guid><description>
            &lt;p&gt;SPM loads indefinitely as seen below. I cannot add any packages.&lt;/p&gt;
&lt;p&gt;Whether I enter a URL, or don't enter a URL, this screen is loading forever.&lt;/p&gt;
&lt;p&gt;Have tried deleting DerivedData folder (~/Library/Developer/Xcode/DerivedData) as well as SPM caches (~/Library/Caches/org.swift.swiftpm/), does not help.&lt;/p&gt;
&lt;p&gt;Have made sure that I've committed my code to a git repository, and followed the advice &lt;a href="https://stackoverflow.com/questions/65222175/swift-package-manager-keep-in-loading-state-forever"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is the first package I'm adding—I can't add any packages, generally.&lt;/p&gt;
&lt;p&gt;This problem exists for all my Xcode projects.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/IYo5zXqW.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/IYo5zXqW.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">17</re:rank></item><item><title>Building a Unity project into iOS without Xcode</title><link>https://stackoverflow.com/questions/52346921/building-a-unity-project-into-ios-without-xcode</link><category>ios</category><category>xcode</category><category>unity-game-engine</category><author>noemail@noemail.org (user12867493)</author><pubDate>Sat, 15 Sep 2018 17:01:02 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/52346921</guid><description>
            &lt;p&gt;I want to build my Unity project to the iOS platform. &lt;/p&gt;

&lt;p&gt;When I click build to iOS I get prompted with this screen:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.sstatic.net/FPmVN.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/FPmVN.png" alt="Screen to build a project"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There says &lt;code&gt;Run in Xcode as&lt;/code&gt; but I do not have a Mac, but correct me if I am wrong but you can not run Xcode on Windows. &lt;/p&gt;

&lt;p&gt;So is there no way I can build my project without a Mac then?&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>Swift warning about possible isolated conformance of "some View"</title><link>https://stackoverflow.com/questions/79984005/swift-warning-about-possible-isolated-conformance-of-some-view</link><category>swift</category><category>xcode</category><category>swift-concurrency</category><author>noemail@noemail.org (tmlen)</author><pubDate>Wed, 22 Jul 2026 23:36:59 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79984005</guid><description>
            &lt;p&gt;This code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import SwiftUI

@MainActor
func renderImage(_ view: some View) -&amp;gt; CGImage? {
    let renderer = ImageRenderer(content: view)
    return renderer.cgImage
}

let image = renderImage(
    ZStack {
        Image(systemName: &amp;quot;drop.fill&amp;quot;).foregroundStyle(.white)
        Image(systemName: &amp;quot;drop&amp;quot;).foregroundStyle(.black)
    }.font(.system(size: 30))
)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Compiles but shows warning:&lt;/p&gt;
&lt;p&gt;Conformance of underlying type of 'some View' to protocol 'View' may be isolated and cannot be passed to main actor-isolated context&lt;/p&gt;
&lt;p&gt;Xcode 27.0 beta 4&lt;br /&gt;
Swift Concurrency Checking: Complete&lt;br /&gt;
Approachable Concurrency: No&lt;br /&gt;
Default Actor Isolation: nonisolated&lt;/p&gt;
&lt;p&gt;If I understand correctly:&lt;br /&gt;
The issue seems to be that .font() returns an opaque type &amp;quot;some View&amp;quot;.&lt;br /&gt;
And &amp;quot;some View&amp;quot; may also conform to View only constrained to some actor.&lt;br /&gt;
(as in &amp;quot;struct A: @someGlobalActor View&amp;quot;).&lt;/p&gt;
&lt;p&gt;But renderImage() is @MainActor, and thus the view it is passed, needs to conform to View from the main actor.
renderImage() needs to be @MainActor, because ImageRenderer.init() is @MainActor.&lt;/p&gt;
&lt;p&gt;Is there any way to fix this warning?&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>Unable to locate Xcode. Please make sure to have Xcode installed on your machine</title><link>https://stackoverflow.com/questions/50404109/unable-to-locate-xcode-please-make-sure-to-have-xcode-installed-on-your-machine</link><category>ios</category><category>xcode</category><category>fastlane</category><author>noemail@noemail.org (swif2)</author><pubDate>Fri, 18 May 2018 05:05:08 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/50404109</guid><description>
            &lt;p&gt;I'm new to Fastlane.  Does anyone know how to fix this error from running&lt;/p&gt;
&lt;p&gt;&lt;code&gt;fastlane ios myLane&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The output:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[12:50:11]: fastlane finished with errors&lt;/p&gt;
&lt;p&gt;[!] Unable to locate Xcode. Please make sure to have Xcode installed on your machine&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But I have the newest Xcode (9.3.1) installed from Mac App Store.&lt;/p&gt;
&lt;h3&gt;Environment info:&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;fastlane --version&lt;/code&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;fastlane 2.95.0&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;which is the newest version.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ruby -v&lt;/code&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]&lt;/p&gt;
&lt;/blockquote&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">69</re:rank></item><item><title>How to add frame in mkmapview</title><link>https://stackoverflow.com/questions/7383719/how-to-add-frame-in-mkmapview</link><category>iphone</category><category>objective-c</category><category>xcode</category><category>mkmapview</category><author>noemail@noemail.org (iPhone)</author><pubDate>Mon, 12 Sep 2011 05:42:08 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/7383719</guid><description>
            &lt;p&gt;I have a MKmapView in my application. Now I want to add frame im my MKmapView. I have written the code as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- (id)initWithFrame:(CGRect)frame
{
        // Initialization code
        
        time=[[UILabel alloc] initWithFrame:CGRectMake(10, 10, 200, 21)];
        time.textColor=[UIColor blackColor];
        [time setFont:[UIFont boldSystemFontOfSize:18]];
        [time setBackgroundColor:[UIColor whiteColor]];
        [time addSubview:time];
        time.alpha=0.8;
    return  time;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but the frame does not appear in my MKmapView. How can I achieve that?&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>Null value generates while converting the date from one format to another format</title><link>https://stackoverflow.com/questions/8151357/null-value-generates-while-converting-the-date-from-one-format-to-another-format</link><category>iphone</category><category>objective-c</category><category>xcode</category><author>noemail@noemail.org (iPhone)</author><pubDate>Wed, 16 Nov 2011 12:02:52 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/8151357</guid><description>
            &lt;p&gt;I am having a date format &amp;quot;16-11-2011&amp;quot;, but I want to convert it into  &amp;quot;16 Nov&amp;quot;. I've written the code for it but null value generates instead of the format &amp;quot;16 Nov&amp;quot;&lt;/p&gt;
&lt;p&gt;For this I have written following code&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NSDate *checkIn = [[NSUserDefaults standardUserDefaults]valueForKey:@&amp;quot;CHECK_1&amp;quot;];
    NSLog(@&amp;quot;Date: %@&amp;quot;,checkIn);
    
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    
    [formatter setDateFormat:@&amp;quot;dd MMM&amp;quot;];
    NSString *checkInDate = [formatter stringFromDate:checkIn];
    NSLog(@&amp;quot;checkInDate:%@&amp;quot;,checkInDate);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and the results display by nslog statements are as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Date: 16-11-2011
checkInDate:(null)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How can I convert it into the format that I want?&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>Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' on Xcode 8.3 beta_2</title><link>https://stackoverflow.com/questions/42269064/unsupported-compiler-com-apple-compilers-llvm-clang-1-0-selected-for-architect</link><category>ios</category><category>xcode</category><category>xcode8</category><author>noemail@noemail.org (Karan Thakkar)</author><pubDate>Thu, 16 Feb 2017 08:54:34 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/42269064</guid><description>
            &lt;p&gt;I'm annoyed by this error that I'm getting and the fun fact is none of the solutions posted online seem to work for me. &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Also I found a solution where someone said to change the &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Xcode &amp;gt; Target &amp;gt; Build Settings &amp;gt; Build Options &amp;gt; Compiler for C/C++/Objective-C

Select Default compiler (Apple LLVM x.y)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I cannot find this option, See this:
&lt;a href="https://i.sstatic.net/RplvC.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/RplvC.png" alt="enter image description here"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Any help would be appreciated.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.sstatic.net/20gm4.png" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/20gm4.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">3</re:rank></item></channel></rss>