Post

Replies

Boosts

Views

Activity

Xcode 27.2 – iPhone Simulator Black Screen, Data Migration Failed, and SwiftUI Preview Timeout on M1 Mac
Hi everyone, I've been experiencing persistent issues with the iPhone Simulator and SwiftUI Previews for several days. I've tried numerous troubleshooting steps, but nothing has permanently resolved the problem. My environment MacBook Pro – Apple M1 8 GB RAM macOS 27.2.1 Xcode 27.2 (27B52) iOS Simulator runtimes tested: 26.5, 27.0, and 27.2 Problems Xcode frequently gets stuck on "Preparing iPhone Simulator." DeviceHub displays a black screen. SwiftUI Previews take an unusually long time to load or fail completely. Simulators sometimes shut down unexpectedly. Xcode builds my application successfully but sometimes gets stuck launching it on the simulator. Error messages DeviceKitError 4002: Live device view took longer than expected to connect. Data Migration Failed. Failed to launch app in reasonable time. Mach error -308 – (ipc/mig) server died. Testing results I tested the simulator independently while Xcode was completely closed. The iOS 27.2 iPhone 18 Pro Max simulator successfully completed its startup after 4 minutes and 51 seconds. I could access the Home Screen and open Settings. However, after closing and reopening DeviceHub, the simulator displayed a black screen. I captured a screenshot directly using the simctl command, and the screenshot was also completely black. The simulator subsequently entered the Shutdown state unexpectedly. I also tested the iOS 27.0 simulator, which returned "Data Migration Failed" after 9 minutes and 13 seconds. Additionally, I created a completely new SwiftUI project to determine whether my existing project was causing the issue. The new project also experienced SwiftUI Preview launch timeouts. My existing application builds successfully and runs on my physical iPhone 13 Pro Max. Troubleshooting already performed Reinstalled Xcode from the Mac App Store. Verified that macOS and Xcode are up to date. Tested multiple iPhone simulator models and iOS runtimes. Created new simulator devices. Restarted CoreSimulator services. Cleaned the Xcode build folder. Tested Legacy Previews Execution. Tested a newly created SwiftUI project. Booted simulators independently using Terminal. Unfortunately, none of these steps permanently resolved the issue.I've always experienced slow loading times with the iPhone Simulator and SwiftUI Previews on my Mac. However, the problem has recently become significantly worse, with black screens, unexpected simulator shutdowns, data migration failures, and preview timeouts. I suspect the issue may have worsened after updating macOS, but I cannot confirm whether the update is responsible. I have also submitted a report through Apple Feedback Assistant with simulator diagnostics. Questions Has anyone experienced similar issues with Xcode 27.2, particularly on an Apple Silicon Mac with 8 GB of RAM? Could this be related to CoreSimulator, DeviceHub, runtime data migration, or resource limitations? Is there a known workaround or solution that does not require reinstalling macOS? I have spent several days troubleshooting this issue, and it is significantly affecting my iOS development workflow. Any suggestions or assistance would be greatly appreciated. Thank you!
0
0
13
39m
Xcode 27.2 – iPhone Simulator Black Screen, Data Migration Failed, and SwiftUI Preview Timeout on M1 Mac
Hi everyone, I've been experiencing persistent issues with the iPhone Simulator and SwiftUI Previews for several days. I've tried numerous troubleshooting steps, but nothing has permanently resolved the problem. My environment MacBook Pro – Apple M1 8 GB RAM macOS 27.2.1 Xcode 27.2 (27B52) iOS Simulator runtimes tested: 26.5, 27.0, and 27.2 Problems Xcode frequently gets stuck on "Preparing iPhone Simulator." DeviceHub displays a black screen. SwiftUI Previews take an unusually long time to load or fail completely. Simulators sometimes shut down unexpectedly. Xcode builds my application successfully but sometimes gets stuck launching it on the simulator. Error messages DeviceKitError 4002: Live device view took longer than expected to connect. Data Migration Failed. Failed to launch app in reasonable time. Mach error -308 – (ipc/mig) server died. Testing results I tested the simulator independently while Xcode was completely closed. The iOS 27.2 iPhone 18 Pro Max simulator successfully completed its startup after 4 minutes and 51 seconds. I could access the Home Screen and open Settings. However, after closing and reopening DeviceHub, the simulator displayed a black screen. I captured a screenshot directly using the simctl command, and the screenshot was also completely black. The simulator subsequently entered the Shutdown state unexpectedly. I also tested the iOS 27.0 simulator, which returned "Data Migration Failed" after 9 minutes and 13 seconds. Additionally, I created a completely new SwiftUI project to determine whether my existing project was causing the issue. The new project also experienced SwiftUI Preview launch timeouts. My existing application builds successfully and runs on my physical iPhone 13 Pro Max. Troubleshooting already performed Reinstalled Xcode from the Mac App Store. Verified that macOS and Xcode are up to date. Tested multiple iPhone simulator models and iOS runtimes. Created new simulator devices. Restarted CoreSimulator services. Cleaned the Xcode build folder. Tested Legacy Previews Execution. Tested a newly created SwiftUI project. Booted simulators independently using Terminal. Unfortunately, none of these steps permanently resolved the issue.I've always experienced slow loading times with the iPhone Simulator and SwiftUI Previews on my Mac. However, the problem has recently become significantly worse, with black screens, unexpected simulator shutdowns, data migration failures, and preview timeouts. I suspect the issue may have worsened after updating macOS, but I cannot confirm whether the update is responsible. I have also submitted a report through Apple Feedback Assistant with simulator diagnostics. Questions Has anyone experienced similar issues with Xcode 27.2, particularly on an Apple Silicon Mac with 8 GB of RAM? Could this be related to CoreSimulator, DeviceHub, runtime data migration, or resource limitations? Is there a known workaround or solution that does not require reinstalling macOS? I have spent several days troubleshooting this issue, and it is significantly affecting my iOS development workflow. Any suggestions or assistance would be greatly appreciated. Thank you!
Replies
0
Boosts
0
Views
13
Activity
39m