When I run a XCTest test on an IOS Target device, the test runs but the simulator is not opened so I can follow the screens being displayed and the key strokes. And when I initiate a record for a test method, it just hangs and never runs or open a simulator.
Is anyone else experiencing these same issues running XCTest?
Is this legacy framework not working with XCode 16 by design?
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 am unable to connect iPhone to Xcode. Getting error -
The developer disk image could not be staged on the host.; Couldn’t communicate with a helper application.
Xcode - 16 Beta
Mac OS - Sonoma 14.6.1
iOS - 17.6.1
VPN - No
Details are as follows:
The developer disk image could not be staged on the host.
Domain: com.apple.dt.CoreDeviceError
Code: 12045
Failure Reason: Couldn’t communicate with a helper application.
User Info: {
DVTErrorCreationDateKey = "2024-08-21 11:04:09 +0000";
DeviceIdentifier = "01162B62-9C06-48A4-B2F7-D17ABD2D35B0";
NSURL = "file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
"com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
--
Couldn’t communicate with a helper application.
Domain: NSCocoaErrorDomain
Code: 4099
Recovery Suggestion: Try your operation again. If that fails, quit and relaunch the application and try again.
User Info: {
NSDebugDescription = "The connection to service created from an endpoint was invalidated: failed at lookup with error 9 - Bad file descriptor.";
}
--
System Information
macOS Version 14.6.1 (Build 23G93)
Xcode 16.0 (23047) (Build 16A5221g)
Timestamp: 2024-08-21T16:34:09+05:30
**Tried so far - **
Xcode Quit and Reopen
Restart iPhone
Restart Mac
Reinstalling Xcode
Reset Network Settings on iPhone
Developer mode ON/OFF
Unpair and Pair Again
Clear Trusted Computers
Tried with different iPhone Cables(Not needed one but tried)
Factory Reset of iPhone
Please guide how to resolve this.
I am using Xcode 14, but the built in iOS 16 simulator does not run properly on my device, so I use iOS 14 simulator. If I use the old version of Xcode then I will have to compromise with many labraries, frameworks and features and I don't want that. So I want to delete the built in iOS 16 simulator of Xcode 14 to free up memory, because I don't need this. please help me ?
Hello!
When running tests on iOS 17, the build succeeds but does not run on iOS 16. It consistently gets stuck on 'Testing'.
This issue does not occur on iOS 17.
I am having issues with the Apple review process, the reviewer found some blockers on the iPad with 17.6.1. I don't have the physical device which I could use to reproduce the bags and neither on the Apple Downloads site nor via Xcode I am able to see the 17.6.1 simulators available. Is there any way I could download it? Any suggestions?
When I new project is initiated in XCode 16 beta 3, an overall folder is created to contain all the generated content in the Navigator pane . In past XCode version, this main container (under the project name) has always been generated as a group. Is this change by design or a bug? The issue this creates is that the files and folders in this overall Folder can not be repositioned - they remain in ascending alphabetical order. I must convert this initial Folder into a Group by right clicking on the folder name and selecting "Convert to group" which converts the folder to a group. I am then able to reposition files, groups and folders within this group. I don't see anywhere in the XCode documentation where this change in behavior is mentioned.
Anyone else having this same issue. I never have understood the difference or use cases for groups vs folders in the xcode Navigator pane.
The developer disk image could not be mounted on this device.
Domain: com.apple.dt.CoreDeviceError
Code: 12040
Failure Reason: A networking error occurred.
User Info: {
DDIPath = "/Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
DVTErrorCreationDateKey = "2024-09-06 21:03:42 +0000";
DeviceIdentifier = "B95A4B0D-16F7-4267-9F90-ED9808A4D0B6";
IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
NSURL = "file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
Options = {
MountedBundlePath = "file:///private/var/tmp/CoreDevice_DDI_Staging_501/B95A4B0D-16F7-4267-9F90-ED9808A4D0B6/";
UseCredentials = 0;
};
"com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
--
The developer disk image could not be mounted on this device.
Domain: com.apple.dt.CoreDeviceError
Code: 12040
Failure Reason: A networking error occurred.
User Info: {
DDIPath = "/Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
DeviceIdentifier = "B95A4B0D-16F7-4267-9F90-ED9808A4D0B6";
IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
NSURL = "file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
Options = {
MountedBundlePath = "file:///private/var/tmp/CoreDevice_DDI_Staging_501/B95A4B0D-16F7-4267-9F90-ED9808A4D0B6/";
UseCredentials = 0;
};
"com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
--
A networking error occurred.
Domain: com.apple.dt.CoreDeviceError
Code: 4
--
Error mounting image: 0xe800010e (kAMDMobileImageMounterNetworkNotReachableError: A network error occurred (server not reachable).)
Domain: com.apple.mobiledevice
Code: -402652914
User Info: {
FunctionName = AMDeviceRemoteMountPersonalizedBundle;
LineNumber = 2145;
}
--
AMAuthInstallRequestSendSync failed: 11 (kAMAuthInstallErrorServerNotReachable)
Domain: com.apple.mobiledevice
Code: -402652914
User Info: {
FunctionName = "-[PersonalizedImage mountImage:]";
LineNumber = 2042;
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_isCoreDevice" = 1;
"device_model" = "iPhone15,4";
"device_osBuild" = "17.5.1 (21F90)";
"device_platform" = "com.apple.platform.iphoneos";
"dvt_coredevice_version" = "397.19";
"dvt_mobiledevice_version" = "1759.0.4";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 1260690;
"operation_errorCode" = 4;
"operation_errorDomain" = "com.apple.dt.CoreDeviceError.12040.com.apple.dt.CoreDeviceError";
"operation_errorWorker" = IDEInstallCoreDeviceWorker;
"operation_name" = IDERunOperationWorkerGroup;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.iphoneos";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 0;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 2;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 99;
"param_launcher_substyle" = 8192;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_structuredConsoleMode" = 1;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos17.5";
"sdk_osVersion" = "17.5";
"sdk_variant" = iphoneos;
}
--
System Information
macOS Version 14.5 (Build 23F79)
Xcode 15.4 (22622) (Build 15F31d)
Timestamp: 2024-09-06T14:03:42-07:00
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi, i am using macos ventura 13.5.2 and xcode 14.3.1 version. But when i try to add an IOs 14.3 simulator, this option did not appear.
I have numerous simulator runtimes marked as "Deleting":
$ xcrun simctl runtime list
== Disk Images ==
-- iOS --
iOS 18.0 (22A3351) - 036938A4-AAF7-4671-8880-8E381770E397 (Deleting)
iOS 18.0 (22A5326g) - 756A6FE1-A9C7-4A3D-A8FD-01FD7B5F84BC (Deleting)
iOS 18.0 (22A5307f) - 5DB182D5-FAA1-477D-922F-CFA728C5A6FA (Deleting)
iOS 18.0 (22A5346a) - C844925F-1BCA-46FD-B0B9-21587AB3EDE5 (Deleting)
iOS 18.0 (22A5307f) - CC3EB15F-4EAA-4591-AE5C-2762AC17C426 (Unusable - Other Failure: Duplicate of 5E3173BD-25F7-4446-9593-B5E6330B65CE)
-- tvOS --
tvOS 18.0 (22J5290l) - A7A2E335-D433-456D-AC61-D5061317A911 (Ready)
-- watchOS --
watchOS 11.0 (22R5284o) - 87DB6C3E-A51E-4394-AD35-F6BDCBDEFDC9 (Ready)
How to I finish deleting these runtimes?
I can't re-install, because:
$ simctl runtime add iOS_18_Release_Candidate_Simulator_Runtime.dmg
The iOS Simulator runtime 22A3351 is not installed, installing...
D: C76A5156-5225-4683-806A-FC604074F2C7 iOS (18.0 - 22A3351) (Unusable - Other Failure: Error Domain=SimDiskImageErrorDomain Code=5 "Duplicate of 036938A4-AAF7-4671-8880-8E381770E397" UserInfo={NSLocalizedDescription=Duplicate of 036938A4-AAF7-4671-8880-8E381770E397, unusableErrorDetail=})
and it's the "Deleting" runtimes aren't usable (causing things like ibtool/actool to stop working), presumably because they're "Deleting."
A reboot does not fix anything.
When I try to install my app via USB cable on my child's iPhone 13 device I see following error in Xcode:
Installation on this device is prohibited by ManagedConfiguration
If I go to VPN & Device Management, I don't see anything. This is my Child's iphone so it is not like it is enrolled in some kind of school or work MDM.
Developer mode is ON and I added device ID to Certificates, Identifiers & Profiles > Devices.
Domain: IXRemoteErrorDomain
Code: 9
Failure Reason: Unhandled error domain IXRemoteErrorDomain, code 9
User Info: {
FunctionName = "-[IXSRemoteInstaller initWithRemoteInstallOptions:xpcAssetStream:assetSize:error:]";
SourceFileLine = 149;
}```
Is it cellular network provider that has locked something? How to be sure about this?
Topic:
Developer Tools & Services
SubTopic:
Xcode
I was using a version of Xcode and macOS that wasn't fully updated. When I tried to deploy my app to my phone I got the following error message "IOS Version Incompatible with Xcode version". At that time Xcode recognized my device. I updated my mac and updated Xcode. Then everything was fully up to date but now Xcode cannot see my device. I have tried with multiple different devices and it does not see any of them although finder recognizes all of them.
I have tried the following so far:
Every single suggestion from the tack overflow post: "Xcode does not see my iOS device but iTunes does"
Ensured developer mode is turn on on my iPhone
Restarted my iPhone and mac
Deleted and reinstall xcode
Tried a brand new empty Xcode project
Reinstalled command line developer tools
Restarted usbmuxd
Deleted derived data
Removed all vpns
tried different usb cables (I am pretty sure the cable shouldn't be the problem though since this cable was working when Xcode and my iOS version wasn't compatible)
Reset trust settings on my iPhon
Tried manually adding my device to device and simulators but it says no devices found
I opened up console on my mac and saw the following output "error 20:08:46.847760-0700 managedappdistributiond Simulator is not supported"
I do not understand what is going wrong for me right now. I cannot think of nor find any other solutions right now.
I'm building a Unity application for ios that also communicates with Firebase (and GDrive, if it makes a difference, as well as some other servers). When running it through Unity Build Automation with fastlane, this is what it's failing on.
Help?
inline-code[2024-04-10T09:53:11.680Z] - 7.4.1.2.7.4 - [0;36mINFO [0m: SwiftCompile normal arm64 Compiling\ AsyncAwait.swift,\ Result.swift,\ Storage.swift,\ StorageComponent.swift,\ StorageConstants.swift,\ StorageDeleteTask.swift,\ StorageDownloadTask.swift,\ StorageError.swift,\ StorageGetDownloadURLTask.swift,\ StorageGetMetadataTask.swift,\ StorageListResult.swift,\ StorageListTask.swift,\ StorageMetadata.swift,\ StorageObservableTask.swift,\ StoragePath.swift,\ StorageReference.swift,\ StorageTask.swift,\ StorageTaskSnapshot.swift,\ StorageTaskState.swift,\ StorageTokenAuthorizer.swift,\ StorageUpdateMetadataTask.swift,\ StorageUploadTask.swift,\ StorageUtils.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/AsyncAwait.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/Result.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageComponent.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageConstants.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageDeleteTask.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageDownloadTask.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageError.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageGetDownloadURLTask.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageGetMetadataTask.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/F...
[2024-04-10T09:53:11.680Z] - 7.4.1.2.7.4 - [0;36mINFO [0m: torageTokenAuthorizer.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageUpdateMetadataTask.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageUploadTask.swift /opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/temp20240410-3408-1mgvzme/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageUtils.swift (in target 'FirebaseStorage' from project 'Pods')
[2024-04-10T09:53:11.680Z] - 7.4.1.2.7.4 - [0;36mINFO [0m: (2 failures)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Developer Tools
Xcode
Continuous Integration
If I use the manual merge option with a mergeable library in debug mode, the app crashes on the device only.
Here's what I found when debugging this issue.
Problem situation 1
In the debug build, the linker does not find the type of the Meregeable Library.
Explain the debugged result of Problem Situation 1
We have a type called UserAdDTO, which belongs to the B Framework. - In our project, B Framework and C Framework are mergeable libraries, and they are merged into A Framework.
We are using Manual Merge in A Framework.
When we build with the simulator, we link the UserAdDTO from CFramework.framework/CFramework in the app target.
On the other hand, when I build with the device, I try to link it from AFramework.framework/AFramework, and I get the issue that UserAdDTO is not found.
So, even if you output DYLD_PRINT_BINDINGS, the simulator build links to the C Framework to find the UserAdDTO, but the app links to the B Framework, causing a runtime crash.
Problem situation 2
It is confirmed that only the device build does not copy the reexported binary.
Detailed description of problem situation 2
If you compare the build messages from the device build with the build messages from the release build, both generate the reexported binaries of B and C Frameworks, but do not copy them to BFramework.framework and CFramework.framework.
Instead, they copy the files in different paths.
This appears to be a bug, and I'd like to ask you to confirm.
Xcode 15 crashes immediately upon opening, and I am unable to work. This issue occurs on both macOS 13 and macOS 14. Xcode 14 also experiences intermittent freezing, but at least it is still somewhat usable. I hope you can help me resolve this issue.
xcode16 debug模式下运行失败:linker command failed with exit code 1 (use -v to see invocation)
-bitcode_bundle is no longer supported and will be ignored
-bitcode_process_mode is no longer supported and will be ignored
请问怎么解决??xcode版本:Version 16.0 (16A242d)
release模式下 是正常跑起来的。
oc项目里面有flutter。
Topic:
Developer Tools & Services
SubTopic:
Xcode
How do I fix the error?
Waiting for the debugger to connect to iPhone (nick) on port 10000 via USB…”
Hello everyone,
I’m encountering an issue while trying to archive my app in Xcode, and I hope someone can help me troubleshoot it.
Error Details:
Domain: IDEArchivedApplicationErrorDomain
Code: 1
Failure Reason: Archive content at path /Users/c1/Library/Developer/Xcode/Archives/2024-09-22/alpha release 4 22-09-24, 2.52 PM.xcarchive/Products/Applications/Runner.app is missing a bundle identifier.
User Info:
DVTErrorCreationDateKey = "2024-09-22 09:22:03 +0000";
Steps Taken:
I’ve verified that the Bundle Identifier is correctly set in the project settings under the General tab.
Cleaned the build folder (Product > Clean Build Folder).
Restarted Xcode and attempted to archive again.
Checked that all targets in the project have a valid Bundle Identifier.
Has anyone experienced a similar issue or have any suggestions for resolving this? I would appreciate any guidance on how to fix this missing bundle identifier error.
Thanks in advance for your help!
Hello,
I'm experiencing a persistent crash in my Expo app on iOS 17.4.1 and subsequently 18.0 (on the iPhone 12 mini) triggered by an EXC_GUARD error.
I've also received the following warning in the XCode build logs:
/Users/expo/workingdir/build/ios/Pods/sqlite3/sqlite-src-3450300/sqlite3.c:60562:24: warning: implicit conversion loses integer precision: 'i64' (aka 'long long') to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32]
The device crash logs are attached below. I'll be looking around for any other fixes, but grateful for your help in the meantime!
ExcUserFault_pppppp-2024-09-18-203642.txt
ExcUserFault_TestFlight-2024-09-21-230842.000.txt
Using an iPhone 16 Pro Max, running [UIApplication sharedApplication].windows.lastObject.windowScene.statusBarManager.statusBarFrame.size.height in Xcode 15 returns a result of 44, causing UI display issues for applications that rely on the status bar height for calculations.
However, using Xcode 16, the same code returns a height of 54, and the UI displays correctly.
Is this an Apple
Please acknowledge this bug, Apple.
What are the model identifiers for the iPhone 16 Pro and iPhone 16 Pro Max?
static func getiPhoneType() -> String {
var systemInfo = utsname()
uname(&systemInfo)
let machineMirror = Mirror(reflecting: systemInfo.machine)
let identifier = machineMirror.children.reduce("") { identifier, element in
guard let value = element.value as? Int8, value != 0 else { return identifier }
return identifier + String(UnicodeScalar(UInt8(value)))
}
return identifier
}
Does anyone have a real device to run the code and provide the information for the iPhone 16 Pro and iPhone 16 Pro Max?