xcode - 颤动的Xcode无法运行
问题描述
我只需要打开一个使用flutter发送给我的项目我在mac pc上运行,我被要求在Xcode上运行它所以我尝试每次出现相同的错误时最后一个错误我没有找到任何解决方案在网上
[abdelrhmans-MacBook-Pro:anjez-master softa$ flutter build ios
Building com.AnjezApplication for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: B26V682XJP
Running Xcode build...
Xcode build done. 5.9s
Failed to build iOS app
Error output from Xcode build:
↳
2020-04-27 17:16:15.629 XCBBuildService[9613:172921] Failed to remove:
/Users/softa/Library/Developer/Xcode/DerivedData/Runner-ciptqvveswepfdfwscmmoplxkvyx/Build/Intermediates.noindex/XCBuildData/5f0231a6e51d06ee16e07b566b453277-desc.xcbuild:
unlink(/Users/softa/Library/Developer/Xcode/DerivedData/Runner-ciptqvveswepfdfwscmmoplxkvyx/Build/Intermediates.noindex/XCBuildData/5f0231a6e51d06ee16e07b566b453277-desc.xcbuild): No such file or directory (2)
** BUILD FAILED **
Xcode's output:
↳
/Users/softa/.pub-cache/hosted/pub.dartlang.org/phone_number-0.3.1/ios/Classes/SwiftPhoneNumberPlugin.swift:41:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
} catch {
^
/Users/softa/.pub-cache/hosted/pub.dartlang.org/phone_number-0.3.1/ios/Classes/SwiftPhoneNumberPlugin.swift:41:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
} catch {
^
/Users/softa/.pub-cache/hosted/pub.dartlang.org/phone_number-0.3.1/ios/Classes/PhoneNumberPlugin.m:2:9: fatal error: 'phone_number/phone_number-Swift.h' file not found
#import <phone_number/phone_number-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'FMDB' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'Protobuf' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'nanopb' from project 'Pods')
Encountered error while building for device.
abdelrhmans-MacBook-Pro:anjez-master softa$ flutter run
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
Running pod install... 4.0s
Running Xcode build...
Xcode build done. 4.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'Protobuf' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'FMDB' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'nanopb' from project 'Pods')
error: Building for iOS Simulator, but the linked and embedded framework 'App.framework' was built for iOS. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).
]
这是错误的照片表示: 照片
解决方案
尝试使用flutter clean
命令清理项目。
推荐阅读
- git - Git:总结子回购
- php - fopen 不允许创建文件名的变量
- c# - 为什么 ASP.NET 过滤器属性内部有逻辑?
- java - Java 服务器使用线程错误 RequestProcessor not found
- azure - 在以 Cosmos 为源的 Azure 数据工厂中获取时间戳的最后一个值
- javascript - 带有箭头和按钮的自动幻灯片
- python - 函数内部的 Python readline() 跳过文件中的第二行
- sql - 插入 SQL Server 中的外键列表
- r - r 中的 for 循环以创建矩阵
- c++ - c ++,在struct中找不到用户定义的文字运算符