bolha.us is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a Brazilian IT Community. We love IT/DevOps/Cloud, but we also love to talk about life, the universe, and more. | Nós somos uma comunidade de TI Brasileira, gostamos de Dev/DevOps/Cloud e mais!

Server stats:

249
active users

#swift

21 posts16 participants2 posts today

Help!!!
Does anyone know how to address ITMS-90048: This bundle is invalid - Your archive contains paths that are not allowed: [._Symbols]
My is being rejected from AppStore Connect since Xcode 16.3, and now even switching back to 16.2 or older branches it will give me the same issue.

Not sure what this is exactly…

Any guidance is greatly appreciated
#Xcode #Swift #Apple #iOSDev

Continued thread

Biggest tip I can offer when working through a migration strategy, is to work on a new git branch so you can delete a bad data store, restore the old working branch and start over.

You can create a rollback strategy as well but I found it just as easy to delete the bad data store, revert to working data and try again.

If you don't start a migration clean and it has previously failed you may find a lot of duplicate data once it does work all the way thru.

Continued thread

In my case I was migrating from a schema where a relationship was becoming many to many. I needed to gather all the current single relationships in willMigrate and then in didMigrate I had to add them to the new to many relationship.

There is no relationship between willMigrate and didMigrate so you need to do some sketchy (globals) things to pass data across contexts.

Once I'm comfortable I've gotten this all correct, I’ll do a blog post.

TIL working with #SwiftData migrations the past few days.

The documentation is non-existent. The sample code, tutorials, etc are all copying mostly trivial examples and sadly each other.

A custom migration schema has two phases each is passed a context. The first, willMigrate, will have the context for the schema you are migrating from, the second, didMigrate will have the newest context.

developer.apple.com/documentat

Apple Developer DocumentationMigrationStage.custom(fromVersion:toVersion:willMigrate:didMigrate:) | Apple Developer DocumentationThere's never been a better time to develop for Apple platforms.