Post

Replies

Boosts

Views

Activity

Reply to Xcode 12.5 very slow launch time for app in simulator
I‘m also affected by this bug on a Mac mini i7, 2020 with 16 GB RAM. The worst thing is the slow down in UITests because I receive so many timeouts and as a consequence the tests are not reliable anymore with Xcode 12.5 on BigSur. I switched back to Catalina, but now I can not archive my project anymore because some external swift packages are build with 12.5. Apple, please fix it soon!
May ’21
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
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 }   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Reply to API: DeviceCheck, statusCode: 401, message: Unable to verify authorization token
I have received the same error code 401 and it turned out that you need to wait up to 12-24 hours (in my case it was approximately 7 hours) after the creation of the private key until the verification succeeded with 200. Beyond this, you need to create a key for DeviceCheck and not for APN as stated by some examples. APN keys didn't work for me!
Topic: App & System Services SubTopic: General Tags:
Jul ’22
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 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.
Jan ’23
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
Reply to Xcode 12.5 very slow launch time for app in simulator
I‘m also affected by this bug on a Mac mini i7, 2020 with 16 GB RAM. The worst thing is the slow down in UITests because I receive so many timeouts and as a consequence the tests are not reliable anymore with Xcode 12.5 on BigSur. I switched back to Catalina, but now I can not archive my project anymore because some external swift packages are build with 12.5. Apple, please fix it soon!
Replies
Boosts
Views
Activity
May ’21
Reply to Watching list is empty, not receiving emails about new comments
It seems that this behavior is just related to certain questions, not to all. E.g. this one is not on my watch list: https://developer.apple.com/forums/thread/679098
Replies
Boosts
Views
Activity
Jun ’21
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.
Replies
Boosts
Views
Activity
Jun ’21
Reply to Crash in background on iOS 15 EXC_CRASH (SIGKILL)
@edford, I can confirm seeing crash reports with 0x0 exception codes on iOS 15. My guess it is the watchdog killing the app, but I'm not sure. Please see FB9791707.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’21
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 }   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Use data being cached by AVAssetDownloadTask to play in AVPlayer while it is still being downloaded.
You could use caching player item and combine it with a cache.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to API: DeviceCheck, statusCode: 401, message: Unable to verify authorization token
I have received the same error code 401 and it turned out that you need to wait up to 12-24 hours (in my case it was approximately 7 hours) after the creation of the private key until the verification succeeded with 200. Beyond this, you need to create a key for DeviceCheck and not for APN as stated by some examples. APN keys didn't work for me!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Xcode 11 install to device fails, code -402620415
@jsnee I'm facing the same problem, please have a look at FB10962213
Replies
Boosts
Views
Activity
Jul ’22
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.
Replies
Boosts
Views
Activity
Sep ’22
Reply to SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
Same with SmartlookAnalytics, see FB11506040
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
Please file a bug report at https://feedbackassistant.apple.com/ Until now, there are less than 10 bug reports reported for this issue. Otherwise it will not get fixed soon.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to A crash triggered by backgroud thread which is hard to catch, seems UI main thread updating issue.
@samliu_QPA, I'm receiving the same crashes and can not reproduce them. Have you found a solution to fix this or can give me any hint to find the root cause?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’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.
Replies
Boosts
Views
Activity
Jan ’23
Reply to Why aren't Apple employees monitoring this forum? What gives?
Btw, also for me the forum is very slow and I have a good internet connection and using a one year old Mac.
Replies
Boosts
Views
Activity
Jan ’23
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23