Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,591 results found

Post

Replies

Boosts

Views

Activity

Reply to SKAdImpression unknown 500 error
iOS 15.4 beta 5 Mar 2 12:54:05 TestApp(StoreKit)[752] : SKAdNetwork: Error in remote proxy while starting view-through impression: Error Domain=SKANErrorDomain Code=10 (null) Mar 2 12:54:07 TestApp(StoreKit)[752] : SKAdNetwork: Error in remote proxy while ending view-through impression: Error Domain=SKANErrorDomain Code=10 (null) Mar 2 12:54:24 TestApp(StoreKit)[752] : SKAdNetwork: Error in remote proxy while ending view-through impression: Error Domain=SKANErrorDomain Code=4 (null)
Topic: App & System Services SubTopic: StoreKit Tags:
Mar ’22
Two document types in SwiftUI?
Documentation of DocumentGroup says: Your app can support multiple document types by adding additional document group scenes: The example has an editor and a viewer, but I need to have two editors. Creating two different DocumentGroup elements seems to work, but then there's only one New Document menu item, which targets the first DocumentGroup. Is there a way to allow the user to choose which document type to create?
2
0
1.5k
Mar ’22
Can you have two separate model containers with SwiftData?
Hello. See the code below. struct ContentView: View { var body: some View { TabView { VehicleTab() .tabItem({ Label(Vehicles, systemImage: car.fill)}) .modelContainer(for: Vehicle.self) TransactionsTab() .tabItem { Label(Transactions, systemImage: dollarsign) } .modelContainer(for: Transaction.self) } } } Using the .modelContainer() in this way seems to be causing some issue. I was under the assumption that this would just create a container for each view. I get the error below in this configuration. If I comment out either one of the .modelContainer() modifiers, it works fine. Query encountered an error: Error Domain=NSCocoaErrorDomain Code=256 The file “default.store” couldn’t be opened. Are you not able to do what I'm doing? Is there a way to have two separate containers?
1
0
670
Apr ’24
NSTextAttachment lagging in textkit 2
I have an attributedString with 100 NSTextAttachments(contains image of 400kb). When i scroll the textview, it is lagging, When i did the same in textkit 1, it is butter smooth. It can be because of how textkit 1 & 2 layout the elements. let attachment = NSTextAttachment() attachment.image = UIImage(named: image2) let attachmentString = NSAttributedString(attachment: attachment) let mutableAttributedString = NSMutableAttributedString(attributedString: textView.attributedText) for _ in 0...100 { mutableAttributedString.append(NSAttributedString(string: n)) mutableAttributedString.append(attachmentString) } textView.attributedText = mutableAttributedString How to handle images in textkit 2 so that it feels smooth while scrolling textview?
1
0
887
Feb ’25
Reply to How to display a base64 file
I think at this point you have two options:1. File a bug report containing the PDF file and your code, then submit a developer tech support incident (described here: https://developer.apple.com/support/technical/).2. Post your question somewhere like Stack Overflow where you can post more of your code, any relevant links, and more information.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17
rendering the multiplication of two sinusoidal vibrations
Is it possible to render the multiplication of two sinusoidal vibrations as sin(2 * pi * 8 * t) * sin(2 * pi * 200 * t) in .AHAP format or any other methods? So far, we've made 200Hz vibration using .AHAP by controlling HapticSharpnessControl to about 0.9, and modulated its envelope by 1) controlling HapticIntensity/HapticIntensityControl or 2) ParameterCurve, but both of approaches generate ABS[sin(2 * pi * 8 * t)] * sin(2 * pi * 200 * t) that is different to our intention.
0
0
943
Jun ’22
Reply to SKAdImpression unknown 500 error
iOS 15.4 beta 5 Mar 2 12:54:05 TestApp(StoreKit)[752] : SKAdNetwork: Error in remote proxy while starting view-through impression: Error Domain=SKANErrorDomain Code=10 (null) Mar 2 12:54:07 TestApp(StoreKit)[752] : SKAdNetwork: Error in remote proxy while ending view-through impression: Error Domain=SKANErrorDomain Code=10 (null) Mar 2 12:54:24 TestApp(StoreKit)[752] : SKAdNetwork: Error in remote proxy while ending view-through impression: Error Domain=SKANErrorDomain Code=4 (null)
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Mar ’22
Two document types in SwiftUI?
Documentation of DocumentGroup says: Your app can support multiple document types by adding additional document group scenes: The example has an editor and a viewer, but I need to have two editors. Creating two different DocumentGroup elements seems to work, but then there's only one New Document menu item, which targets the first DocumentGroup. Is there a way to allow the user to choose which document type to create?
Replies
2
Boosts
0
Views
1.5k
Activity
Mar ’22
Can you have two separate model containers with SwiftData?
Hello. See the code below. struct ContentView: View { var body: some View { TabView { VehicleTab() .tabItem({ Label(Vehicles, systemImage: car.fill)}) .modelContainer(for: Vehicle.self) TransactionsTab() .tabItem { Label(Transactions, systemImage: dollarsign) } .modelContainer(for: Transaction.self) } } } Using the .modelContainer() in this way seems to be causing some issue. I was under the assumption that this would just create a container for each view. I get the error below in this configuration. If I comment out either one of the .modelContainer() modifiers, it works fine. Query encountered an error: Error Domain=NSCocoaErrorDomain Code=256 The file “default.store” couldn’t be opened. Are you not able to do what I'm doing? Is there a way to have two separate containers?
Replies
1
Boosts
0
Views
670
Activity
Apr ’24
Xcode 15 Beta 2 can't find iOS 17 Beta 2 device
Upgraded to Xcode 15 Beta 2 (15A5161b) and iOS 17 Beta 2 (21A5268h) today (on an Intel Mac, running macOS 13.4.1). Now Xcode no longer finds any eligible connected devices, while Finder does show the iPhone. This iPhone 11 is connected via USB and Developer Mode is turned on. What could be wrong? How to fix it?
Replies
7
Boosts
0
Views
6.0k
Activity
Jun ’23
NSTextAttachment lagging in textkit 2
I have an attributedString with 100 NSTextAttachments(contains image of 400kb). When i scroll the textview, it is lagging, When i did the same in textkit 1, it is butter smooth. It can be because of how textkit 1 & 2 layout the elements. let attachment = NSTextAttachment() attachment.image = UIImage(named: image2) let attachmentString = NSAttributedString(attachment: attachment) let mutableAttributedString = NSMutableAttributedString(attributedString: textView.attributedText) for _ in 0...100 { mutableAttributedString.append(NSAttributedString(string: n)) mutableAttributedString.append(attachmentString) } textView.attributedText = mutableAttributedString How to handle images in textkit 2 so that it feels smooth while scrolling textview?
Replies
1
Boosts
0
Views
887
Activity
Feb ’25
Reply to How to display a base64 file
I think at this point you have two options:1. File a bug report containing the PDF file and your code, then submit a developer tech support incident (described here: https://developer.apple.com/support/technical/).2. Post your question somewhere like Stack Overflow where you can post more of your code, any relevant links, and more information.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’17
rendering the multiplication of two sinusoidal vibrations
Is it possible to render the multiplication of two sinusoidal vibrations as sin(2 * pi * 8 * t) * sin(2 * pi * 200 * t) in .AHAP format or any other methods? So far, we've made 200Hz vibration using .AHAP by controlling HapticSharpnessControl to about 0.9, and modulated its envelope by 1) controlling HapticIntensity/HapticIntensityControl or 2) ParameterCurve, but both of approaches generate ABS[sin(2 * pi * 8 * t)] * sin(2 * pi * 200 * t) that is different to our intention.
Replies
0
Boosts
0
Views
943
Activity
Jun ’22