【发布时间】: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(我认为是名称或类似名称)。