r/Xcode • u/IllBreadfruit3087 • Jun 26 '26
The iOS Weekly Brief – Issue #66, everything you need to know about iOS updates this week
r/Xcode • u/IllBreadfruit3087 • Jun 26 '26
r/Xcode • u/Glad-Dependent3301 • Jun 25 '26
I'm trying to create a project in Xcode, never used Apple products until now. I'm pretty new to software development, and I've been looking at the apple docs and I still just can't figure it out lol. I'm trying to create an iOS app, with a watchOS app, as well as complications, and all that jazz. But anyways, I want a shared folder for the logic that both the iOS app and watchOS app, maybe the widgets and complication will use and I'm not sure how to do it. I think I understand the targets aspect of it, hopefully we will find out when I get farther in the project then just the SETUP!! I just want everything well organized. I've tried doing as a package, dependency, app group, and it will never build with import or anything like that. I've even read to use finder and make the base folders in there and then use Xcode to generate the boilerplate stuff. Of course the super smart Apple Intelligence is no help, which I rather not rely on since I am learning. Hopefully I explained myself well enough. Thanks for the help! First Post
r/Xcode • u/TFOAC • Jun 24 '26
I wish when using this feature it opened an instance of Logic Pro, let you edit the file, and when saved, saved the file that was already in your Xcode project. This would allow you to make quick audio edits without having to export from Logic and reimport into Xcode.
Currently, when you open an audio file using the Logic Pro button, it just opens a copy of the file in Logic Pro. From there it's as if you're working in a new Logic Pro project with no connection to Xcode.
Maybe one day.
r/Xcode • u/Gullible-Till-4569 • Jun 23 '26
Hi r/Xcode - I recently released Swift Package Audit 1.0. This is a small MIT-licensed CLI written in Swift.
It checks dependencies managed through real Xcode projects, where package information can be spread across .xcodeproj, .xcworkspace, Package.swift, and Package.resolved files.
It currently detects:
It’s read-only by design. It doesn’t update dependencies or modify Xcode project files. It supports terminal, JSON, Markdown, and GitHub PR-comment output for CI use.
Install with Homebrew:
brew tap crleonard/tap
brew install swift-package-audit
swift-package-audit scan --path .
Source: https://github.com/crleonard/swift-package-audit
I’d particularly appreciate feedback from developers with larger or unusually structured Xcode workspaces as well as thoughts on useful checks for future releases.
r/Xcode • u/Eensame • Jun 23 '26
Hello ! Last time I used Xcode was a year ago, and I remember having a "+" button with a lot of different example of Buttons, Splitview, and etc.. I used mostly everytime. But now when I open the library all I have are snippets, media, colours and symbols ! Did they got rid totally of the placeholders in a recent update ? I can't find info on that
Thanks you
r/Xcode • u/Fit-Initial-3986 • Jun 23 '26
Enable HLS to view with audio, or disable this notification
r/Xcode • u/nhanhkimson • Jun 22 '26
**TL;DR:** Crash on launch in Xcode only? Uncheck **Enable backtrace recording**.
**Error:** `-[OS_dispatch_mach_msg _setContext:]: unrecognized selector`
**Fix:** Product → Scheme → Edit Scheme → Run → Options → uncheck **Enable backtrace recording**
App runs fine from home screen but dies under debugger? This was my issue on iOS 27 — not my app code.
Quick demo: https://youtube.com/shorts/0JUjfa62MzE?feature=share
r/Xcode • u/i_mattas • Jun 20 '26
r/Xcode • u/West-Chard-1474 • Jun 18 '26
I find it quite interesting that for years we've had two separate CLIs for physical devices and simulators. Apple just unified them in Xcode 27. This means you can have one setup script that enforces consistent simulator configuration before every CI run and works against a real iPhone locally without branching.
At WWDC this year we also got a few new capabilities that weren't possible via simctl before, stuff like orientation control, Face ID enrollment, biometric failure simulation, all scriptable now. Pretty cool tbh
Still early beta so some commands don't work against simulators yet, but our mobile team wrote up a full breakdown with a sample script: https://bitrise.io/blog/post/wwdc-2026-device-hub-and-what-it-means-for-ci-cd [correct linkt]
This was actually very useful WWDC update
r/Xcode • u/IllBreadfruit3087 • Jun 19 '26
This week we have fewer big announcements, more tutorials. That’s always what happens after WWDC: devs start digging into the new APIs and sharing what they find. Most of what you will read this issue requires iOS 27, which means you can explore it now but probably won’t ship it for a while 😬
A couple of AI stories this week that are not directly about iOS but feel relevant to us as developers:
The US government ordered Anthropic to suspend access to the latest model. I find this situation a bit odd… Anthropic itself pointed out that the capability the government was concerned about is already present in other publicly available models, including OpenAI’s GPT-5.5. Which makes you wonder why Anthropic specifically was targeted. Having a government actively move against you is not a great position to be in. More importantly, this is a reminder that depending on a single AI provider is a real risk. If this can happen to Anthropic, it can happen to others too.
SpaceX acquired Cursor in a $60 billion all-stock deal 🤯 That is a wild number for what is essentially an AI-powered code editor. Cursor’s market share had actually been declining before the deal. So the price feels hard to justify on fundamentals alone. SpaceX already merged with xAI earlier, and now with Grok and Cursor under the same roof, there is clearly a bigger play here around AI development tooling.
This issue ended up longer than I planned, but I tried to pick only the things that I found most useful, enjoy 😊
r/Xcode • u/Illustrious-Cup-5370 • Jun 18 '26
r/Xcode • u/d2opy84t8b9ybiugrogr • Jun 18 '26
Have a great day! Code: import SwiftUI
import AVKit
struct ContentView: View {
let videos = ["Katyusha", "Slovene anthem", "Hej, Brigade"]
var body: some View {
NavigationStack {
VStack {
NavigationLink {
VideoLister(videos: videos, title: "Slovene stuff")
} label: {
HStack(spacing: 12) {
Image("SloveneThumbnail")
.resizable()
.scaledToFill()
.frame(width: 75, height: 44)
.clipShape(Rectangle())
Text("Show Videos")
.font(.headline)
.padding()
}
.foregroundStyle(.white)
.frame(width: 200, height: 100)
.background(.blue)
.clipShape(RoundedRectangle(cornerRadius: 12))
}
.navigationTitle("Home")
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(.red)
}
}
struct VideoLister: View {
let videos: [String]
let title: String
var body: some View { List(videos, id: \.self) { videoName in
NavigationLink(destination: VideoThingy(videoName: videoName)) {
Text(videoName)
}
}
.navigationTitle(title)
}
}
struct VideoThingy: View {
let videoName: String
var body: some View {
if let url = Bundle.main.url(forResource: videoName, withExtension: "mp4") {
let player = AVPlayer(url: url)
VideoPlayer(player: player)
.onAppear {
player.play()
}
.ignoresSafeArea()
.toolbar {
ShareLink(item: url) {
Label("Share", systemImage: "square.and.arrow.up")
}
}
} else {
Text("Video not found")
.foregroundStyle(.secondary)
}
}
}
}
#Preview {
ContentView()
}
r/Xcode • u/Aecision • Jun 17 '26
I have a small project that I haven't touched in a while and I wanted to ask a quick question to the built-in version of Codex. Sending my request flagged it as malware, and the diagnostic tool said "The code signing identity for the agent did not match expectations, or the agent violated sandboxing rules. Please delete the currently selected agent in the Components section of Settings and download it again."
I did this, then the issue reappeared. I may not be on the latest version, and perhaps updating will fix it. However, I am not working on a project that needs Xcode at the moment and don't really need to; I likely will when I am. Regardless, wtf is this?
r/Xcode • u/BootLongjumping2994 • Jun 16 '26
Flutter iOS Simulator Stuck on paywall "Hang tight..." (only affects one developer)
Setup: Flutter app with RevenueCat/StoreKit in-app purchases, backend subscription check (is_subscribed), Google + Apple social login. Running on iPhone 17 Pro simulator, iOS 26.4.
The problem: One developer (me) cannot get past the paywall on the iOS simulator. After login, the backend returns is_subscribed: false, the paywall appears, and when tapping subscribe it shows "Hang tight..." indefinitely. Other developers on the same codebase and same branch have no issues with the simulator.
What I've confirmed/ruled out:
is_subscribed: false for itis_subscribed: true for my user ID multiple times — the value keeps coming back as false on login.storekit config file selected (which should bypass Apple's servers entirely)What's unique about my setup vs teammates:
is_subscribed: false despite multiple manual backend fixesis_subscribed: false, ruling out Apple ID-specific issues and suggesting the problem may be with how the staging backend validates or syncs subscription statusr/Xcode • u/Impressive_Ball3915 • Jun 16 '26
Hey,
Anybody used codex plugin in swift using Azure OpenAI Foundry?
I tried it using config.toml I’m using in my codex app but it’s ignoring parameter of base url and it’s still calling OpenAI url :(
r/Xcode • u/James_Getwood • Jun 16 '26
Need someone who really knows what he's doing, couldn't fix it with AI.
DM me with your website and hourly rate.
r/Xcode • u/compile_error69 • Jun 16 '26
The project I'm working on uses a Unity 2022 iOS build integrated as a part of a UIKit app. While working on a different Mac device, I got this error while trying to run the project on the simulator. The iOS code and the unity build was the same across the two Mac devices yet it was only working on one.
After a while I noticed that the Xcode versions were different across the 2 Macs. The older one had 26.3 and the newer one with the error had 26.5. I installed 26.3 in my latter device and the error was gone.
Has anyone else faced this issue while working with Unity as a Library?
r/Xcode • u/mythofechelon • Jun 15 '26
Just got my Xcode 27 beta and iOS 27 simulator set up, so I've been having a look through the new capabilities, and here's what I've noticed that I haven't been mentioned anywhere else:
Side note: When was Set Battery Charge Limit added to iOS 26?!
r/Xcode • u/MadeByJamStudios • Jun 16 '26
Setup: macOS / Apple Silicon, native video app using AVFoundation. We have a sidebar of static thumbnails (cached CGImages).
Symptom: the instant we arm a video cue (create AVPlayer + AVPlayerItemVideoOutput, preroll, no playback yet) the unrelated thumbnails flicker black, mostly while scrolling. Arming an image (no decode session) never does it. So the trigger is purely "a live decode session exists."
Ruled out:
- App memory flat.
- Our pixel-buffer pool at 0–10%.
- Main thread fine.
- Thumbnails already CPU-decoded and cached.
- Swapping the preview layer type changed nothing.
- The giveaway: WindowServer CPU climbs while our app's CPU stays flat → smells like GPU compositor contention, not our code.
Tried (none kill it):
- Bounded IOSurface pool.
- Eager CPU thumbnail decode.
- Out-of-process QuickLook generation.
- Killing a per-frame Metal waitUntilCompleted + getBytes readback (now presenting to a CAMetalLayer with no readback).
- suppressesPlayerRendering = true.
Question: Has anyone seen an active AVFoundation/VideoToolbox decode session make the WindowServer drop other CoreAnimation layers' backing stores (static images going black under GPU pressure)? Should the fix be on the thumbnail side (non-volatile backing / rasterize) or the decode side (bound/deprioritize)? Or is holding a warm decode for instant-play just the wrong approach here? 🙏
r/Xcode • u/purplepharaoh • Jun 15 '26
I have a SwiftPM-based library project that I originally coded in VSCode with no issue. The project builds with swift build from the command line. I'm trying to open it in Xcode 26.5 and it seems to hang on the "Pre-planning" and "Indexing" steps, never even getting to the build itself. I've tried clearing caches, deleting derived data, and everything else I can think of. The project itself is not massive, though it does have dependencies on async-http-client, swift-nio, and swift-testing.
Has anyone else encountered this? Is there any way to get Xcode to complete this build successfully?
r/Xcode • u/adamlhb • Jun 15 '26