In the latest version of Xcode, breakpoints are not displaying correctly, making it difficult to track code behavior. Previously, Xcode allowed you to step through each function, showing clear execution steps and allowing interaction to debug effectively. However, now it only shows memory addresses without providing meaningful insights, limiting the ability to interact with or test the code as it's being developed. Is anyone else experiencing this issue, or does anyone know of a workaround?
Post
Replies
Boosts
Views
Activity
Hello Apple Developer Community,
I'm encountering an issue with my macOS application where I'm receiving the following error message:
Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.FxPlugTestXPC was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.FxPlugTestXPC was invalidated: failed at lookup with error 159 - Sandbox restriction.}
This error occurs when my application tries to establish a connection to an XPC service named com.FxPlugTestXPC. It appears to be related to a sandbox restriction, but I'm unsure how to resolve it.
I've checked the sandboxing entitlements and ensured that the necessary permissions are in place. However, the issue persists.
Has anyone encountered a similar error before? If so, could you please provide guidance on how to troubleshoot and resolve this issue?
Any help or insights would be greatly appreciated.
Thank you.
this is some photos about my entitlements :
I have a problem, my objects every time I save them are reflected in uitableview in a duplicate way, does anyone know how to solve it or if I have a problem in my code?
	 import CoreData
	 import Foundation
	class ViewController: UIViewController {
//MARK:= Outles
@IBOutlet var tableView: UITableView!
//MARK:= variables
var context = (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext
var items: [Entity]?
var duplicateName:String = ""
//MARK:= Overrides
override func viewDidLoad() {
		super.viewDidLoad()
		tableView.delegate = self
		tableView.dataSource = self
		
		
		fetchPeople()
		addPeople(context)
		print(" nombres: \(items?.count)")
		
}
override func viewWillAppear(_ animated: Bool) {
}
//MARK:= Core Data funcs
func fetchPeople(){
		do{
				self.items = try! context.fetch(Entity.fetchRequest())
				
				DispatchQueue.main.async {
						self.tableView.reloadData()
				}
				
		}catch let error as NSError{
				print("Tenemos este error \(error.debugDescription)")
		}
		
}
func addPeople(_ contexto: NSManagedObjectContext) {
		
		let usuario = Entity(context: contexto);
		usuario.nombre = "Valeria";
		usuario.edad = 25;
		usuario.eresHombre = false;
		usuario.origen = "Ensenada,B.C"
		usuario.dia = Date();
		do{
				try! contexto.save();
				
		}catch let error as NSError{
				print("tenemos este error en el guardado \(error.debugDescription)");
		}
		fetchPeople()
		
		
}
func deletDuplicates(_ contexto: NSManagedObjectContext){
		
		let fetchDuplicates = NSFetchRequest<NSFetchRequestResult>(entityName: "Persona")
	 //
			 //				do {
			//						items = try! (contexto.fetch(fetchDuplicates) as! [Entity])
			//				} catch let error as NSError {
	//						print("Tenemos este error en los duplicados\(error.code)")
			 //				}
		
	 let rediciendArray = items!.reduce(into: [:], { $0[$1,default:0] += 1})
		print("reduce \(rediciendArray)")
		let sorteandolos = rediciendArray.sorted(by: {$0.value > $1.value })
		print("sorted \(sorteandolos)")
		let map = sorteandolos.map({$0.key})
		
		print(" map : \(map)")
	}
} // End of class
I have tried to solve the error and I have investigated what it is for my array but the truth is that I have not had the solution no matter how much I look for it, if someone could help me it would be of great help.
Hi good morning community,
I have a really weird error , my project for some reason don't find my assets and told me that is an error in my bundle Resources.
if I delete my assets in the copy Bundle Resources the errors goes away, but my images don't look in my project.
the error that Xcode throws me is this :
CompileAssetCatalog /Users/jxr0721/Library/Developer/Xcode/DerivedData/ZabulonApp-cwdueaevkgvjznbmjsxbvmqosobm/Build/Products/Debug-iphonesimulator/ZabulonApp.app /Users/jxr0721/Desktop/Personal/ZabulonApp/ZabulonApp/Assets\ .xcassets /Users/jxr0721/Desktop/Personal/ZabulonApp/ZabulonApp/Preview\ Content/Preview\ Assets.xcassets (in target 'ZabulonApp' from project 'ZabulonApp')
cd /Users/jxr0721/Desktop/Personal/ZabulonApp
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/jxr0721/Library/Developer/Xcode/DerivedData/ZabulonApp-cwdueaevkgvjznbmjsxbvmqosobm/Build/Intermediates.noindex/ZabulonApp.build/Debug-iphonesimulator/ZabulonApp.build/assetcatalog_dependencies --output-partial-info-plist /Users/jxr0721/Library/Developer/Xcode/DerivedData/ZabulonApp-cwdueaevkgvjznbmjsxbvmqosobm/Build/Intermediates.noindex/ZabulonApp.build/Debug-iphonesimulator/ZabulonApp.build/assetcatalog_generated_info.plist --app-icon AppIcon --accent-color AccentColor --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPod9,1 --filter-for-device-os-version 15.0 --development-region en --target-device iphone --target-device ipad --minimum-deployment-target 14.0 --platform iphonesimulator --compile /Users/jxr0721/Library/Developer/Xcode/DerivedData/ZabulonApp-cwdueaevkgvjznbmjsxbvmqosobm/Build/Products/Debug-iphonesimulator/ZabulonApp.app /Users/jxr0721/Desktop/Personal/ZabulonApp/ZabulonApp/Assets\ .xcassets /Users/jxr0721/Desktop/Personal/ZabulonApp/ZabulonApp/Preview\ Content/Preview\ Assets.xcassets
2021-10-14 09:48:10.268 ibtoold[19324:122384] DEBUG: Added to environment: {
TMPDIR = "/var/folders/2x/4w3vtvq56v78kn9cr9hwrvg0p2yb9m/T/1B31541F-8ECD-4FA8-9EAF-861E8005F12C";
}
Command CompileAssetCatalog failed with a nonzero exit code.
I don't know what's going on , if anyone knows how to delete this erro I appreciate a lot !
Hi community,
Im trying to send some data between and android and iOS device with BLE, but I need to send some custom information on the side of iOS to android , I already try almost all the keys that the CBCentralManager provides , but I try to send some string with the key CBAdvertisementDataServiceDataKey but nothing happens,anyone to know how to send information in that key?
in advance I try to have that information without connection.
this is the function that I use to try to make that part that I explain before.
func peripheralManagerDidUpdateState(_ peripheral: CBPeripheralManager) {
if peripheral.state == .poweredOn{
let data = CBMutableCharacteristic(type: hardCodeUUID, properties: [.read], value: userName.data(using: .utf8), permissions: [.readable])
peripherialManager.startAdvertising([ CBAdvertisementDataLocalNameKey:"Jael2522",CBAdvertisementDataServiceDataKey:userName.data(using: .utf8),CBAdvertisementDataServiceDataKey:[CBUUID(string: "Jose")]])
let serialService = CBMutableService(type: hardCodeUUID, primary: true)
serialService.characteristics = [data]
peripherialManager.add(serialService)
}
}
Hi community,
I have a problem with an array of MKAnnotationViews that are customized, in which I want to display the information for each marker individually, such as its title or its description that contains that marker, I don't know if it opens any way to do it.
I leave my code below:
func setUpAllThePins(allLogos:[String],allLongitudesAndLatitudes:[CLLocationCoordinate2D],kmDouble:[Double],streets:[String],alcaldia:[String],calificacion:[Int],titulos:[String]){
imagenes = allLogos.compactMap{ link->UIImage? in
guard let url = URL(string: link) else {return nil}
guard let imageData = try? Data(contentsOf: url) else {return nil}
return UIImage(data: imageData)
}
let annotations = zip(allLongitudesAndLatitudes, imagenes)
.map { (coordinate, allLogos) -> myAnnotation in
let annotation = myAnnotation(title: "", subtitle: "", coordinate: coordinate, localImage: allLogos)
return annotation
}
if let oldArray = annotations as? [MKAnnotation]{
for i in oldArray{
mapView.addAnnotation(i)
}
}
}
Good evening fellow developers,
Can you tell me the best way to backend on iOS without hiring a service like firebase?
if it is good to learn phyton or something?