gpt4 book ai didi

ios - "Failed to compile the generated registrar code."将 Forms 和 Visual.Material 更新到 v4.2.0.848062 后

转载 作者:行者123 更新时间:2023-11-29 13:53:35 25 4
gpt4 key购买 nike

以下是我的输出中出现错误的部分。我正在使用 Visual Studio 2017 和 Xcode 11 进行构建。我已经清理并 build 了。从项目中删除了 bin/obj 以确保它不是那个,在查看输出文件后,它似乎与我从未接触过的文件有关。

3>  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -Wno-receiver-forward-class -Wno-objc-missing-super-calls -Wno-unguarded-availability-new -stdlib=libc++ -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/arm64/registrar.o -x objective-c++ -DDEBUG /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m
3> In file included from /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m:3:
3> In file included from /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.h:19:
3> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/Photos.framework/Headers/Photos.h:31:
3> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h:17:47: error: expected identifier or '{'
3> typedef NS_ENUM(NSInteger, UIImageOrientation);
3> ^
3> /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m:12096:17: warning: method 'updateSearchResultsForSearchController:' in protocol 'UISearchResultsUpdating' not implemented [-Wprotocol]
3> @implementation UIKit_UISearchController___Xamarin_UISearchResultsUpdating {
3> ^
3> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h:33:1: note: method 'updateSearchResultsForSearchController:' declared here
3> - (void)updateSearchResultsForSearchController:(UISearchController *)searchController;
3> ^
3> /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m:12096:17: warning: method 'updateSearchResultsForSearchController:' in protocol 'UISearchResultsUpdating' not implemented [-Wprotocol]
3> @implementation UIKit_UISearchController___Xamarin_UISearchResultsUpdating {
3> ^
3> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h:33:1: note: method 'updateSearchResultsForSearchController:' declared here
3> - (void)updateSearchResultsForSearchController:(UISearchController *)searchController;
3> ^
3> 2 warnings and 1 error generated.
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com

最佳答案

您正在使用较低版本的 iOS SDK 进行构建,并使用在更高版本的 iOS 中引入的类型。

您需要使用最新的 SDK (iOS 13) 进行构建,您可以在您的项目的 iOS 构建选项)。

如果找不到,您应该更新 Mac 机器上的 Xamarin.iOS!

关于ios - "Failed to compile the generated registrar code."将 Forms 和 Visual.Material 更新到 v4.2.0.848062 后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58239736/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com