我在较新的 MacOS 版本上运行旧版本的 Xcode 时遇到问题。
例如,MacOS Ventura 上的 Xcode 13。
将 Xcode 升级到最新版本后尝试运行应用程序时出现很多问题14.3。
我现在面临的问题是:
failed to verify module interface of 'projectName' due to the errors above; the textual interface may be broken by project issues or a compiler bug
随着No such module Firebase
Edit:似乎这不取决于 Firebase 或任何其他 pod,因为人们对于不同的 pod 都遇到相同的问题。我已经尝试过这些事情但没有成功:
当试图从开发者模式切换到实时模式时,developer.facebook.com给了我这个警告:
Before switching to live mode, you must provide both a valid Privacy Policy URL and data deletion information. Update this information in Basic Settings on App Dashboard
我已经提供了我的隐私政策网址,但我不知道在这里放什么:

老实说,我不需要这个实时应用程序,只需要在我的测试应用程序上登录 fb,但是当我尝试使用 Facebook 登录时,我收到了错误This app is still in development mode。好的FB,我知道...
我试图通过将 Web 应用程序包装为 iOS 的 webView 来创建一个应用程序,并在运行该应用程序后,当我在应用程序中测试它一段时间后出现此错误。另外,在尝试访问 mui 下拉菜单时,我收到此错误以及白屏:
2023-07-18 11:54:15.672093+0530 Demo[9326:166450] Simulator user has requested new graphics quality: 100
2023-07-18 11:55:15.582790+0530 Demo[9326:166450] [com.apple.VisionKit.processing] Analysis not completed because device does not support Image Analysis. This will only be logged once.
2023-07-18 11:55:15.814158+0530 Demo[9326:166450] [com.apple.VisionKit.RemoveBackground] Request to remove background on an unsupported device. Error Domain=com.apple.VisionKit.RemoveBackground Code=-8 "(null)"
2023-07-18 11:55:15.815166+0530 Demo[9326:166450] [UILog] Called -[UIContextMenuInteraction updateVisibleMenuWithBlock:] while no context menu is visible. This won't do anything.
Run Code Online (Sandbox Code Playgroud)
对 Android 做了同样的事情,并且运行良好。我以为 iOS 应用程序也会出现同样的情况,但没有...我偶然发现了这个错误,坦率地说,我对这个 Xcode 和 …
我是第一次使用 KMM,刚刚在 Macbook M1 Pro 上创建了一个新的 KMM 应用程序项目。没有代码更改,这只是 hello world 应用程序。我已经能够成功构建Android平台的项目,并且它在Android模拟器上运行良好。但是,当我尝试为 iOS 平台构建它时,它失败并显示以下错误消息:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':shared'.
> The project must have a target for at least one of the following platforms: ios_simulator_arm64.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org …Run Code Online (Sandbox Code Playgroud) 我知道他们已经更新了 sdk,因此我进行了更改,并且我非常确定我的所有广告代码都与新广告 sdk 文档中的一样。我还提供了新的ads tracking usage.App id is also provided in the info.plist. So I dont know why I am constantly facing this issue when I run my app.
Google 移动广告 SDK 是在没有 AppMeasurement 的情况下初始化的。Google AdMob 发布商请按照此处的说明进行操作: https: //googlemobileadssdk.page.link/admob-ios-update-plist以包含 AppMeasurement 框架并设置 -ObjC 链接器标志。Google Ad Manager 发布商请按照此处的说明操作: https: //googlemobileadssdk.page.link/ad-manager-ios-update-plist
如何将视图元素固定到 SwiftUI 中滚动视图/VStack 的底部?我尝试过使用垫片,但这似乎不起作用。我需要将“页脚”文本放置在滚动视图/Vstack 的底部,我该怎么做?
struct ContentView: View {
var body: some View {
VStack {
ScrollView(.vertical, showsIndicators: false) {
VStack(alignment: .leading) {
Text("Top Title")
Text("Body")
Spacer()
Text("Footer") // SHOULD BE PINNED TO BOTTOM OF SCROLL VIEW
.frame(alignment: .bottom)
}
}
.background(Color.red)
Button("Done") {
//some action
}
}
}
}
Run Code Online (Sandbox Code Playgroud)