Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,591 results found

Post

Replies

Boosts

Views

Activity

Two height constraints?
After I update the height of my view I get the following error message in the console: 2022-03-23 18:38:35.093236+0100 Moiree[10522:931302] [Layout] Unable to simultaneously satisfy constraints: ( , ) Will attempt to recover by breaking constraint How can there be two different height constraints? I set the height with self.heightAnchor.constraint(equalToConstant: newValue) Shouldn't that just update the height constraint that is already there? Thanks and regards, Sebastian
1
0
570
Mar ’22
2 tableviews in viewcontroller
I have 2 tableviews with the datasource and delegates in a view controller and the console prints the results, but when the simulator beggin the tables are emptyclass firs: UIViewController, UITableViewDataSource, UITableViewDelegate, MyCustomCellDelegator { @IBOutlet weak var tablarecibido: UITableView! @IBOutlet weak var tablaenviado: UITableView! let appdelegate = UIApplication.shared.delegate as! AppDelegate var resultsenviadas: [Notificacionesenviadas] = [] var resultsrecibidas: [Notificaciones_entity] = [] var statusr = var emisorr = var nombrer = let cellIdentifier = cellrecibido let cellenviado = cellenviado override func viewDidLoad() { super.viewDidLoad() let savemyprofile = SaveMyProfile() uid = savemyprofile.getUidSesion() self.getNotificacionesRecibidas() self.getNotificacionesEnviadas() self.addNotificaciones() self.tablarecibido.dataSource = self self.tablarecibido.delegate = self self.tablarecibido.register(cellpersonalizada.self, forCellReuseIdentifier: cellrecibido) self.tablaenv
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
546
Feb ’17
Predictive Code Completion
In Xcode16Beta4, it contains Predictive Code Completion, and Predictive Code Completion is also with other SDKs in the page opened by Xcode for the first time. Waiting for download. However, I want to know: 1. What is Predictive Code Completion? 2. I didn't download Predictive Code Completion on the SDK download page when I first opened Xcode. Where should I download it later?
1
0
1.1k
Jul ’24
Getting two commands from control center
Hi,It seems that when I press next on control center when playing something, my code gets called on twice instead of once, using MPRemoteCommandCenter.The two calls:1. nextTrackCommand2. seekForwardCommandBoth functions are enabled, but it doesn't make sense that both get called upon tapping the next button once.I've linked bellow to an example project that demonstrates this issue.https://github.com/gerbil802/MPRemoteCommandCenterProblem
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
987
Sep ’18
Swift 2 compatibility
Will Swift 2 be keeping iOS7+, OS X 10.9+ compatibility as Swift 1 or dropping any of the older versions? I expect the former but didn't see it explicitly anywhere. Just to avoid surprises.I assume it is still iOS 8+ for including dynamic libraries/frameworks in release product.The above question is for actual release later in App Store not just development environment which as we know can be different (wider or narrower) than what is supported for release.Can someone from Swift team comment/confirm?
0
0
365
Jun ’15
Bluetooth CBPeripheralManager has two identical service
I user the code [_peripheralManager stopAdvertising]; [_peripheralManager removeAllServices]; .................................................................... _service = [[CBMutableService alloc]initWithType:[CBUUID UUIDWithString:KServiceUUID] primary:YES]; [_service setCharacteristics:@[readwriteCharacteristic, notiyCharacteristic]]; [_peripheralManager addService:_service]; [_peripheralManager startAdvertising:@{ CBAdvertisementDataServiceUUIDsKey :@[[CBUUID UUIDWithString:advId]], CBAdvertisementDataLocalNameKey : KLocalName, }]; sometimes has has two identical service One of them cannot work, _peripheralManager removeService does not work why? How do I delete that that can t work? thanks
0
0
370
Aug ’22
Big Sur beta 2
Noticed that beta 2 is out, but my DTK iMac is not picking up an update. Is that: (a) because I need to install provisioning profile and then download from developer.apple.com (at least initially) as per normal betas or (b) because beta 2 isn't available to Apple Silicon yet, and I just be patient and wait for an update to appear? Regards, D.
1
0
591
Jul ’20
How do you convert and audio file from two (2) channels (stereo) to one channel (1)?
Currently, I'm recording audio on the Apple Watch using the presentAudioRecorderController and sending it to the corresponding iPhone app.The audio format by default seems to be recorded on the Apple Watch using two channels and there doesn't seem to be a way to change that.For various reasons, I need the audio format to be only one channel. I was hoping there would be something on iOS to convert the audio file from stereo (two channels) to mono (one channel)Right now, I'm investigating if this is possible using AVAudioEngine and other various related classes. I'm not sure if it's possible and it seems very complicated at the moment.
3
0
2.6k
Feb ’17
Keychain sharing and watchos 2
I am using Xcode 7.0 (7A220), targeting iOS 9.0 and watchOS 2.0.I haven't gotten keychain sharing to work in a watchOS 2 app of my own, but it works in this example project, which is part of my question.There is a good talk from NatashaTheRobot (here) where she goes over keychain sharing with watchOS.(Working code from github here), see for yourself that her iOS app and watch app are able to share via keychain in the simulator.Here's what I have done to her project and it still works:Removed the access group string from the KeychainItemWrapper init method. This makes sense because the simulator isn't code signed and the access group gets deleted in KeychainItemWrapper initWithIdentifier: (checkout the comment in initWithIdentifier:)Removed the identifier string from KeychainItemWrapper initWithIdentifier in both view controllersRemoved the keychain-access-groups key from both entitlements that specifies a keychain access group keyYou can remove these three things and keychain sharin
0
0
964
Sep ’15
Reply to background moving
i changed my code now my code is this var background = SKSpriteNode() var background2 = SKSpriteNode() override func didMove(to view: SKView) { background = SKSpriteNode(imageNamed: New_Background) background.position = CGPoint(x: 0, y:0) background.zPosition = -2 / background.size = CGSize(width:self.frame.size.width*2,height:self.frame.size.height*2) background2 = SKSpriteNode(imageNamed: New_Background) background2.position = CGPoint(x: 0, y:0) / background2.zPosition = -2 background2.size = CGSize(width:self.frame.size.width*2,height:self.frame.size.height*2) self.addChild(background) self.addChild(background2) self.addChild(background3) vitesse = SKAction.repeatForever(SKAction.move(by: CGVector(dx: -self.frame.size.width, dy: 0), duration: 2)) background.run(vitesse) background2.run(vitesse) } override func update(_ currentTime: TimeInterval) { / if background.position.x <= -self.frame.size.width { background.position.x
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Mar ’18
RECOLLECTING CODE FROM UPLOAD????
Hello All, I used to own an app named LOLIIPOP, and am in the process of transferring it to my new apple account. I am having two problems.... How do I transfer the source code and binary to my new apple account? My developers have an old code, so I need to send them the LAST code they uploaded to the App Store. How do I do that as well??? Please any help!!! Thanks, Mr. LM
1
0
96
Aug ’25