每当我试图编译或生成一个IPA将其发送到App时,我都会得到这个错误。
Failed to build iOS app
Error output from Xcode build:
↳
2022-07-08 23:02:28.807 xcodebuild[15110:809520] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x6000023b9030:'/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk'>': SDK with name 'macosx13.0' being superseded by SDK with 'macosx13.0'.
2022-07-08 23:02:31.110 xcodebuild[15110:809520] warning: The file reference for "GoogleAppMeasurement-xcframeworks.sh" is a member of multiple groups ("Support Files" and "Support Files"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2022-07-08 23:02:31.110 xcodebuild[15110:809520] warning: The file reference for "GoogleAppMeasurement.debug.xcconfig" is a member of multiple groups ("Support Files" and "Support Files"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2022-07-08 23:02:31.110 xcodebuild[15110:809520] warning: The file reference for "GoogleAppMeasurement.release.xcconfig" is a member of multiple groups ("Support Files" and "Support Files"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2022-07-08 23:02:32.943 xcodebuild[15110:809671] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-07-08 23:02:32.943 xcodebuild[15110:809671] nil host used in call to allowsAnyHTTPSCertificateForHost:
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/ll/gjdf4jj56nd5bvg06lknywl80000gn/T/flutter_tools.wqDSaC/flutter_ios_build_temp_dirM4nhPd/temporary_xcresult_bundle
/Users/chancilson/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.4/ios/Classes/strategies/PhonePermissionStrategy.m:50:35: warning: 'subscriberCellularProvider' is deprecated: first deprecated in iOS 12.0 [-Wdeprecated-declarations]
CTCarrier *carrier = [netInfo subscriberCellularProvider];
^~~~~~~~~~~~~~~~~~~~~~~~~~
serviceSubscriberCellularProviders
In module 'CoreTelephony' imported from /Users/chancilson/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.4/ios/Classes/strategies/PhonePermissionStrategy.m:8:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h:114:50: note: property 'subscriberCellularProvider' is declared deprecated here
@property(readonly, retain, nullable) CTCarrier *subscriberCellularProvider API_DEPRECATED_WITH_REPLACEMENT("serviceSubscriberCellularProviders", ios(4.0, 12.0)) API_UNAVAILABLE(macos);
发布于 2022-07-09 08:29:50
看来您还没有在info.plist中包含权限
下面是指向包汉德的链接,并阅读安装指南,并包含所有必要的权限。
发布于 2022-07-28 04:26:07
我也有同样的错误,我注意到在执行flutter clean
、flutter pub get
、然后是flutter build ios
之后,它在Pods.xcodeproj中删除了我的团队帐户“签名和功能”(如图中所示).我不知道为什么会发生这种情况,但我现在要做的是重新添加我的团队,然后直接添加到flutter build ios
,然后它就能工作了。
发布于 2022-11-06 10:31:03
清除派生数据文件夹并重新生成。通常这是一个缓存问题。
rm -rf ~/Library/Developer/Xcode/DerivedData
https://stackoverflow.com/questions/72919978
复制相似问题