When I create a new tvOS game and run the default project the simulator window appears but nothing is shown. When I create a MultiPlatform Game project and run the demo project for AppleTV the simulator work correctly. I do not get any errors just a blank screen.
Also clicking on the Home icon in the simulator or the actual AppleTV does nothing.
Drew
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I updated Xcode and MacOS recently and haven't been able to compile my Flutter app on iOS devices/simulators since then. The error keeps changing every time I run it but here's one of the output in the terminal after running flutter run:
Uncategorized (Xcode): Command SwiftGeneratePch emitted errors but did not return a nonzero exit code to
indicate failure
Error (Xcode): no such file or directory:
'/Users/chiragbhansali/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'
Error (Xcode): stat cache file
'/Users/chiragbhansali/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.0-22A3362-
db63dc9361471f152f572502bdbfe70a.sdkstatcache' not found
Error (Xcode): unable to rename temporary
'/Users/chiragbhansali/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3F9VRK3CXAUUD/UIKit-1KHQ7M05IF
VXC-56601391.pcm.tmp' to output file
'/Users/chiragbhansali/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3F9VRK3CXAUUD/UIKit-1KHQ7M05IF
VXC.pcm': 'No such file or directory'
Error (Xcode): could not build module 'UIKit'
/Users/chiragbhansali/Chirag/Coding/Projects/app/test/build/ios/Debug-iphonesimulator/Flutter.framewo
rk/Headers/FlutterAppDelegate.h:7:8
Error (Xcode): could not build module 'Flutter'
/Users/chiragbhansali/Chirag/Coding/Projects/app/test/ios/Runner/GeneratedPluginRegistrant.h:9:8
Error (Xcode): failed to emit precompiled header
'/Users/chiragbhansali/Library/Developer/Xcode/DerivedData/Runner-eifcguceazlwumgsyzegclqdrbqt/Build/Intermed
iates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_PB6A5GFLTNPC-clang_3F9VRK3CXAUUD.pch' for
bridging header
'/Users/chiragbhansali/Chirag/Coding/Projects/app/test/ios/Runner/Runner-Bridging-Header.h'
Uncategorized (Xcode): Command PrecompileSwiftBridgingHeader emitted errors but did not return a nonzero exit
code to indicate failure
Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code
Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code
Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.
What I have tried so far:
Deleting iOS SDK and simulators
Cleaning Xcode build cache using cmd+shift+k
Creating a new Flutter project and trying to compile it (it failed so that reduces the chances of it being a Flutter issue)
Clearing the DerivedData folder
Clearing settings and cache of simulators
Restarting laptop
Versions:
Xcode: 16.0
iOS: 18.0
MacOS: 15.1 (didn't work with 15.0 either)
Flutter: 3.24
Topic:
Developer Tools & Services
SubTopic:
Xcode
Sorry if this is a dumb question. I’m still a beginner. I created an Xcode Playground app with Microphone and Speech Recognition capabilities enabled, along with a backup Info.plist. However, when running the app on Mac Catalyst, a real device, or the iOS and iPadOS simulators, it crashes right after the Speech Recognition permission popup and again after the Microphone permission popup.
For extra context, the app initially worked fine in the Swift Playgrounds app, but that environment uses an outdated SDK, so it no longer supports some of the features I’ve implemented.
I’m also struggling to find clear, beginner-friendly documentation that explains how AVAudioEngine works, which is making it hard to understand what’s going wrong and how to debug it.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Swift Student Challenge
Swift Playground
Xcode
In the XCode 16 beta, it isn't possible to create a new StoreKit configuration file because the templates list doesn't contain that option.
Adding the storekit extension to a file crashes XCode or doesn't have an effect at all. But, loading an existing file still works.
I'm working on a FileProvider which allows access to encrypted files in Dropbox; I can successfully read and present the decrypted files, so I know it's basically working. But I'm having problems getting FileProvider to re-enumerate a folder when its encryption status changes.
When the FileProvider receives an update notification saying a folder is now encrypted, I use signalEnumerator to re-enumerate the folder:
FileProviderExtension.manager?.signalEnumerator(for: existingItem.itemIdentifier, completionHandler: { (ourError : Error?) -> Void in
if let ourError = ourError {
log("notifyCallback: mount / unmount failed re-enumeration: \(ourError)")
} else {
log("notifyCallback: mount / unmount signalled re-enumeration; pending")
}
})
The log reports that the re-enumeration is pending... but as far as I can tell, neither enumerateItems nor enumerateChanges is called on the folder's item unless a Finder window is actually open for that folder. This means that, when an app other than Finder tries to access the files through the filesystem, it doesn't see the updated set of filenames.
(For further reference: I've added code to both enumerateItems and enumerateChanges, so that if the call has been triggered by a recent folder-encryption notification, it retrieves a complete set of items from the Dropbox folder. If a retrieved file has an encrypted filename, it reports it as a modified item and returns its filename in-clear; if the filename isn't encrypted, it doesn't return the item (for enumerateItems) or returns it as a deleted item (for enumerateChanges). This approach seems to work successfully for listing folders with a constant state; it's only if the user encrypts / decrypts a folder without currently having a Finder window open inside that folder that I'm not seeing a refresh.)
Any advice on how I can force a re-enumeration without a Finder window currently being displayed?
AppsService: ResponseErrors (1): Error status: 403, code: FORBIDDEN.OFAC_UNCLEARED, title: 'This Apple Account has not been cleared by sanctions.', detail: 'This Apple Account has not been cleared by sanctions, so it cannot access this page.', id: APWYCBZ5RE3RNNIKUDMYLQXFB4
Topic:
Developer Tools & Services
SubTopic:
Xcode
I am encountering a cloud signing permission error when archiving and uploading an iOS app using Xcode with Automatically manage signing enabled.
Xcode reports that it cannot access or create cloud-managed distribution certificates, and therefore cannot find any App Store provisioning profiles for either the main app target or an associated Notification Service Extension.
The error message returned by Apple’s certificate API indicates that access to cloud-managed distribution certificates is forbidden.
Error messages
Cloud signing permission error
You haven't been given access to cloud-managed distribution certificates.
Please contact your team's Account Holder or an Admin to give you access.
No profiles were found
Xcode couldn't find any iOS App Store provisioning profiles matching the app or extension targets.
Environment
Xcode: 16.x
Signing method:
Automatic signing (App Store distribution)
Apple Developer Program team with existing distribution certificates
Apple ID role:
Admin (recently upgraded from a lower role)
What I have verified
Automatic signing is enabled for all targets
The correct team is selected
Bundle identifiers are valid and already registered
The app and extension exist in App Store Connect
Distribution certificates already exist in the team (previously created manually)
Observed behavior
Xcode attempts to access cloud-managed distribution certificates
Apple certificate service responds with a permission-denied error
As a result, provisioning profiles cannot be generated automatically
Question
After being upgraded to an Admin role, is there a known delay or additional requirement before an account can access cloud-managed distribution certificates, especially for teams that previously used manually managed distribution certificates?
Is there any recommended action (besides waiting or having the Account Holder perform an initial signing operation) to unblock automatic signing in this situation?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Developer Tools
Provisioning Profiles
Signing Certificates
I’m seeing what looks like a change or possible bug in Xcode when creating a new Swift Playground.
When I create a Swift Playground using Xcode (File → New → Playground), the project is generated without an Assets folder. I’ve reproduced this multiple times with fresh Playgrounds to rule out user error and the folder is consistently missing.
Previously, new Playgrounds included an Assets catalog by default, which makes this behavior surprising.
Hi,
I have a recurrent problem with an Xcode workspace that I cannot figure out how to solve:
When I command-click a symbol (or press ctrl-cmd-J) to find its definition, and when that definition is in a header file belonging to a custom static library, Xcode opens a header located in the derivedData folder rather than in the project's source codes. The exact location of this file is not in the main 'Build' folder but rather in a folder that seems dedicated to indexing:
derivedData/myProject/Index.noIndex/Build/Products/Debug/Include/theHeader.h
Consequently the file opened by Xcode is uneditable, I have to close it and reopen the source using another method. Even when the correct header is already opened, and I try again, Xcode reopens the wrong file so that it's opened twice with different paths.
In the config file of the main application project, I reference the sources of these static libraries like this:
HEADER_SEARCH_PATHS = ${SRCROOT}/myLibrary1/Sources ${SRCROOT}/myLibrary2/Sources ${SRCROOT}/myLibrary3/Sources
However, removing this doesn't fix the issue and I don't see any other related-settings.
Any idea to fix this annoying issue would be greatly appreciated, thanks!
Hi;
Here is a simple program that reads a file and counts number of 1s bits in it.
The file it reads, simple.txt, is a static text file, resides in the file system,
and nothing is touching it during the program execution. The file's length is
436 bytes.
When the program is run in the terminal it produces consistent results. Each run
counts 1329 1s bits.
It behaves differently when run in Xcode. A simple command-line tool project
having a single file.
Running the program multiple times, via Command-R, produces something strange.
That is each execution randomly produces one of two results. One is expected 1329
1s bits, another one shows 1333 1s bits. That is it counts four bits more.
Again, each run randomly produces one of those two results. And it happens only
when I run the program in Xcode.
I tried a different sample text file and experienced the same behavior, but the
difference in 1s bits count was five bits.
Any idea of how this behavior can be explained?
func countOnes(in byte: UInt8) -> Int {
var nOnes = 0
var mask: UInt8 = 0x1
while mask != 0 {
if (byte & mask) > 1 {
nOnes += 1
}
mask <<= 1
}
return nOnes
}
func countOnes(in buffer: UnsafeMutableRawBufferPointer, length: Int) -> Int {
var nOnes = 0
for byte in buffer[0...length] {
nOnes += countOnes(in: byte)
}
return nOnes
}
var fd = try FileDescriptor.open("sample.txt", .readOnly)
var buffer = UnsafeMutableRawBufferPointer.allocate(byteCount: 4096, alignment: 4)
var nBytes = try fd.read(into: buffer)
var nOnes = 0
while nBytes > 0 {
nOnes += countOnes(in: buffer, length: nBytes)
nBytes = try fd.read(into: buffer)
}
buffer.deallocate()
try fd.close()
print(nOnes)
My machine
Darwin MacBookPro 24.6.0 Darwin Kernel Version 24.6.0: Wed Oct 15 21:08:19 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_ARM64_T8103 arm64
macOS Sequoia 15.7.2
Xcode 26.1.1 (17B100)
Thanks,
Igor
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi, I'm interested in trying out Xcode Assist to help with things like complicated refactors or writing tests cases. The ChatGPT and Claude options both share your code with third parties, which is not acceptable for my use case.
Has anyone used a fully local model for Xcode Assist? I see that you can select one in the Apple Intelligence section of Xcode's Preferences screen, but don't really know where to start.
Are there local models that work well with Xcode Assist and that truly keep your source code private?
Our apps, such as iCMTGIS PRO, provides the ability for users to open a job file received as an email attachment.
Our apps use application:openurl:option to get the URL for the job file (*.pmp).
We use [URL path] to convert it to NSString format.
Then we use fopen to read the .pmp job file in "read only" mode.
On iPad Air (5th generation) running iOS Version 18.6.2, our apps are able to read the .pmp job file.
However, on iPhone 11 running iOS: 26.2, using fopen to read the .pmp file, we get a NULL value and are not able to correctly read the .pmp file.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Apple made them both, and for some reason they are acting like each is speaking a foreign language. Once you plug the iPad in, shouldn't the "trust this computer" kick in and allow the iMac to turn on developer mode? I'm the dumbest person in the world when it comes to Code, but this is a no brainer! And the fact that the iPad is in Developer mode, is the most frustrating part. This needs a fix.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Xcode 26.2 RC has been out for over 24 hours and it's still not possible to submit apps.
Has anyone been able to use Google Gemini with Intelligence in Xcode? I got the Claude models working in there but as much as I try I can't see any Gemini models.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Gitlab runner on M4 Mac Mini 2024, XCode 26.2, supported platforms: iOS, native UIKit swift project. Cocoapods.
Trying to run tests via fastlane:
run_tests(workspace: 'Project.xcworkspace',
destination: "platform=macOS,id=#{deviceId}",
scheme: "Release",
clean: true)
And having an error:
$ xcodebuild -showBuildSettings -workspace Project.xcworkspace -scheme Release -destination platform\=macOS,id\=01234567-0123456789B9001C 2>&1
[12:23:53]: Could not read the "SUPPORTED_PLATFORMS" build setting, assuming that the project supports iOS only.
[12:23:54]: Found simulator "iPhone 16 Pro (18.5)"
The tests runs just fine in xcode on "My Mac (Designed for iPad)" device on the very same machine. Compared the output of xcodebuild -showdestinations in terminal:
$ xcodebuild -showdestinations -workspace Project.xcworkspace -scheme Release
Available destinations for the "Release" scheme:
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:01234567-0123456789B9001C, name:My Mac }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, arch:arm64, id:A7E98A79-B29B-4E9A-8103-ECBA55ABC0C6, OS:26.2, name:iPhone 17 Pro }
But when I launch this command in gitlab runner, I get this:
Available destinations for the "Release" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, arch:arm64, id:A7E98A79-B29B-4E9A-8103-ECBA55ABC0C6, OS:26.2, name:iPhone 17 Pro }
I suspect gitlab runner to ruin some ENV variable, probably. So I googled the most common issues on the internet and tried everything I found:
LANG: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
unset CFProcessPath
And none is worked.
I also compared the printenv output in terminal and gitlab runner, didn't found anything suspicious.
Ran out of ideas. How can I troubleshoot this?
Topic:
Developer Tools & Services
SubTopic:
Xcode
The Send to Device in Reality Composer Pro no longer works for me. The progress spinner keeps spinning...
Happens with Wifi and Developer Strap (first gen).
Any known workarounds / ways to recover?
Hi all,
Has anyone else run into this issue in Xcode 26?
I’m logged into my paid ChatGPT Plus account, but the Xcode integration doesn’t seem to recognize the subscription. After a short period of use, I get the following error:
“Over daily limit. ChatGPT in Xcode will be unavailable for up to 24 hours. For higher limits, sign in with a paid ChatGPT account.”
Since I’m already signed in with a paid account, this looks like either a bug or a limitation specific to Xcode.
Is this expected behavior, or has anyone found a workaround to make Xcode properly recognize Plus accounts?
Thanks in advance for any guidance.
Topic:
Developer Tools & Services
SubTopic:
Xcode
MacBook Air M2(2022)
macOS Tahoe 26.2
Xcode Version 26.1.1 (17B100)
上記環境でXcodeのGPT-5を使用すると表題の不具合が発生します。
GPTの回答に短いサンプルコードが表示されている状況下でスクロールすると、
カーソルが待機状態になり操作が全くできなくなります。
双眼鏡のアイコンをオフにしてみても症状は解消されませんでした。
Topic:
Developer Tools & Services
SubTopic:
Xcode
The developer downloads page now lists an Xcode 26.1 which was released on 11th Dec (the original Xcode 26.1 was posted on 3rd Nov).
Strangely, this new Xcode 26.1 has a CFBundleShortVersionString of 26.1.1, and a DTXcodeBuild of 17B55
% ls -ln
total 4413136
-rw-r--r--@ 1 503 20 2259523057 16 Dec 19:01 Xcode_26.1_Apple_silicon.xip
% xip --expand Xcode_26.1_Apple_silicon.xip
xip: signing certificate was "Software Update" (validation not attempted)
xip: expanded items from "/Users/me/Downloads/temp/Xcode_26.1_Apple_silicon.xip"
% plutil -p Xcode.app/Contents/Info.plist | grep CFBundleShort
"CFBundleShortVersionString" => "26.1.1"
% plutil -p Xcode.app/Contents/Info.plist | grep DTXcodeBuild
"DTXcodeBuild" => "17B55"
17B55 does correspond to the original Xcode 26.1 final release. The Xcode 26.1.1 release that was previously posted had a DTXcodeBuild of 17B100, though. The pairing of 26.1.1 and 17B55 looks new and probably a packaging error?
Topic:
Developer Tools & Services
SubTopic:
Xcode