Posts

Post not yet marked as solved
1 Replies
629 Views
Hi Devs! I am trying to build a widget for my app MathFlash Fun - https://apps.apple.com/us/app/mathflash-fun/id1502858843, but I am unable to deploy the widget to my iPad and the Simulator! The lldb says dyld: symbol '_$s9WidgetKit22IntentTimelineProviderP11placeholder4with5EntryQzAA0dE7ContextV_tFTq' not found, expected in '/System/Library/Frameworks/WidgetKit.framework/WidgetKit', needed by '/private/var/containers/Bundle/Application/3CA7A491-1A1F-4975-A010-39F6964A9A9A/Math Flash.app/PlugIns/CanYouWorkNowWodgetExtension.appex/CanYouWorkNowWodgetExtension' (I accidentally named the widget Wodget!) Xcode also shows me a SIGABRT and shows a pop-up which says SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.duckida.CanYouWorkNow.CanYouWorkNowWodget' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.duckida.CanYouWorkNow.CanYouWorkNowWodget)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.duckida.CanYouWorkNow.CanYouWorkNowWodget)}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.duckida.CanYouWorkNow.CanYouWorkNowWodget' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.duckida.CanYouWorkNow.CanYouWorkNowWodget)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.duckida.CanYouWorkNow.CanYouWorkNowWodget)}., NSUnderlyingError=0x1014fb420 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.duckida.CanYouWorkNow.CanYouWorkNowWodget)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.duckida.CanYouWorkNow.CanYouWorkNowWodget)}}} Domain: DTXMessage Code: 1 Here are some details: My iPad, an iPad Air 2(A1566) is running iOS 14 public beta 4(118A5342e1) My Mac is a 2019 MacBook Air with macOS 10.15.4 My Mac has Xcode 12 beta 3! Please Help!
Posted
by NSApps.
Last updated
.
Post not yet marked as solved
2 Replies
643 Views
Hi Devs! I think a touchscreen Mac is going to come out soon! Some Evidence: Apple Silicon - With Apple Silicon coming to Mac, Apple could include touch drivers for Mac Control Center - MacOS Big Sur probably has a Control Center so it is easier to change settings on touch Macs Mac Catalyst - The iPad is touchscreen, and Catalyst is all about iPad apps on Mac. Hints for a touch Mac
Posted
by NSApps.
Last updated
.
Post not yet marked as solved
0 Replies
281 Views
Hi Developers! I am going to submit my ARKit app for review on the App Store today, but I am having trouble with my screenshots. I have taken my 6.5 inch screenshots, my 5.8 inch screenshots, and all my iPad screenshots! The problem is: I don't have any 5.5 inch devices! The reason I cannot use simulators is because ARKit is not supported on the Simulator. Please help!
Posted
by NSApps.
Last updated
.
Post not yet marked as solved
0 Replies
237 Views
Hello! I am making a game where you can place blocks and I would like to have an undo button to delete the last placed block! How do I do this? My code is here: Please remove .LOG extension from the code ViewController.swift - https://developer.apple.com/forums/content/attachment/2fc14933-2e81-46a2-afc5-abb7fc74e086
Posted
by NSApps.
Last updated
.
Post not yet marked as solved
0 Replies
881 Views
Whenever I run my app on the iPhone SE(2nd Generation) iOS 14.0 Simulator, it shows a loading sign and error message “SpringBoard has quit unexpectedly” Anyone know the issue?
Posted
by NSApps.
Last updated
.
Post marked as solved
2 Replies
3.5k Views
I have an app where there are 2 views, one with a UILabel and another with a UITextField. I would like it so the moment you are done editing the Text Field, the label changes to the TF's value. The text field stores its value in a UserDefaults and when my Label's View loads, it shows the value of the UD key on the label. Again, I would like it so the moment you are done editing the Text Field, the label changes to the TF's value. Below is my Label's View's Controller struct myStruct {     static var money = 0.00 } import UIKit class ViewController: UIViewController {     @IBOutlet weak var moneyLabel: UILabel!     override func viewDidLoad() {         super.viewDidLoad()         let ud = UserDefaults.standard         myStruct.money = ud.double(forKey: "Money")         moneyLabel.text = String(ud.double(forKey: "Money"))              } } My TextField's View's Controller import UIKit class AddMoneyViewController: UIViewController {          let userDefaults = UserDefaults.standard               @IBOutlet weak var TextField: UITextField!          override func viewDidLoad() {         super.viewDidLoad()                  }          @IBAction func TFEditingDidEnd(_ sender: Any) {         userDefaults.set(TextField.text, forKey: "Money")         let moneyAtPoint1 = userDefaults.double(forKey: "Money")         print(moneyAtPoint1)          }      }
Posted
by NSApps.
Last updated
.
Post not yet marked as solved
3 Replies
652 Views
Here is code to make a simple Swift WWDC countdown:import Cocoa let today = Date() let startDate = "2020-06-22" let dateFormatter = DateFormatter()dateFormatter.dateFormat = "yyyy-MM-dd" let finalStartDate = dateFormatter.date(from: startDate)let components = Set<Calendar.Component>([.day, .hour]) print("WWDC20 Will Come on JUNE 22") let daysToDc = Calendar.current.dateComponents(components, from: finalStartDate!, to: today) let printableDays = Int(daysToDc.day!) let printableHours = Int(daysToDc.hour!) print(String(printableDays)+" days " + String(printableHours) + " hours till WWDC2020")
Posted
by NSApps.
Last updated
.