简体   繁体   English

Flutter没有构建iOS应用程序,这是一个迅速的错误吗?

[英]Flutter not building iOS application, is it a swift error?

I'm not longer able to build an iOS app with XCode, even a brand new flutter application will not run. 我不再能够使用XCode构建iOS应用,即使是全新的flutter应用也无法运行。

Here's the version of Android Studio: 这是Android Studio的版本:

Android Studio 3.1.4 Build #AI-173.4907809, built on July 23, 2018 JRE: 1.8.0_152-release-1024-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains sro Mac OS X 10.13.6 Android Studio 3.1.4 Build#AI-173.4907809,建于2018年7月23日JRE:1.8.0_152-release-1024-b01 x86_64 JVM:JetBrains sro Mac OS X 10.13.6的OpenJDK 64位服务器VM

Here's the version of XCode: 这是XCode的版本:

Version 9.4.1 (9F2000) 版本9.4.1(9F2000)

I get the following error: 我收到以下错误:

Launching lib/main.dart on Andrea's iPad in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: XG2RLBENW5 Starting Xcode build... Xcode build done. 在调试模式下在Andrea的iPad上启动lib / main.dart ...使用Xcode项目中的指定开发团队,自动签名iOS以进行设备部署:XG2RLBENW5开始Xcode构建... Xcode构建已完成。 Failed to build iOS app Error output from Xcode build: ↳ 2018-09-15 15:56:05.469 xcodebuild[39750:2818902] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14098/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757 Details: unexpected successful exit code from cancelled command Object: Method: -createCommandInvocationRecordFromInvocation: Thread: {number = 9, name = (null)} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. 无法构建iOS应用程序从Xcode构建输出错误:↳2018-09-15 15:56:05.469 xcodebuild [39750:2818902] DVTAssertions:/Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14098中的警告/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757详细信息:已取消命令中意外的成功退出代码对象:方法:-createCommandInvocationRecordFromInvocation:线程:{number = 9,name =(null)}请使用此警告消息和您可以提供的任何有用信息,在http://bugreport.apple.com上提交错误。 ** BUILD FAILED ** **建立失败**

Xcode's output: ↳ === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Xcode的输出:↳===带有配置调试器的项目目标运行器Runner ===不建议在Swift 4模式下使用Swift 3 @objc推断。 Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target. 请解决已弃用的@objc推断警告,启用“使用已弃用的Swift 3 @objc推断”日志记录来测试代码,然后通过将“ Runner”的“ Swift 3 @objc推断”构建设置更改为“默认”来禁用推断。目标。 The use of Swift 3 @objc inference in Swift 4 mode is deprecated. 不建议在Swift 4模式下使用Swift 3 @objc推断。 Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target. 请解决已弃用的@objc推断警告,启用“使用已弃用的Swift 3 @objc推断”日志记录来测试代码,然后通过将“ Runner”的“ Swift 3 @objc推断”构建设置更改为“默认”来禁用推断。目标。 === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === /Users/pbirdsall/Documents/highline/LeverageGoogleServersPlist/GoogleService-Info.plist:0: error: reading data: The file “GoogleService-Info.plist” couldn't be opened because there is no such file. ===具有配置调试功能的项目运行器的目标创建器=== /Users/pbirdsall/Documents/highline/LeverageGoogleServersPlist/GoogleService-Info.plist:0:错误:读取数据:文件“ GoogleService-Info.plist”无法无法打开,因为没有这样的文件。 Could not build the precompiled application for the device. 无法为设备构建预编译的应用程序。

Error launching application on Andrea's iPad. 在Andrea的iPad上启动应用程序时出错。

The error is saying: 错误是在说:

"An App ID with Identifier 'com.test.flutterApp' is not available. Please enter a different string" “具有标识符'com.test.flutterApp'的应用程序ID不可用。请输入其他字符串”

You need a different bundle id for your project as com.test.flutterApp may be registered under different Apple ID. 您的项目需要一个不同的捆绑软件ID,因为com.test.flutterApp可能已在其他Apple ID下注册。 Change it to anything unique and try to run it 将其更改为任何唯一的内容并尝试运行它

EDIT 编辑

The new error says: GoogleService-Info.plist couldn't be found at 新错误说:在以下位置找不到GoogleService-Info.plist

/Users/pbirdsall/Documents/highline/LeverageGoogleServersPlist/GoogleService-Info.plist

Make sure you have the plist file. 确保您具有plist文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Swift Package 中的导入记录器仅在为 iOS 构建时出错 - Import Logger in Swift Package gives error when building for iOS only “此应用程序正在修改自动布局引擎”错误(Swift iOS) - “This application is modifying the autolayout engine” error (Swift iOS) 使用iOS中的Firebase和Geolocator(或任何Swift插件)构建错误(Flutter) - Build error using Firebase and Geolocator (or any Swift plugin) in iOS (Flutter) 构建 iOS 应用程序(颤振)时出错,Android 运行平稳。 STRIPEAPPLEPAY 吊舱错误 - Error building iOS App (Flutter), Android runs smooth. STRIPEAPPLEPAY pod error 快速解析iOS应用程序 - Parse with swift for IOS application IOS Swift中的应用程序类 - Application Class in IOS Swift 如何使用Swift修复iOS应用程序上的致命错误? - How to fix a fatal error on iOS Application, using Swift? Quickblox + Swift 3.0 iOS SDK错误:找不到应用程序和QBConnectionZoneTypeProduction - Quickblox + Swift 3.0 iOS SDK Error: No Application Found and QBConnectionZoneTypeProduction 在iPhone 4s(iOS 9.3)上构建应用程序时出现错误-“类不可用:找不到该类的Swift声明” - Error - “Class is unavailable : Cannot find Swift declaration for this class”, while building app on iPhone 4s (iOS 9.3) 适用于iOS项目的Swift Building IP 4地址类 - Swift Building IP 4 address class for a iOS project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM