Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,539 results found

Post

Replies

Boosts

Views

Activity

How can I include two apps in one bundle?
I have a client who has two existing ATV apps, which are distinct apps, but are fairly similar. Their Apple rep suggested that they package both apps together and add some bootstrap code to switch between the two. I'm not sure how to do the bundling. I think I know how to do the switching (inside main.m before return UIApplicaitonMain). I just don't know what I need to do to add the two app binaries under one package. I found some articles suggesting that I make each app into a Framework. However, that seems unnecesarily too complex.Any ideas?Thanks
0
0
333
Oct ’15
reverseGeocode - always error 2 - watchOS2
Hey all,Still having the same issue on watchOS 2 GM as I've had with every watchOS 2 beta.When calling reverseGeocode within my watchOS 2 extension with a valid location, the geoCoder returns with kCLErrorDomain error 2 every time.This occurs on the simulator using the Apple simulated location, as well as on my actual Apple Watch in Santa Monica, CA.My code is not calling reverseGeocode more than once, so I do not see how it could be an issue of calling the reverseGeocode too often.CLLocationManager is able to successfully pull the location, and other NSURL requests complete without issue from my watchOS 2 extension, so network access does not appear to be an issue.The watchOS 2 component of my app has been ready for weeks now with the exception of this reverseGeocoding failure.=There was another thread regarding this same problem a few weeks back, but that seems to be dead now.Has anyone else encountered this problem and found a solution?
1
0
1.6k
Sep ’15
Same content in 2 cards
Hello there! I'm trying to create something in SwiftUI, but there's a problem: I can't have 2 cards with the same content, does anyone know a way to have the same emojis in 2 separate cards? Here's my code: import PlaygroundSupport import SwiftUI struct ContentView: View { var emojis: [String] = [🐶, 🐱, 🐱, 🦊, 🦁, 🐝, 🐼, 🐷, 🐮] var body: some View { LazyVGrid(columns: [GridItem(), GridItem(), GridItem()]) { ForEach(emojis, id: .self, content: { emoji in emojiView(content: emoji) }) } } struct emojiView: View { var content: String = var body: some View { ZStack { RoundedRectangle(cornerRadius: 20) .frame(width: 90, height: 120) .foregroundColor(.yellow) Text(content).font(.largeTitle) } } } } PlaygroundPage.current.setLiveView(ContentView())
2
0
3.7k
Mar ’22
iPad Air 2 A1566- iOS 9 beta 2 - blue screen
I've tried several times.First was OTA from iOS 9 beta 1 to beta 2, failed.Then I installed the iOS 9 beta 2 firmware from iTunes, failed.Restored to iOS 8.3, then installed the iOS 9 beta 2 firmware - finishes the firmware update, reboots - blue screen (infinite reboot).Restored to iOS 8.3, then to iOS 8.4 beta 4, then installed the iOS 9 beta 2 firmware - it just hangs at the end of the firmware update.I used DFU mode to restore back each time it failed.
2
0
778
Jun ’15
Reply to Swift 4.2 code only runs once...
Hi All,I have cracked it.Simply delay code execution using the Dispatch framework. GDC framework.> DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(2)) {> runagain() //this runs my code in the main thread.> //this code will be executed only after 2 seconds have been passed , I will eventually make this longer because I dont need to poll sensor as often. > }
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’18
Sonama Beta 2
Sonoma Beta 2 isn't showing up in my updates its says up to date. Also when I try to turn the beta profile off it doesn't do anything it just stays in beta profile and checks for an update again. Has anyone else encountered this?
1
0
806
Jun ’23