【问题标题】:Can't run my flutter app on an ios simulator无法在 ios 模拟器上运行我的颤振应用程序
【发布时间】:2020-01-07 16:06:05
【问题描述】:

我已经在 android 上开发我的应用程序有一段时间了,今天开始尝试在 ios 模拟器上进行测试,在完成所有必需的安装、cocoapods 等之后,我的测试应用程序可以工作,但我的真实应用程序不能,出现几个错误在ios模拟器上而不是在android模拟器上,有人可以帮忙吗?

这是最后几行

CocoaPods 的错误输出: ↳

[!] <PBXGroup UUID=97C146E51CF9000F007C117D> attempted to initialize an object with an unknown UUID. CF3B75C9A7D2FA2A4C99F110 for attribute: children. This can be the result of a merge and  the unknown UUID is being discarded.

[!] Automatically assigning platform ios with version 8.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

运行 pod install 时出错 在 iPhone X 上启动应用程序时出错。

编辑:我从 xcode 得到的一组错误

app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner')

:-1: Capabilities for Runner may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'Runner')

There are no accounts registered with Xcode. (Add your developer account to Xcode)

【问题讨论】:

  • 尝试打开您的项目并在 XCode 上构建。
  • 我只打开ios文件夹吗?因为当我尝试打开主应用程序文件夹时,出现 xcode 无法打开它的错误
  • 在您的颤振项目中,您有一个 ios 文件夹,其中包含 XCode 项目。
  • 运行时收到多个警告和一个错误,错误为:-1: app/ios/app/Debug.xcconfig:1: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner')
  • 在您的终端上输入open Runner.xcworkspace(我认为是名称或类似名称)。

标签: ios xcode flutter


【解决方案1】:

查看所有依赖项是否正确安装或不查看是否支持 ios

【讨论】:

  • 请提供更清晰的说明,我该怎么做?我在哪里检查这个?
猜你喜欢
  • 2019-05-31
  • 2021-06-18
  • 2021-07-09
  • 2021-12-16
  • 1970-01-01
  • 2022-08-19
  • 2020-09-11
  • 1970-01-01
  • 2021-10-19
相关资源
最近更新 更多