Search results for

xcode github

94,682 results found

Post

Replies

Boosts

Views

Activity

Can a Swift Student Challenge submission include .metal shader files ?
Hello developers, i have a project for SSC that includes metal shader code. The project runs fine when I build and run it in Xcode, but it does not run in the Swift Playground app. The reason is that Swift Playgrounds doesn’t compile/build source files with the .metal extension the same way Xcode does (so the shader never gets built/loaded in Playgrounds). The requirements say: “Your app playground must be built with and run on Swift Playgrounds 4.6 or Xcode 26, or later.” Since it says “or” (not “and”), does that mean it’s acceptable if the project only builds/runs in Xcode?
2
0
66
44m
Reply to CPContactTemplate does not display buttons iOS26
Thanks for the post, so when using the https://developer.apple.com/documentation/carplay/cpcontacttemplate api for CarPlay has changed the output from iOS 16 to 26? Can you provide a focused sample showing the issue? The most common reason for buttons not showing is incorrect setup. The code for creating and configuring the buttons must be correct. Are you correctly initializing the button classes (e.g., CPContactCallButton())?Are you setting the properties of the buttons correctly (e.g., contactName, phoneNumber, messageBody)?Ensure you have implemented logic to handle button presses. Buttons require interaction to perform actions. Without either the target-action pattern (using addTarget) or implementing a CPButton delegate method the buttons have nothing to execute. The template needs to be presented using the correct CarPlay CPInterfaceController. Ensure that you are displaying your CPContactTemplate through the CarPlay interface. Ensure the view controller which is housing the CarPlay template is correct
Topic: Design SubTopic: General Tags:
1h
iOS/iPadOS 26.3 beta 3 and UIFileSharingEnabled regression
FB21772424 On any iPhone or iPad running 26.3 beta 3 with UIFileSharingEnabled enabled via Xcode, a file cannot be manually copied to/from macOS or manually deleted from Finder but 26.3 beta 2 works fine running on any iPhone or iPad. The version of macOS is irrelevant as both macOS 26.2.1 and macOS 26.3 beta 3 are unable to affect file changes via macOS Finder on iPhone or iPad running 26.3 beta 3 but can affect file changes via macOS Finder on iPhone or iPad running 26.2.1 Thank you.
2
0
114
2h
Layout issue using .strokeBorder modifier
Hello, Developers! While writing custom view modifier I ran into unexpected behavior of .strokeBorder modifier. The underlying content seem to be “bleeding” outside of the stroke border edges, even though they share the exact same shape for their layout. This issue relevant for both Xcode Previews and on-device testing. Maybe someone has experienced this issue before, I'd be glad to see your opinion on this matter.
1
0
43
2h
Build Failing with Ad-hoc and Developer Distribution Errors
I'm trying to upload my app build with Xcode Cloud. It builds and runs fine on the simulator, but when I try to upload to the cloud it keeps failing from Ad-hoc and Developer Distr. (Error code 70) I have tried/verified: -Verifying that my workflow archive in Xcode is set to App Store Connect (setting it to internal Test flight did not work either) -TestFlight Internal is set as a Post-Action and I created/added a test group -All App Store agreements signed and active -Revoking out-of-date developer certificates (Development Managed) -Running build from command line (using git pull origin main, git push origin main) Excerpts of the Error Output (ip addresses censored) Export archive for ad-hoc distribution 15.9s Run command: 'xcodebuild -exportArchive -archivePath /Volumes/workspace/tmp/3fe6638a-94b8-4944-8406-0e291469f933.xcarchive -exportPath /Volumes/workspace/adhocexport -exportOptionsPlist /Volumes/workspace/ci/ad-hoc-exportoptions.plist '-DVTPortalRequest.Endpoint=http://172.16.XX.XX:X
4
0
211
4h
Xcode 26 CompileMetalFile failed
EnableLiveAssetServerV2-com.apple.MobileAsset.MetalToolchain = on; ProductName: macOS ProductVersion: 26.0.1 BuildVersion: 25A362 The MetalToolchain is installed, however I keep getting error that MetalToolchain cannot be found by the Xcode Command CompileMetalFile failed with a nonzero exit code error: error: cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain ❯ xcodebuild -downloadComponent MetalToolchain 2025-10-31 11:18:29.004 xcodebuild[6605:45524] IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.1.324.0.k9JmEp” couldn’t be opened because you don’t have permission to view it. Beginning asset download... 2025-10-31 11:18:29.212 xcodebuild[6605:45523] IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.1.324.0.k9JmEp” couldn’t be opened because you don’t have permission to view it
8
0
991
4h
How to properly use PermissionKit to ask permission
For testing permission response we can use the sandbox account However, when testing permission requests using the AskCenter API, none of the ask API works for me in xcode 26.2 rc and iOS 26.2 rc. For SignificantAppUpdateTopic, I got errors like The user is in a region that does not support this type of ask in the console log, but I've already set my billing address to Texas. For CommunicationTopic, the console shows several XPC-related errors, and I’m not sure which of them are relevant. Both of them show an alert view of Can't ask, An unknown error occurred Can someone help to guide us how to test the request flow? Thanks
9
0
796
4h
Reply to Can a Swift Student Challenge submission include .metal shader files ?
Thank for the post, I’m not int that team at all nor I have inside information, Im just looking at the eligibility rules. According to the requirements, the project must run on either Swift Playgrounds 4.6 or Xcode 26, or later. Since Swift Playgrounds looks like doesn’t support building .metal shader files the same way Xcode does, it seems like you could technically meet the requirements by only running the project in Xcode. From: https://developer.apple.com/swift-student-challenge/eligibility/ “Your app playground must be built with and run on Swift Playground 4.6 or Xcode 26” OR is the key word here. Hope this helps, you can also sent that question to that team as they have an email address on their page. Albert Pascual
  Worldwide Developer Relations.
4h
Reply to انشاء تطبيق جديد
Thanks for the post and happy you want to create a game. But your post does not provide specific questions we can answer. About the development environment you asked in your post if translate worked well: Development Environment: Xcode: This is Apple's integrated development environment (IDE). You'll need it to write and build your iOS or macOS app. Download it from the Mac App Store. Swift (Programming Language): Swift is Apple's preferred language for iOS/macOS development. It's modern, safe, and relatively easy to learn. UIKit or SwiftUI (User Interface Framework): UIKit: The traditional framework. Mature and highly documented. Might be more suitable if your team is already familiar with it. SwiftUI: Apple's newer, declarative UI framework. Easier to write cleaner and more maintainable code, especially for simple layouts. Consider this if you're starting fresh. We will focus on SwiftUI for this guide. Here are a few suggestions that might help it attract more attention: Provide more details: Expan
4h
CloudKit sync fails across TestFlight iOS + macOS builds — “Field recordName is not marked queryable”
I’m running into a CloudKit sync issue that I can’t reconcile after multiple rebuilds, TestFlight uploads, and entitlement verification, and I’m hoping for guidance on what I’m missing or whether this is expected behavior. Context App: RankSpinnah Platforms: iOS + macOS Distribution: TestFlight Xcode: 26.x Both apps use the same bundle identifier, same container, and same Apple Developer team Automatic signing enabled; Xcode-managed profiles CloudKit capability enabled for both targets Both builds install and run correctly from TestFlight on: iPhone 17 Pro Apple-silicon Mac (M5 MacBook Pro) The Problem CloudKit data does not sync at all between devices. On both iOS and macOS, CloudKit queries return no records, and I consistently see this error: Field 'recordName' is not marked queryable This occurs even when querying for records that should exist and after fresh installs on both devices. What I’ve Verified Same iCloud account signed in on both devices CloudKit container exists and is enable
1
0
55
5h
Cannot preview in this file – SwiftUI Preview referencing deleted simulator
I'm running Xcode 26.2 (17C52). After deleting all simulators and creating new ones, SwiftUI Preview stopped working. Xcode reports: “Simulator [D774B214-XXXX-XXXX-XXXX-XXXXXXXX8288] failed to boot and may have crashed.” However, when I list all available simulators using xcrun simctl list, there is no simulator with that identifier. It seems Xcode is still referencing a previously deleted simulator. I have tried: Deleting all simulators again Creating new simulators Restarting Xcode and the system But the issue persists and Preview still fails to launch. Has anyone encountered this issue or knows how to clear the cached simulator reference used by SwiftUI Preview?
1
0
29
8h
Reply to Cannot preview in this file – SwiftUI Preview referencing deleted simulator
Hi, Sorry to hear you are having trouble using previews. A few things you could try: Run xcrun simctl --set previews list to see the list of previews sims. Perhaps you'll see the UUID list there Similarly if you wanted to delete all the previews sims run xcrun simctl --set previews delete all If you are still seeing issues we'd suggest filing a feedback report We will need the diagnostics Xcode Previews generates in order to help us understand the error the previews system is encountering. Install the logging profile using instructions available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift On your mac running Xcode, and on your physical preview device (if you are using one). Install the logging profile using the following instructions on your mac running Xcode; and if you are using one, your physical preview device (iOS or visionOS): https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift Then when you reproduce the problem in Xcode
8h
Local Updates to Live Activities ignored after push update
I'm building out a live activity that has a button which is meant to update the content state of the Live Activity. It calls a LiveActivityIntent that runs in the app process. The push server starts my live activity and the buttons work just fine. I pass the push token back to the server for further updates and when the next update is pushed by the server the buttons no longer work. With the debugger I'm able to verify the app intent code runs and passes the updated state to the activity. However the activity never updates or re-renders. There are no logs in Xcode or Console.app that indicates what the issue could be or that the update is ignored. I have also tried adding the frequent updates key to my plist with no change. I'm updating the live activity in the LiveActivityIntent like this: public func perform() async throws -> some IntentResult { let activities = Activity.activities for activity in activities { let currentState = activity.content.state let currentIndex = currentState.pageIndex ??
3
0
80
7h