I ran out of disk space and I think I've come to the point that I need to delete files used by Xcode. Can I delete Simulator altogether? It doesn't look like I can run the latest Xcode without iOS 18 installed with it on my Mac Pro. Is there any way I can exclude iOS 18 support using the current Xcode? Would it be a good option to uninstall the latest Xcode and use a previous version of Xcode instead, since I'm not developing for iOS 18? Since I've been working on only macOS apps, is it possible for me to delete anything that has to do with developing for iOS?
Post
Replies
Boosts
Views
Activity
Is there a way for my app to know that a phone number has just been messaged to or a call to 911 just started? Or SOS has just been executed by the user?
I have been getting these error messages in debug window in Xcode:
2023-06-06 07:46:15.412684-0500 Courier[8456:442818] [LayoutConstraints] Unsupported layout off the main thread for _UIModernBarButton with nearest ancestor view controller, UINavigationController
2023-06-06 07:46:15.413268-0500 Courier[8456:442818] [Assert] -[UIImageView _invalidateImageLayouts] must be called on the main queue
2023-06-06 07:46:15.413730-0500 Courier[8456:442818] [Assert] -[UIImageView _layoutForImage:inSize:cachePerSize:forBaselineOffset:] must be called on the main queue
(lldb)
The messages come when my code crashes and gives this error message in a red ribbon in the editor window:
Thread 10: EXC_BREAKPOINT (code=1, subcode=0x10515fd44)
In the Debug navigator on the left pane of Xcode, it shows the code stopped at:
#0 0x000000010515fd44 in _dispatch_assert_queue_fail ()
This is what shows at the end in the editor window. At the very end is where the error message in the red ribbon shows:
0x10515fd10 <+68>: add x9, x9, #0xf2f ; "BUG IN CLIENT OF LIBDISPATCH: Assertion failed: "
0x10515fd14 <+72>: stp x9, x8, [sp]
0x10515fd18 <+76>: adrp x1, 65
0x10515fd1c <+80>: add x1, x1, #0xefa ; "%sBlock was %sexpected to execute on queue [%s (%p)]"
0x10515fd20 <+84>: sub x0, x29, #0x18
0x10515fd24 <+88>: bl 0x10519cfc8 ; symbol stub for: asprintf
0x10515fd28 <+92>: ldur x19, [x29, #-0x18]
0x10515fd2c <+96>: str x19, [sp]
0x10515fd30 <+100>: adrp x0, 65
0x10515fd34 <+104>: add x0, x0, #0xf65 ; "%s"
0x10515fd38 <+108>: bl 0x1051986b0 ; _dispatch_log
0x10515fd3c <+112>: adrp x8, 98
0x10515fd40 <+116>: str x19, [x8, #0x268]
-> 0x10515fd44 <+120>: brk #0x1
I have no idea which code is causing the error, so I don't even know what code to put in my question.
I created a symbolic breakpoint with 'LayoutConstraints' in the Symbol field. It is never tripped.
I get no purple warnings that says a line of code should not be in the main thread.
I have no idea where to go from here. I don't ind anything when I do a search in the internet that is narrowed down to address my error.
I am running the code on an iPhone 13 Pro Max device with iOS 16.5.
I am using Xcode 14.3 on a Mac Pro running Ventura 13.4
I want my app to allow the user to search for certain words in a video file and the transcript of that video. I found a Transcript class. I don't remember which Framework it is in. Would someone point me in the right direction? What Framework and Classes should I use.
How many CBService objects is a CBCharacteristic object allowed to belong to?
I got this SSML from w3. org. AVSpeechUtterance(ssmlRepresentation:) is not complying with the contour. It doesn't change hz.
<?xml version="1.0"?>
<speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis11/synthesis.xsd"
xml:lang="en-US">
<prosody contour="(0%,+20Hz) (10%,+30%) (40%,+10Hz)">
good morning
</prosody>
</speak>
override func viewDidLoad() {
super.viewDidLoad()
guard let localUtterance = AVSpeechUtterance(ssmlRepresentation: self.speechSML) else {
print("SML did not work.")
return
}
self.utterance = localUtterance
self.utterance.voice = self.voiceNoelle
}
self.synthesizer.speak(self.utterance)
Is there a way to get the list of contacts in a message or message chain in Messages app on iOS.
At one time when I looked for a way to do this there was no available way without jailbreaking. Has anything changed? Is there a way to do this now?
Please say there is a way to programmatically delete playlists in Apple Music in iOS? I'll take any possible way or any hints whatsoever.
Why am I getting an error message when I try to validate an archive that says, "No accounts with iTunes Connect access have been found for the team. iTunes Connect access is required for App Store distribution."?I have never gotten this error message before. What should I do?
I don't see any current posts about the warning that says "PosterBoard quit unexpectedly." on my Mac. Older posts say this is an error generated by Xcode Simulator. I tried one of those solutions but I still see this warning coming up. I am also not using Simulator. I'm using an actual device - an iPhone 13 Pro Max running iOS 16.6. When I click on Reopen in that alert box telling me that warning message, I get a warning in an alert box with a picture of the Finder icon on it, and it says "You can’t open the application “PosterBoard.app” because this application is not supported on this Mac.".
Anyone else have this problem and know what do do about it? Like fix it or get around it?
Why am I getting this error during code time in editor window of Xcode at every call to print function?
Use of 'print' refers to instance method rather than global function 'print(_:separator:terminator:)' in module 'Swift'
I used the Date class such as "currentTime = Date()", but I get a date that is off by 5 hours exactly. How do I get the current time? Is there a time zone setting I have to set?
The documentation for hightlightProperty(withKey:identifier:) describes the parameter "key" as the "Key of the property to highlight." I believe that refers to the CNKeyDescriptor, such as CNContactGivenNameKey, which can cast from a type CNKeyDescriptor to String.
The documentation for identifier is "the value to highlight". I believe an example of that would be "John" as the given name.
Am I correct about all this?
In any case, I'm not able to highlight an email property when I use CNContactEmailAddresses as the key, and an actual email address as the identifier. I have also tried using the identifier property of CNLabeledValue, which is how an email address is stored.
I can't find anything on the internet to explain this. I didn't even find a similar question, except my own question asking this exact same question about two months ago.
Anyone have any idea or a good answer for this?
Is there a way to show what properties are in a vCard shared with a user in context of the current CNContact the same way in ContactViewController that iOS finds through Siri?
How do I use Core Bluetooth in the simplest possible way to send a value of 0 to 1 from an iOS device to a bluetooth peripheral that does nothing but interpret the value sent to it as how strongly a vibrating component on the bluetooth peripheral should vibrate. A value of zero would mean the peripheral device doesn't vibrate at all, of course.
The bluetooth peripheral would be the bluetooth ***** of course, and the iOS device would be the bluetooth master. The ***** device doesn't need to send anything at all to the master iOS device, except to link to the master. I don't know if that would allow the ***** bluetooth device to be any less expensive or smaller or simpler.