-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/mobile: gomobile [suggested fix provided] not working with Xcode 15.3 due to missing Info.plist
via SPM
#67000
Comments
Info.plist
via SPMInfo.plist
via SPM
Adding to this, if I manually add the
The error message doesn't indicate what's wrong with the new Plist tho |
Good news! After 8 hours and an unprecedented physical headache building up I think I have a solution now. I previously tried to use the
it finally runs the app again. I don't know if I'm allowed to share the file directly here but it's the one at googleads/swift-package-manager-google-mobile-ads@5ff9772 So basically it looks like gomobile's fault is that the plist is empty, if we fill it with actual data it works. 🎉🥳 If I have permission to post the google plist here I can show a fully working example if it helps you |
[celebrate] WeiYaPeng(Jim) reacted to your message:
…________________________________
From: g3devv ***@***.***>
Sent: Tuesday, April 23, 2024 8:35:24 PM
To: golang/go ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [golang/go] x/mobile: gomobile (demo project included) not working with Xcode 15.3 due to missing `Info.plist` via SPM (Issue #67000)
Good news! After 8 hours and an unprecedented physical headache building up I think I have a solution now. I previously tried to use the GoogleMobileAds plist but I only replaced it on either plist which threw this error above. If I put the GoogleMobileAds Info.plist in
Plexample.framework/ + replace the Plist that gomobile generates, and then replace the key/string for:
<key>CFBundleExecutable</key>
<string>Plexample</string>
it finally runs the app again. I don't know if I'm allowed to share the file directly here but it's the one at
***@***.***<googleads/swift-package-manager-google-mobile-ads@5ff9772>
So basically it looks like gomobile's fault is that the plist is empty, if we fill it with actual data it works. 🎉🥳
If I have permission to post the google plist here I can show a fully working example if it helps you
—
Reply to this email directly, view it on GitHub<#67000 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAKTSGIROVEYN7UECHPPOLTY63AYZAVCNFSM6AAAAABGVQYQ5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZTGM4TSNBQGM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Info.plist
via SPMInfo.plist
via SPM
Go version
go version go1.21.4 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I ran my iOS app that has a gomobile compiled framework as an SPM dependency.
Example project to reproduce the issue: github.com/g3devv/gomobile-plist-demo
What did you see happen?
#66500 and #66018 is not entirely solved yet, Xcode still complains with the following output:
What did you expect to see?
Because
gomobile
now adds the Info.plist files I expected everything to work again. Tree from my gomobile output:(It has Info.plist in 3 places for 2 architectures)
Tree for my framework in the Derived Data:
(It has no Info.plist in the root in case that matters)
The text was updated successfully, but these errors were encountered: