Post

Replies

Boosts

Views

Activity

Reply to AttributeGraph: cycle detected
The root cause of this issue that during the update of one view another update for the same view (and others) is triggered (cycle). So as described above you have to check what causes this cycle. To debug it : Start instruments. Under SwiftUI there's a row ‘View Properties’. Select it. Trigger the issue in the simulator and look at all updates that occur (you can switch between Summary, Updates, etc. when View Propertiesis selected). So you can find out which views or variables are being updated. Comment out the related updated views in SwiftUI and see which view and wich parts are causing it. Narrow it down by commenting out parts down your view hierarchy. When you have found the root cause. Find a way how to not trigger a cycle. In my case I used a UIViewRepresentableView with UIView.animate in the updateView(:) what was triggering the cycle.
May ’23
Reply to Why aren't Apple employees monitoring this forum? What gives?
I completly agree. Also for me the developer forum is a ghost town. I hope that with the new UX improvements in the forum some Apple engineers find there way here and contribute. The only way to create a vibrant developer community is when at least 5-10 Apple engineers reply to multiple posts on a daily basis. Then also other developers will get attracted and use this forum more often. Let‘s cross fingers that the enthusiasm that was put into the forum recently is continuing the next weeks and months and that other Apple engineers start to use the forum more frequently. But I guess most of them don’t have free time to answer questions here.
Jun ’21
Reply to Xcode 11 install to device fails, code -402620415
@Anton Turvo, thank you very much for your comment! I can see the same error in Console: Trust evaluate failure: [leaf IssuerCommonName LeafMarkerOid SubjectCommonName] MacOS error: -67030 unrecognized status -67030 from codesigning library 0x16b7ab000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 75: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.97uVqY/extracted/VisionBoard.app/PlugIns/IntentsExtension.appex : 0xe8008001 (An unknown error has occurred.) 0x16b7ab000 -[MIInstaller performInstallationWithError:]: Verification stage failed The solution you proposed to modify the contents of project.pbxprojand adding CodeSignOnCopy didn't work for me. I'm still facing the above error. However, I have found a workaround by enabling Copy only when installing in the main target of the app in the Embed App Extensions (in Build phases section). So, the extensions are not copied to the iOS device and the error is resolved as well.
Sep ’22
Reply to iOS widget previews with different size family
Here is a workaround to resolve Key path value type 'WritableKeyPath<EnvironmentValues, WidgetFamily>' cannot be converted to contextual type 'KeyPath<EnvironmentValues, WidgetFamily>'. Source: https://stackoverflow.com/a/68489369 extension WidgetFamily: EnvironmentKey {     public static var defaultValue: WidgetFamily = .systemMedium } extension EnvironmentValues {   var widgetFamily: WidgetFamily {     get { self[WidgetFamily.self] }     set { self[WidgetFamily.self] = newValue }   } }
Feb ’22
Reply to Deleting Forum Posts
If you want to delete a post for some other reason then… well… what’s the reason? In my case, for example, I wanted to add additional information to my question and accidentally created an answer to my question with that info. Then I realised that it would be much better if I would have clicked edit and extended my question, and then I did it. But there was no way to delete my answer with the same information as in the question.
Jun ’21