I tried dragging an apns file for a live activity into my simulator to begin a Live Activity.
It didn't do anything. I didn't see it mentioned in the wwdc videos either. So I'm wondering if this experience is not yet developed, or maybe I'm doing something incorrectly?
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
Hey Guys , I think forcing people to download Simulator along side SDK will increase hude download size, is not a good experience for developers.
Make simulator download optional and you can keep it ticked by default inside (Settings/Components/IOS XX.X Support) for beginner developers , but for advanced developer there should be option to untick it and reduce huge download size.
If it doesn't result in huge download size,then we have took a wrong turn somewhere.
Hello!
I'm experiencing a persistent SwiftCompile warning that I haven't been able to resolve for several months:
<unknown>:0: warning: default will never be executed
Observations:
Appears randomly across different files during the build.
No source location or line highlighting is provided.
Persists across clean builds and project reopenings.
Occurs in both Xcode Cloud and local builds.
What I’ve tried:
Ensuring all switch statements on enums explicitly handle every case.
Removing default cases from fully covered enum switches.
Refactoring optional enum handling (e.g., using if let instead of switch).
None of these resolved the issue. Any guidance would be greatly appreciated!
Project details:
Xcode: 16.2
Swift: 6
iOS Target: 17.0+
UI: SwiftUI-only (no UIKit)
Dependencies: SwiftPM
I can sucessfully send pushes to an app (which has been installed/run via Xcode) when the pushes are going through the Apple sandbox server.
However I want to test the server is configured correctly to send them through the Apple production server.
In the Xcode scheme I tried to change the build configuration to release (and ticked debug executable off) ,however the pushes still only work when sent through the sandbox.
Is there a way of installing/running the app using Xcode such that its compatible with the push production environment?
Does the APS Environment entitlement come into play here? this only ever says development.
(The app is on behalf of a 3rd party company, they've added me to their apple developer account but with limited powers, I can't upload to Testflight nor make an ad-hoc release with with to test with)
When trying to use the watchOS preview the simulator fails to load and throws about 15 errors. Clearly the simulator is trying to load all of the iOS packages to the watchOS simulator. However, these packages clearly aren't included in the watchOS app. Furthermore, both apps build successfully to the main simulators, just not the previews. Having a list of errors that simply should not be there is a pretty big annoyance when something is going wrong. How do I fix this?
Hello,
I am working on updating my system for Xcode but it has hanged here from last 4 hours I checked my internet.
Thanks
Zippy Games
I'm testing my App and the preview in Xcode keeps refreezing by itself preventing me from testing my code. It refreshes about once a second despite me not doing anything. Any ideas? Thank you!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Xcode16.2+iOS18以上的系统,加载图片http类型的url时,会自动升级为https,下面是Safari自动打印的日志:This content was automatically upgraded and should be served over HTTPS.有什么解决方案吗?
Is there any way to modify the behaviour of this command? I really dislike that it adds a break after the opening parenthesis and would also prefer it to use the traditional multi-line style where the lines are aligned with their semicolons.
Alternatively, is there a way to run the "Format File with 'swift-format'" command without implicitly triggering "Format to Multiple Lines", as it apparently does? Having to reformat my method's signatures afterwards really makes this feature unattractive to me at the moment.
Topic:
Developer Tools & Services
SubTopic:
Xcode
for instance:
po [NSBundle mainBundle]
0x0000600002130000
p [NSBundle mainBundle]
(NSBundle *) 0x0000600002130000
p [[NSBundle mainBundle] bundlePath]
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).
The process has been returned to the state before expression evaluation.
I am in debug mode
Trying to use SwiftUI Preview in Xcode 16.2 on complex project, I have no access to Developer Apple team, instead I am using manually installed provision profiles to test on iPhone.
So, SwiftUI Preview does not work with diagnostic error "Failure: Framework Agent preparation failed: Could not find a team ID"
Xcode 16.3 simulator slow to load - unusable
I'm trying to transfer a CSV file to my iPhone 16 simulator to use for testing my application, but it keeps failing. See the image below.
That occurs when I try to drag the file into the simulator. I also tried to use the Share option for the file, but nothing happens with that. It doesn't transfer but it also doesn't fail. I'm assuming it's failing in the background.
Anyone know what I can do?
The app stops on the breakpoint when "All Runtime Issues" is added. If I disable the breakpoint, the app runs normally. Is there a new project setting to avoid this breakpoint from being set. It does not appear to be a valid error. I am running Xcode 16.2. I edited the "Type" field in the breakpoint box. This occurs with the "System Frameworks" option only.
I am trying to add complication feature to my watchOS app. I need to add some keys to the Info.plist.
Project Navigator - no Info.plist file (as expected)
Target watchOS > Build Settings > Info.plist values.
I am unable to add a value. Hovering over a row does NOT show small '+' or '-' icons.
How do I edit the Info.plist?
after upgrade macos version to 15.4
the rsync start failing that cause the xcodebuild fail and not generate ipa
rsync: on remote machine: --extended-attributes: unknown option
rsync error: syntax or usage error (code 1) at main.c(1802) [server=3.4.1]
rsync(73444): error: unexpected end of file
rsync(73444): error: io_read_nonblocking
rsync(73444): error: io_read_buf
rsync(73444): error: io_read_int
rsync(73444): warning: child 73445 exited with status 1
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
App Store
Xcode Server
Xcode
Developer Tools
I'm running a macOS 15.2 guest on a macOS 15.1.1 host with UTM.
I'm trying to install Xcode from within the App Store but cannot login to the App Store. When I enter credentials and click 'Sign In' I get the Error 'An unknown error occurred'.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Could not build inference plan - ANECF error: failed to load ANE model file:///System/Library/Frameworks/Vision.framework/Resources/saliency_attention_box_head_i4fgq3rswb_fp16.espresso.net Error=_ANEEspressoIRTranslator : error Espresso exception: "I/O error": Cannot open additional blob file (DESIGN)
Topic:
Developer Tools & Services
SubTopic:
Xcode
I find Xcode's Debugging Variable View to be to cluttered, even when just watching "local" variables.
Is there anyway to set it so that it only shows the variables I want to watch? Would make debugging so much easier.
When Xcode 16.2 connects iPad to real machine debugging using the view in the picture box, the mac will be stuck directly, the computer cursor will disappear, and the computer cannot do any operation
Topic:
Developer Tools & Services
SubTopic:
Xcode