Post

Replies

Boosts

Views

Activity

Multiple commands produce.
Multiple commands produce '/Users/arghadipdas/Library/Developer/Xcode/DerivedData/Widgets-dfmrjoounhtpfncpqalteomwmppi/Build/Intermediates.noindex/Widgets.build/Debug-iphonesimulator/Widgets.build/Objects-normal/x86_64/ConfigurationIntent.o': 1) Target 'Widgets' (project 'Widgets') has compile command for Swift source files 2) Target 'Widgets' (project 'Widgets') has compile command for Swift source files
2
0
3.1k
Jan ’21
Launch app by Target.
I've one widget in my app, so technically I have two Targets. Now every time I hit compile, Xcode just launching my widget's Target by default, not my app's Target and I can't even change the log to my app's Target instead of widget's Target. So I cannot read logs from ViewController.swift. my app's Target com.myapp my widget's Target com.myapp.widget Help me. How can I add my primary Target there?
1
0
313
Jan ’21
Widgets not showing text content
I'm trying to create a widget and following this "wOrkcdeui4U" youtube tutorial and this - https://github.com/gfiocco/swiftui-widget-sample GitHub page. Everything is set but the text is not visible it's just a grey rectangle. Have a look here. - https://www.icloud.com/iclouddrive/0psDv6X2UW2VwSCjGHk_nOJKw#Simulator_Screen_Shot_-_iPhone_12_mini_-_2021-01-18_at_15.40
4
0
937
Jan ’21
Getting an error on runtime.
Details SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'WIDGET_PACKAGE_NAME' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (WIDGET_PACKAGE_NAME)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (WIDGET_PACKAGE_NAME)}." UserInfo={NSLocalizedDescription=Failed to show Widget 'WIDGET_PACKAGE_NAME' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (WIDGET_PACKAGE_NAME)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (WIDGET_PACKAGE_NAME)}., NSUnderlyingError=0x1029d5340 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (WIDGET_PACKAGE_NAME)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (WIDGET_PACKAGE_NAME)}}} Domain: DTXMessage Code: 1- System Information macOS Version 11.1 (Build 20C69) Xcode 12.3 (17715) (Build 12C33) Timestamp: 2021-01-18T12:30:29+05:30 UPDATE I restarted my iPhone and it worked. Reported this as a bug.
0
0
418
Jan ’21
Swift - How to update ProgressView using while loop?
It's my first iOS app and I want to update ProgressView using while loop. I need help, It's not working says "UI element cannot be updated in background thread" func update() {         DispatchQueue.global().async {             var current:Int = 0             let total = 100             while (current < total) {                 current += 1                 self.progress.setProgress(Float(current / total), animated: true)                 self.text.text = "Hello: " + String(current)                 print(Float(current / total))                 sleep(UInt32(0.1))             }         }     }
1
0
2k
Jan ’21