Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,650 results found

Post

Replies

Boosts

Views

Activity

combine two id<MTLTexture>
Hi, Perhaps the textures are too complicated for something like this to be done simply, but... I have two depth textures, same size, same pixel format, each created with a separate rendering pass. One to calculate shadows created by stationary objects, the other to calculate shadows created by moving objects. Is there an easy way to combine the two textures, so that I end up with a single texture that I can use sample_compare inside a shader? Or is the best way to pass both textures to the shader and do samplecompare twice? Thanks
0
0
676
Jul ’20
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.7k
Sep ’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
Reply to Does Swift Playgrounds for iPad exist?
From the iOS 10 b2 Release Notes:Swift Playgrounds Swift Playgrounds is a brand new app designed to help people learn to code with Swift 3. It offers downloadable content, including Learn to Code Part 1—which teaches the fundamentals of coding in Swift—and additional challenges you can explore. You can also experiment on your own by creating playgrounds based on the templates, create a blank playground, or open playgrounds created in Xcode.Swift Playgrounds is included with iOS 10 beta 2 and up.Swift Playgrounds beta 2 contains Learn to Code Part 1. Learn to Code Part 2 is coming in later releases.Connect to Wi-Fi to download the Learn to Code and Challenge content. Cellular downloads are not supported.
Jul ’16
Apple Configurator 2
I am able to update a device to iOS 9.0 using Apple Configurator 2. I can prepare a device and get it registered in my MDM (JAMF Casper). I can add an app to the device (iPad Air).However, when I try to launch any app added to the device I get a popup to log in to the iTunes store. If I hit cancel then the entire app closes. I can't get any apps to launch and run.Anyone else having these issues?I am running the released iOS 9, Apple Configurator 2 Beta 5 and OS 10.11 Beta (15A279b).Thanks!
1
0
1.9k
Sep ’15
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
800
Jun ’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.8k
Mar ’22
Reply to Problem when using "if" statement in SwiftUI
the following code fails to compileYou should better show the error message, and more details to reproduce the issue.As you found, a slight change make your code compile successfully, so some this-code-compiles examples would not solve your problem.As far as I tried, this code compiles. var body: some View { VStack(alignment: .leading) { ForEach(0 ..< self.halfNumber) { index in BookItemGroupHorizontal(items: [self.items[index * 2], self.items[index * 2 + 1]] as [BudgetBook]) } if items.count % 2 == 1 { Text(it) } } }But I do not know what's happening inside the Swift compiler and cannot be sure if this solves your issue or not.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’20
Waiting for Review for over 2 weeks
Hi. I submitted my very first app for review on July 22. After waiting nearly two weeks, I received the 4.3a Spam rejection notice on Aug 4. I cleaned up some of my shared framework code, changed some of my images and explained that no app in the marketplace currently does what I'm trying to do. I submitted my appeal via reply on the review on August 5 and I'm still waiting for review. It's been over two weeks and I don't have any indication that anyone is actually looking at this. Most comments talk about the long wait times but it's been over 2 weeks and I don't know what to do next. Any help would be awesome. Thanks.
5
0
327
Aug ’26
Learn to code
Hello Developers, I started learning how to code using Swift PlayGround on my iPad Pro. But in some levels , you know, there are no hints to anything to help you solve problems. Do you have any idea on how to learn coding from the beginning cuz I feel lost sometimes and I’m in (learn to code 2) level and I didn’t see how to take advantage of using what I’ve learned on an app, I’m not planning to develop a Game, although coding looks like a game to me ☺️, so can you help me guys on how and where to learn good, and what do you think of the Swift Playground as a start or is there a better way. !! thanks
1
0
676
Feb ’22
combine two id<MTLTexture>
Hi, Perhaps the textures are too complicated for something like this to be done simply, but... I have two depth textures, same size, same pixel format, each created with a separate rendering pass. One to calculate shadows created by stationary objects, the other to calculate shadows created by moving objects. Is there an easy way to combine the two textures, so that I end up with a single texture that I can use sample_compare inside a shader? Or is the best way to pass both textures to the shader and do samplecompare twice? Thanks
Replies
0
Boosts
0
Views
676
Activity
Jul ’20
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?
Replies
1
Boosts
0
Views
1.7k
Activity
Sep ’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:
Replies
Boosts
Views
Activity
Dec ’18
Reply to Does Swift Playgrounds for iPad exist?
From the iOS 10 b2 Release Notes:Swift Playgrounds Swift Playgrounds is a brand new app designed to help people learn to code with Swift 3. It offers downloadable content, including Learn to Code Part 1—which teaches the fundamentals of coding in Swift—and additional challenges you can explore. You can also experiment on your own by creating playgrounds based on the templates, create a blank playground, or open playgrounds created in Xcode.Swift Playgrounds is included with iOS 10 beta 2 and up.Swift Playgrounds beta 2 contains Learn to Code Part 1. Learn to Code Part 2 is coming in later releases.Connect to Wi-Fi to download the Learn to Code and Challenge content. Cellular downloads are not supported.
Replies
Boosts
Views
Activity
Jul ’16
Apple Configurator 2
I am able to update a device to iOS 9.0 using Apple Configurator 2. I can prepare a device and get it registered in my MDM (JAMF Casper). I can add an app to the device (iPad Air).However, when I try to launch any app added to the device I get a popup to log in to the iTunes store. If I hit cancel then the entire app closes. I can't get any apps to launch and run.Anyone else having these issues?I am running the released iOS 9, Apple Configurator 2 Beta 5 and OS 10.11 Beta (15A279b).Thanks!
Replies
1
Boosts
0
Views
1.9k
Activity
Sep ’15
10.13.4 beta 2
Whi is Imessages option greys out? i signed out and back in, I also signed out of Icloud and back in and it redownlaoded all my data? now what?broken in ebta 2?
Replies
8
Boosts
0
Views
1.5k
Activity
Feb ’18
How to merge two app?
Hi there,is it possible to transfer app within same account? like merge 2 apps? and the existing users of both app will get only one update as in result?
Replies
0
Boosts
0
Views
431
Activity
Dec ’16
How to test CKShare between two users
I have only one phone and Apple ID. I want to test CKShare between two users. Do I need two phones? Do I need two different Apple IDs? I read that two Apple IDs cannot share same phone. Can someone tell me what is the best way to test CKShare between two users on my development environment
Replies
2
Boosts
0
Views
1.1k
Activity
May ’20
Reply to CLGeocoder not working?
I too cannot get the geocoder to work on wtachOS 2. After calling, it eventually after a minute returns error code 2.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’15
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.
Replies
2
Boosts
0
Views
800
Activity
Jun ’15
Multitasking on iPad 2?
Does anyone know if multitasking/split view etc works on iPad 2?? I have tried and I'm not exactly sure if there is some setting needs to be changed but I can't seem to get it or work. Thanks.
Replies
1
Boosts
0
Views
389
Activity
Jun ’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())
Replies
2
Boosts
0
Views
3.8k
Activity
Mar ’22
Reply to Problem when using "if" statement in SwiftUI
the following code fails to compileYou should better show the error message, and more details to reproduce the issue.As you found, a slight change make your code compile successfully, so some this-code-compiles examples would not solve your problem.As far as I tried, this code compiles. var body: some View { VStack(alignment: .leading) { ForEach(0 ..< self.halfNumber) { index in BookItemGroupHorizontal(items: [self.items[index * 2], self.items[index * 2 + 1]] as [BudgetBook]) } if items.count % 2 == 1 { Text(it) } } }But I do not know what's happening inside the Swift compiler and cannot be sure if this solves your issue or not.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’20
Waiting for Review for over 2 weeks
Hi. I submitted my very first app for review on July 22. After waiting nearly two weeks, I received the 4.3a Spam rejection notice on Aug 4. I cleaned up some of my shared framework code, changed some of my images and explained that no app in the marketplace currently does what I'm trying to do. I submitted my appeal via reply on the review on August 5 and I'm still waiting for review. It's been over two weeks and I don't have any indication that anyone is actually looking at this. Most comments talk about the long wait times but it's been over 2 weeks and I don't know what to do next. Any help would be awesome. Thanks.
Replies
5
Boosts
0
Views
327
Activity
Aug ’26
Learn to code
Hello Developers, I started learning how to code using Swift PlayGround on my iPad Pro. But in some levels , you know, there are no hints to anything to help you solve problems. Do you have any idea on how to learn coding from the beginning cuz I feel lost sometimes and I’m in (learn to code 2) level and I didn’t see how to take advantage of using what I’ve learned on an app, I’m not planning to develop a Game, although coding looks like a game to me ☺️, so can you help me guys on how and where to learn good, and what do you think of the Swift Playground as a start or is there a better way. !! thanks
Replies
1
Boosts
0
Views
676
Activity
Feb ’22