Xcode错误(Xcode):未定义的符号:_APMUserDataFieldEmailAddress...抖动项目

gcxthw6b  于 2022-11-18  发布在  其他
关注(0)|答案(3)|浏览(413)

每当我试图编译或生成IPA并将其发送到应用程序商店时,都会出现此错误。

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);
yhxst69z

yhxst69z1#

看起来你没有在info.plist中包含权限
这里是指向包permission_hanlder的链接,请阅读安装指南并包括所有必要的权限。

iovurdzv

iovurdzv2#

我遇到了同样的错误,我注意到在执行flutter cleanflutter pub get,然后flutter build ios之后;它会在Pods.xcodeproj的“Signing and Capabilities”中删除我的团队帐户(如图所示)...我不知道为什么会发生这种情况,但我现在要做的是再次重新添加我的团队,然后直接添加到flutter build ios,这样就可以了。

juzqafwq

juzqafwq3#

清除派生数据文件夹并重新生成。通常这是缓存问题

rm -rf ~/Library/Developer/Xcode/DerivedData

相关问题