Hey, I have the same issue. Now with Xcode 13, building our project takes a lot more time than with Xcode 12... Especially XIBs and storyboard files take a long time.
Also the project is recompiling even if nothing has changed. Can we somehow see what causes the recompilation? And how could cocoapods dependencies influence it?
Post
Replies
Boosts
Views
Activity
I have the same issue starting with Xcode 13, with Xcode 12 it was working fine
Ok I finally figured out when this happens.
In our content state struct init(from decoder) we have some parsing logic which could throw if data is missing or invalid. When the init throws for some contentState update, it will lead to the "disabled" state of the activity. After this, the activity will not respond anymore and will also not react on future updates.
Conclusion: The backend needs to make sure to send all fields in the proper format with every update.
We are experiencing the same issue with our app. However, for us, it's not caused by changing the "kind", but only after an app update in which there were no changes regarding the widget. Just after it updated, the widget turns black in some cases. It also appears black in the widget gallery.
Removing and adding it again did not work in this case, only after an iOS restart it works fine again.
I am seeing a similar error in console:
Content load failed: unable to find or unarchive file for key: [my.bundle.id::my.bundle.id.widget:MyWidget:systemSmall::158.00/158.00/21.60:(null)] on no host. The session may still produce one shortly. Error: Using url `file:///private/var/mobile/Containers/Data/PluginKitPlugin/A1582067-2483-4B92-B1E4-A35F5BBA0DF7/SystemData/com.apple.chrono/placeholders/MyWidget/systemSmall----158.00w--158.00h--21.60r--0f--0.00t-0.00l-0.00b0.00t.chrono-timeline` ... Error Domain=NSCocoaErrorDomain Code=4 "Die Datei „systemSmall----158.00w--158.00h--21.60r--0f--0.00t-0.00l-0.00b0.00t.chrono-timeline“ existiert nicht." UserInfo={NSFilePath=/private/var/mobile/Containers/Data/PluginKitPlugin/A1582067-2483-4B92-B1E4-A35F5BBA0DF7/SystemData/com.apple.chrono/placeholders/MyWidget/systemSmall----158.00w--158.00h--21.60r--0f--0.00t-0.00l-0.00b0.00t.chrono-timeline, NSUnderlyingError=0x3003fdfb0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
And I also see this one:
Two equal instances have unequal identities. <xpcservice<my.bundle.id.widget([osservice<com.apple.chronod>:132])>> and <xpcservice<my.bundle.id.widget([osservice<com.apple.chronod>:132])>>
Is there a way to fix it?
Using iOS 17.4