我正在创建一个NET8
-MAUI
的应用程序,现在我想在我真正的iPhone上测试该应用程序.我的iMac连接到了Windows机器上的Visual Studio,我可以在iPhone模拟器上测试应用程序.
当我试图将相同的应用程序部署到我的iPhone上时,我收到了这个错误:
Clang++退出,代码1:建筑ARM 64的未定义符号: "OBJC_CLASS$_UMPConsenForm",引用自: 注册表中的objc-class-ref.o"OBJC_CLASS$_UMPConsenInformation",引用自: 注册表中的objc-class-ref.o"OBJC_CLASS$_UMPDebugSettings",引用自: 注册表中的objc-class-ref.o"OBJC_CLASS$_UMPRequestParameters",引用自: 注册表中的objc-class-ref.o ld:未找到体系 struct ARM 64的符号(S)clang:错误:链接器命令失败,退出代码 1(使用-v查看调用)语言使用C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8004\targets\Xamarin.Shared.Sdk.targets 1559
这款手机连接了iMac,但我也try 了部署WiFi,也取得了同样的结果.我试着部署为Debug或Release.
更新
我注意到在建造的日志(log)中,那些线条.我不确定它们是否真的与这个问题有关.
2>;C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8004\targets\Xamarin.Shared.Sdk.targets(746,3): 警告MT7091:框架 C:/Users/enric/.nuget/packages/xamarin.firebase.ios.core/8.10.0.3/lib/net6.0-ios15.4/Firebase.Core.resources/GoogleUtilitiesComponents.xcframework/ios-arm64/GoogleUtilitiesComponents.framework 是一个静态库的框架,不会被复制到应用程序中. 2>;C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8004\targets\Xamarin.Shared.Sdk.targets(746,3): 警告MT7091:框架 C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/FAdM-8.13.0/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_armv7/GoogleMobileAds.framework 是一个静态库的框架,不会被复制到应用程序中. 2>;C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8004\targets\Xamarin.Shared.Sdk.targets(746,3): 警告MT7091:框架 C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/GAppM-8.9.1/GoogleAppMeasurement-8.9.1/Frameworks/GoogleAppMeasurement.xcframework/ios-arm64_armv7/GoogleAppMeasurement.framework 是一个静态库的框架,不会被复制到应用程序中. 2>;"$(xcrun-查找位码_条带)" C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/GAppM-8.9.1/GoogleAppMeasurement-8.9.1/Frameworks/GoogleAppMeasurement.xcframework/ios-arm64_armv7/GoogleAppMeasurement.framework/GoogleAppMeasurement -r-o C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/GAppM-8.9.1/GoogleAppMeasurement-8.9.1/Frameworks/GoogleAppMeasurement.xcframework/ios-arm64_armv7/GoogleAppMeasurement.framework/GoogleAppMeasurement 2>;"$(xcrun-查找位码_条带)" C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/FAdM-8.13.0/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_armv7/GoogleMobileAds.framework/GoogleMobileAds -r-o C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/FAdM-8.13.0/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_armv7/GoogleMobileAds.framework/GoogleMobileAds