cjwirth,
@cjwirth@mas.to avatar

I move some dependencies from CocoaPods to SwiftPM. It's Apple's first party tooling, so it must be good, right?

I upload the app to App Store Connect.

Apple complains about something about the way those migrated dependencies were integrated.

Thanks Apple.

NeoNacho,

@cjwirth Don’t work on it anymore, but still curious what the error was that you got

cjwirth,
@cjwirth@mas.to avatar

@NeoNacho Invalid bundle for the frameworks that got moved to SwiftPM. Was complaining about not supporting the minimum OS version listed in the Info.plist (it does, we are already using it, lol), and also complaining about the version numbers in the Info.plists for them. Which - the Info.plists inside there are different from before the migration.

Idk, I’ll have to look into it more. I’m sure I’m doing something wrong. This was supposed to be a noop change :/

NeoNacho,

@cjwirth I’m assuming this is a static binary framework, just distributed as a package?

cjwirth,
@cjwirth@mas.to avatar

@NeoNacho Yeah that sounds right. Specifically FBAudienceNetwork, UnityAds and some related ones

NeoNacho,

@cjwirth Coincidentally, this was actually one of the first things I happened to look into on my new team. Should be fixed in 15.4

cjwirth,
@cjwirth@mas.to avatar

@NeoNacho Aaah wow no kidding. We literally just upgraded to 15.3. Might have to put this on hold and wait for 15.4 to do this then? You don't know of any workarounds?

NeoNacho,

@cjwirth I believe downgrading to 15.2 would also work if that's a possibility for you

jsq,
@jsq@mastodon.social avatar

@NeoNacho @cjwirth LOL. sigh 😞 if you only knew

cjwirth,
@cjwirth@mas.to avatar

@jsq @NeoNacho omg yes this exactly. the 15.3 upgrade just happened at the exact same time that *this *change I'm complaining about happened

jsq,
@jsq@mastodon.social avatar

@cjwirth @NeoNacho downgrading or reverting your PRs sound equally terrible to me lol

jsq,
@jsq@mastodon.social avatar

@NeoNacho @cjwirth maybe we should simply stop using Xcode

cjwirth,
@cjwirth@mas.to avatar

@NeoNacho probably can't downgrade right now, but i can confirm that the app does validate properly if I do it in 15.2, thanks for the tip!

jsq,
@jsq@mastodon.social avatar

@cjwirth @NeoNacho we should try 15.4 beta too

NeoNacho,

@jsq @cjwirth best version

cjwirth,
@cjwirth@mas.to avatar

@jsq @NeoNacho Still failing on 15.4 beta :( Although failing for fewer libraries now.

Now it's just:
https://dl.google.com/googleadmobadssdk/mediation/ios/meta/MetaAdapter-6.15.0.0.zip
https://dl.google.com/googleadmobadssdk/mediation/ios/unity/UnityAdapter-4.10.0.0.zip
that it's failing on :/

Complaining that the version strings in the Info.plists aren't good, because they are 4 digits instead of 3.

NeoNacho,

@cjwirth @jsq that’s good feedback, thanks

NeoNacho,

@cjwirth @jsq BTW, to explain what is happening here, 15.3 started embedding any static frameworks from packages into the app bundle in order to retain resources (e.g. privacy manifest), but doing so requires injecting a dynamically linked stub binary to make a valid embeddable framework.

What I fixed in 15.4 is matching the deployment target as specified in the original framework’s Info.plist when creating the stub, but if there are other issues with the framework, they can still crop up.

cjwirth,
@cjwirth@mas.to avatar

@NeoNacho @jsq Ah ok yeah that makes sense with what was broken and what was fixed in 15.4. And using CocoaPods (or previous Xcodes) it wouldn’t be an issue because that new framework wasn’t being added.

So at this point we gotta get the upstream to make their version numbers work.

jsq,
@jsq@mastodon.social avatar

@cjwirth @NeoNacho I would simply stop using version numbers

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ethstaker
  • osvaldo12
  • magazineikmin
  • GTA5RPClips
  • rosin
  • mdbf
  • Youngstown
  • Durango
  • slotface
  • everett
  • kavyap
  • InstantRegret
  • thenastyranch
  • provamag3
  • tacticalgear
  • modclub
  • cisconetworking
  • tester
  • cubers
  • khanakhh
  • ngwrru68w68
  • normalnudes
  • megavids
  • anitta
  • Leos
  • JUstTest
  • lostlight
  • All magazines