Hi, since a while now, I've noticed that in Xcode 15 (beta 8), my iOS device running iOS 17 (latest beta), I can't seem to disable the setting "Connect via Network" in the Devices and Simulators window.
The controls are disabled, and stuck to 'on'.
I often also have issues with the 'Installing to device' step while development my apps, where a reboot of the iPad is required. My guess is that it gets stuck/confused how it is supposed to deploy and my network setup is a bit complicated due to VPN's, tight WiFi security etc.
Unpairing the device doesn't help with resetting this setting. After unpairing the top-right header (with the Take Screenshot controls etc...) even still shows the details of the unpaired device.
Anyone else has experienced this or know a solution.
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Post
Replies
Boosts
Views
Activity
Developing along, no problems - and then suddenly:
Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.G47wHn/extracted/Payload/Dvn8.app : 0xe8008001 (An unknown error has occurred.)
Verify that the Developer App certificate for your account is trusted on your device. Open Settings on the device and navigate to General -> VPN & Device Management, then select your Developer App certificate to trust it.
—> On my Mac, there is no /var/installd directory.
—> On my device, there is no Developer App certificate in Settings -> General -> VPN & Device Management.
I have verified on developer.apple.com under Certificates, Identifiers & Profiles that my device‘s Device ID (UUID) as listed.
I have NO problem building & installing this app to my iPad, nor any problems installing other of my apps to this iPhone - it’s just this app on the phone that’s messed up.
I’ve restarted everything multiple times. I’ve cleared out both
/Users/me/Library/Developer/Xcode/DerivedData/ as well as
/Users/me/Library/MobileDevice/Provisioning Profiles/
I’ve turned off & back on Settings -> Privacy & Security -> Developer Mode
using
macOS Version 14.0 (Build 23A5337a)
Xcode 15.0 (22005) (Build 15A5229m)
Please help! I’m 100% blocked from releasing a new version of our app, which is 100% ready to upload!
Hi,
In XCode organizer, under reports section, Crashes info shows fine with call stacks but Disk writes, Energy and Hang reports sections are broken recently. When I try to access any of these sections it says "The operation couldn't be completed. ((extension in DVT Products):....[Attached error screenshot]"
How to fix this error and get the reports under Disk writes, Energy and Hang reports section?
Regards,
Eshwar
I am facing an Issue when trying to install an app using xcrun devicectl device install app command.
Command used
xcrun devicectl device install app /tmp/avinash/Payload/Sample iOS.app --device <deviceid>
Error thrown
code-block15:27:24 Acquired tunnel connection to device.
15:27:24 Enabling developer disk image services.
15:27:24 Acquired usage assertion.
ERROR: Failed to install the app on the device. (com.apple.dt.CoreDeviceError error 3002.)
NSURL = file:///tmp/avinash/Payload/Sample%20iOS.app/
--------------------------------------------------------------------------------
ERROR: The item at Sample iOS.app is not a valid bundle. (com.apple.dt.CoreDeviceError error 3000.)
NSURL = file:///tmp/avinash/Payload/Sample%20iOS.app/
NSLocalizedFailureReason = Failed to get the identifier for the app bundle.
Temporary fix
Rebooting the host machine fixes the issue but it reappears after some time.
Related system log generated during app installation
kernel: (Sandbox) /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/XPCServices/CoreDeviceService.xpc/Contents/MacOS/CoreDeviceService exhausted sandbox memory capacity; may be leaking extensions
kernel: (Sandbox) Sandbox: CoreDeviceService(8658) deny(1) file-read-data /tmp/avinash/Payload/Sample iOS.app
Another potential temporary solution can be: releasing the sandbox memory.
How this can be achieved? How can be sandbox memory cleared?
What can be the permanent solution for this issue?
I tried clearing derivedData folder but didn't help.
In stringsdict it was possible to define a format separately from the translation so you could do something like "n_days" which you could pass in an integer and it would return you only "Day" or "Days" without the actual value in it. And it's work great.
But now with the strings catalog it seems like the format specifier HAS to be in the value, otherwise it's not recognized. Is there now no way to pluralize anything without having the actual value inside the translation?
Cannot infer format specifier for string group because no numerical specifiers were found (en: %d.n_hours)
Hi, I get anytime crash on the Settings app for iPhone 15 Pro and iPhone 15 Pro Max on Xcode 15 RC.
Translated Report (Full Report Below)
Incident Identifier: DE1BE6D0-4367-4203-A339-1AE20D50218A
CrashReporter Key: 1A043114-8ED1-1A39-B80C-A3825853E7D7
Hardware Model: MacBookPro18,2
Process: Preferences [80787]
Path: /Library/Developer/CoreSimulator/Volumes/iOS_21A328/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/Applications/Preferences.app/Preferences
Identifier: com.apple.Preferences
Version: 1 (1246.2)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd_sim [80318]
Coalition: com.apple.CoreSimulator.SimDevice.A989B9A5-9C97-40A3-9082-998713FB7EAB [9443]
Responsible Process: SimulatorTrampoline [51087]
Date/Time: 2023-09-13 16:09:55.5678 +0300
Launch Time: 2023-09-13 16:09:53.8486 +0300
OS Version: macOS 13.5.2 (22G91)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Preferences [80787]
Triggered by Thread: 10
Last Exception Backtrace:
0 CoreFoundation 0x18046589c __exceptionPreprocess + 160
1 libobjc.A.dylib 0x18005c09c objc_exception_throw + 56
2 CoreFoundation 0x180350b68 -[__NSPlaceholderArray initWithObjects:count:] + 552
3 CoreFoundation 0x1804508b8 +[NSArray arrayWithObjects:count:] + 36
4 ActionButtonSelector 0x127b6c5ac ABLoadDeviceSceneModel + 2280
5 ActionButtonSelector 0x127b677e4 -[ABDeviceSceneResourceLoader _loadResources] + 68
6 ActionButtonSelector 0x127b673f0 __59-[ABDeviceSceneResourceLoader loadResourcesWithCompletion:]_block_invoke + 40
7 libdispatch.dylib 0x1801424f4 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x180143d3c _dispatch_client_callout + 16
9 libdispatch.dylib 0x18014be3c _dispatch_lane_serial_drain + 960
10 libdispatch.dylib 0x18014c9b4 _dispatch_lane_invoke + 388
11 libdispatch.dylib 0x180157d40 _dispatch_root_queue_drain_deferred_wlh + 276
12 libdispatch.dylib 0x18015738c _dispatch_workloop_worker_thread + 448
13 libsystem_pthread.dylib 0x1062e3878 _pthread_wqthread + 284
14 libsystem_pthread.dylib 0x1062e263c start_wqthread + 8
Thread 0:: Dispatch queue: com.apple.shortcuts.VCVoiceShortcutClient.InternalState
0 libsystem_kernel.dylib 0x1063c91d0 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1063da298 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x1063d13d8 mach_msg_overwrite + 540
3 libsystem_kernel.dylib 0x1063c9540 mach_msg + 20
4 libxpc.dylib 0x1800a9b2c _xpc_pipe_mach_msg + 52
5 libxpc.dylib 0x1800a9028 _xpc_pipe_routine + 396
6 libxpc.dylib 0x180089e60 _xpc_interface_routine + 168
7 libxpc.dylib 0x18008a4a0 _xpc_look_up_endpoint + 264
8 libxpc.dylib 0x1800923e4 _xpc_connection_bootstrap_look_up_slow + 296
9 libxpc.dylib 0x180095174 _xpc_connection_init + 724
10 libxpc.dylib 0x180092a8c _xpc_connection_activate_if_needed + 300
11 libxpc.dylib 0x180093cd4 xpc_connection_resume + 92
12 VoiceShortcutClient 0x196b0ebf8 -[VCVoiceShortcutClient unsafeSetupXPCConnection] + 308
13 VoiceShortcutClient 0x196b10554 __81-[VCVoiceShortcutClient asynchronousRemoteDataStoreWithErrorHandler:synchronous:]_block_invoke + 200
14 libdispatch.dylib 0x180143d3c _dispatch_client_callout + 16
15 libdispatch.dylib 0x180153dc8 dispatch_sync_invoke_and_complete_recurse + 96
16 libdispatch.dylib 0x180153778 dispatch_sync_f_slow + 188
17 VoiceShortcutClient 0x196b0e584 -[VCVoiceShortcutClient asynchronousRemoteDataStoreWithErrorHandler:synchronous:] + 156
18 VoiceShortcutClient 0x196addb44 -[VCVoiceShortcutClient(Staccato) fetchAvailableStaccatoActions:] + 92
19 ActionButtonConfigurationUI 0x10549c2d0 0x105488000 + 82640
20 Combine 0x19e00dbd8 specialized Future.init(:) + 224
21 Combine 0x19e00b4a0 Future.init(:) + 20
22 ActionButtonConfigurationUI 0x1054a295c 0x105488000 + 108892
23 ActionButtonConfigurationUI 0x10549837c 0x105488000 + 66428
24 PreferencesUI 0x104bd7c3c 0x104bb0000 + 162876
25 PreferencesUI 0x104bc5b54 -[PSUIPrefsListController tableView:cellForRowAtIndexPath:] + 260
26 UIKitCore 0x114e3dfc4 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1376
27 UIKitCore 0x114e11134 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 560
28 UIKitCore 0x114e1174c -[UITableView _updateVisibleCellsNow:] + 1112
29 UIKitCore 0x114e2b53c -[UITableView layoutSubviews] + 144
30 UIKitCore 0x115126b1c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1492
31 QuartzCore 0x1884d3dd4 CA::Layer::layout_if_needed(CA::Transaction*) + 440
32 QuartzCore 0x1884deb30 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 124
33 QuartzCore 0x1883fa3bc CA::Context::commit_transaction(CA::Transaction*, double, double*) + 460
34 QuartzCore 0x188429bf0 CA::Transaction::commit() + 652
35 UIKitCore 0x114c2c504 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 32
36 CoreFoundation 0x1803c6464 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 20
37 CoreFoundation 0x1803c5bac __CFRunLoopDoBlocks + 352
38 CoreFoundation 0x1803c0450 __CFRunLoopRun + 788
39 CoreFoundation 0x1803bfd28 CFRunLoopRunSpecific + 572
40 GraphicsServices 0x18986ebc0 GSEventRunModal + 160
41 UIKitCore 0x114c13fdc -[UIApplication _run] + 868
Got a little app I am trying to build before launch, I've never built a watch only app, and it requires iOS 17 so I'm a bit stuck. When creating a watch only target, it seems that the template is broken. According to this: https://developer.apple.com/documentation/watchos-apps/creating-independent-watchos-apps/
There should be a blank iOS app target, that contains the watch app. The problem is once I go to build and upload the app to test flight, I get a bundle that Xcode has no clue what to do with (Because it only contains the watchkit app, and no containing xcode app.)
I'm guessing my only hope might be to create a watch only app targetted at iOS 9 with Xcode 14, then migrating to Xcode 15? I'm trying that now, but I guess I have another radar to file unless I'm missing something.
Info.plist Error Unable to process Info.plist at path /Users/baker/Library/Developer/Xcode/DerivedData/APPName-daengedhckbpnxbtvfduphlsehjz/Build/Products/Debug-iphoneos/MyAPP.app/Info.plist
I've recently installed Xcode Version 15.0 (15A240d) and when I set a breakpoint it doesn't stop on the line of code where the breakpoint is set. Rather, it opens another window with the hex code. If I press F6 it doesn't highlight the next line of code, but I can see that it moved because the variables are changing.
Is this a known bug? I have tried all the usual stuff like deleting derived data and restarting everything. I have even deleted com.apple.dt.Xcode directory in ~/Library/Caches. to set things back to the defaults. The only thing I haven't done yet is reinstall Xcode.
Unfortunately, this is very bad timing as I need to get my app finished for the iOS17 and WatchOS 10 release.
got crash when use xcode15 + iOS16, works fine one xcode15 + iOS17.
example code:
let httpsHost1 = NWEndpoint.Host("example.com") //crash
let httpsHost2 = NWEndpoint.hostPort(host: "example.com", port: NWEndpoint.Port(rawValue: 80)!) // crash too
why xcode cant compatible that?anyone helpppppppppp? : (
Hi,
I wanted to compile a project (For the compilation I used gcc-13 from home-brew) and I got the following error from the linker:
0 0x100e0f648 __assert_rtn + 72
1 0x100d43fac ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc const*&, long long&) const + 1204
2 0x100d59924 ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 15164
3 0x100d66e30 ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 420
4 0x1a95f0440 _dispatch_client_callout2 + 20
5 0x1a9603f1c _dispatch_apply_invoke + 224
6 0x1a95f0400 _dispatch_client_callout + 20
7 0x1a9601fb8 _dispatch_root_queue_drain + 684
8 0x1a96026c0 _dispatch_worker_thread2 + 164
9 0x1a979c038 _pthread_wqthread + 228
ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336.
collect2: error: ld returned 1 exit status
I am using a MacBook Pro M2 (Ventura 13.5.2 (22G91)) and the CommandLineTools version 15.0. I have read through some earlier posts about linker issues, which were solved by downgrading Xcode. After downgrading to 14.3.0 I was able to compile the code. Did anyone run into the same Problem? If so, is there a better solution for this?
Best regards
Hi guys, I've just installed the newest Xcode Version 15.0 (15A240d) and I can see that the Reality Composer is missing. It is not appearing in Xcode -> Open Developer Tool menu. Where/how I can find it? My old reality compose project now opens like a text file, and I have no option to open it in Reality Composer like it was in old Xcode.
I'm kinda stuck with my project, so any help could be useful.
Thanks,
J
When using xcodebuild to build my project, I specify a destination of
generic/platform=macOS
Xcode informs me that my destination is ambiguous as there is a generic destination for Mac Catalyst.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, name:Any Mac }
{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
At the end of the day, that's OK. It's selected the proper destination by happenstance.
But is there a way t change my destination specifier so that it can zero in on the MacOS destination that is not the MacCatalyst variant?
I've tried using "generic/platform=macOS,variant=". But that does not work.
Hello,
I've been using Xcode 4.3.1 and 15 Beta with my iOS 16.5 and 16.6.1 and no issues occurred.
Yesterday, I got a prompt of Xcode 15.0 Release and I put my Xcode on upgrade, at the same time I noticed that iOS also says that 17.0 is available. I upgraded both.
Now my device is not detected on Xcode, it keeps saying Waiting to connect to XXXX iPhone.
Also says, Previous preparation error: The tunnel connection failed while the system tried to connect to the device. I am using the same WIFI on MAC that i am using on Iphone.
A temporary not so much feasible workaround that i found is:
Unpair phone
Disable WIFI put phone on LTE/Mobile Data
Connect via usb cable and MAC detects it and connects to it
But now it only works in Xcode and Android studio installs app but can't run/debug it giving error that run it in Xcode.
As soon as wifi is on, phone gets dc from Xcode as well, (even if USB is connected)
Important*: Connect via network checkbox is gryed out and is checked forever.
What i tried till now:
Install all types of Xcode, 14.3.1 (says missing string install an updated version of xcode, but it detects device in all modes just gives this error and doesn't let build anything)
Reset Xcode to default/ Delete dereived data/Delete all folders that are crucial in that ~/Library/.../xcode folder i.e. Archieves/products/device suport
Netstat/kill usb/kill usbmuxd and what not
Put phone on hotspot, connect mac on hotspot try debug (fails)
So, tried everything available on internet and yet still my real device on iOS 17 is not ready so that i can debug in Android studio, while in Xcode on same wifi even with USB cable it doesn't work.
Any suggestions??
Hi.
I created a new swift macro package and wan't to start using the template which contains the #stringify macro out of the box without any changes.
The package itself runs incl. tests
But now I added the Package to a dummy iOS app project / workspace and I can't compile if im using this code let (_, _) = #stringify(a + b) + package import
Compile error:
External macro implementation type '***.StringifyMacro' could not be found for macro 'stringify'
I am using Xcode 15 and macOS 13.5.2
Restart Xcode, Clean etc doesn't help.
Can anyone help my ? Thanks :)
In Xcode 15, the checkbox for "Connect via network" is grayed out and cannot be unchecked. However, I would like to disable it because debugging via network is too slow for me.
Does anyone have an idea how I can disable this?
When building from command line this is printed for every single swift file being compiled
No, I don't appreciate 9000+ lines of spam when building from command line.
I've already reported the issue, but I'm making this posts anyway so others searching for the error will see this.
Xcode 15.1 when?
xcodebuild[56491:10396296] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103
Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists.
Function: createItemModels(for:itemModelSource:)
Thread: <_NSMainThread: 0x600002d10240>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
Hi! Help me, please.
I've installed Xcode 15 on MacOS Ventura 13.5.1 and have an issue, that I couldn't solve in a week: Xcode 15 doesn't recognize iPhone 13 Pro Max with iOS 17 - It doesn't show it at all.
What I've found now:
Xcode 14.3.1 recognizes the same iphone.
Xcode 15 beta has the same issue.
Xcode 15 recognizes other devices with 16.4 (iPhone 13 and iPad 8 Gen).
Updated the iphone to 17.0.1, same thing.
Tried Xcode reinstallation, turning on/off developer mode, unpairing, connecting with other USB cables.
Xcode: Version 15.0 (15A240d)
iPhone: iPhone 13 Pro Max with iOS 17.0.1
MacOS: Ventura 13.5.1 (22G90)
Xcode 14.3.1:
Xcode 15 at the same time:
Since I started using XCode Cloud, my builds regularly failed due to networking issues, which is really just embarrassing. How can a company like Apple, which praises itself with a high-quality standard, ***** this up so badly?
However, since two months ago literally every single build started failing for "connection reset by peer"
My ci_post_clone.sh runs this code and surprisingly enough that step succeeds most of the time.
#!/usr/bin/env bash
set -e
brew install cocoapods
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 20.0.1-tem
# cd into actual project root
cd ../../../
./gradlew app:ios:podinstall
However in the archive task the errors start rolling in
2023-08-30T22:27:24.108163427Z Could not resolve com.google.devtools.ksp:symbol-processing-api:1.9.0-1.0.11.
2023-08-30T22:27:24.108168428Z > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108173676Z > Could not GET 'https://repo.maven.apache.org/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108181057Z > Got socket exception during request. It might be caused by SSL misconfiguration
2023-08-30T22:27:24.108186894Z > Connection reset by peer
2023-08-30T22:27:24.108206745Z Could not resolve com.google.devtools.ksp:symbol-processing-api:1.9.0-1.0.11.
2023-08-30T22:27:24.108213605Z >
2023-08-30T22:27:24.108219500Z Could not get resource 'https://dl.google.com/dl/android/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108234940Z >
2023-08-30T22:27:24.108239423Z Could not GET 'https://dl.google.com/dl/android/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108662595Z Got socket exception during request. It might be caused by SSL misconfiguration
2023-08-30T22:27:24.108669328Z
2023-08-30T22:27:24.108716268Z
2023-08-30T22:27:24.108725059Z >
2023-08-30T22:27:24.108732903Z Connection reset by peer
2023-08-30T22:27:24.108740596Z
2023-08-30T22:27:24.108748688Z >
2023-08-30T22:27:24.108759002Z Could not resolve com.google.devtools.ksp:symbol-processing-api:1.9.0-1.0.11.
2023-08-30T22:27:24.108820147Z >
2023-08-30T22:27:24.108829571Z Could not get resource 'https://maven.pkg.jetbrains.space/public/p/compose/dev/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108837310Z >
2023-08-30T22:27:24.108844471Z Could not GET 'https://maven.pkg.jetbrains.space/public/p/compose/dev/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108860417Z
2023-08-30T22:27:24.108866956Z > Got socket exception during request. It might be caused by SSL misconfiguration
So because it is highly unlikely or actually statistically impossible that repo.maven.apache.org, dl.google.com and maven.pkg.jetbrains.space all always decide to crash simultaneously whenever I run an XCode build for the past 3 months, this has to be an issue on their part. Did they suddenly stop allowing internet connections in the archive step?
Apple Support was just useless and aksed for irrelevant and impossible information like:
my browser
my ipa file (of a failing build?!)
Does anyone have any idea what causes this or has contacts to someone at apple which can fix this?
SwiftUI preview hangs on "Preparing iPhone Simulator for Previews". Also simulator hangs when trying to build and run. This occurred after I installed iOS 17 simulator. I tried reverting back to an iOS 16 version of the simulator, but haven't figured out how to do that. Build and run to an iPhone device works fine. Any ideas would be appreciated. Thanks.