700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Error: CocoaPods‘s specs repository is too out-of-date to satisfy dependencies.

Error: CocoaPods‘s specs repository is too out-of-date to satisfy dependencies.

时间:2021-07-18 04:23:29

相关推荐

Error: CocoaPods‘s specs repository is too out-of-date to satisfy dependencies.

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.To update the CocoaPods specs, run:pod repo updateError running pod installError launching application on iPhone 11 Pro Max.

这里我们需要注意不是pod要更新,是CocoaPods Specs更新,更新的方式为:

pod repo update master

参考:/jichunw/article/details/80103947

下一个报错为:

解决方法Podfile中添加:

pre_install do |installer|# workaround for /CocoaPods/CocoaPods/issues/3289Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}end

接下来的报错:

administrator$ flutter runLaunching lib/main.dart on iPhone 11 Pro Max in debug mode...Running pod install...5.1sRunning Xcode build...Xcode build done. 19.5sFailed to build iOS appError output from Xcode build:↳** BUILD FAILED **Xcode's output:↳warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/permission_handler/libpermission_handler.a' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmfbase/libflutter_bmfbase.a' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/SwiftCompatibility Header/flutter_bmflocation-Swift.h' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/flutter_bmflocation-umbrella.h' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/flutter_bmflocation.modulemap' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/flutter_bmflocation.swiftmodule/x86_64-apple-ios-simulator.swiftdoc' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/flutter_bmflocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/flutter_bmflocation.swiftmodule/x86_64.swiftdoc' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/flutter_bmflocation.swiftmodule/x86_64.swiftmodule' is located outside of the allowed root paths.warning: Stale file'/Users/administrator/VSCodeProjects/bdmap_loc_flutter_plugin_demo/build/ios/Debug-iphonesimulator/flutter_bmflocation/libflutter_bmflocation.a' is located outside of the allowed root mand CompileSwift failed with a nonzero exit codeUndefined symbols for architecture x86_64:"_OBJC_CLASS_$_BMKMapManager", referenced from:objc-class-ref in FlutterBmfbasePlugin.o"_BMKCoordinateForMapPoint", referenced from:+[BMFCoordinate fromBMKMapPoint:] in BMFMapModels.o-[BMFMapRect toBMFCoordinateBounds] in BMFMapModels.o"_BMKMapPointForCoordinate", referenced from:+[BMFCoordinate fromPoints:] in BMFMapModels.o-[BMFCoordinate toBMKMapPoint] in BMFMapModels.o-[BMFCoordinateBounds toBMKMapRect] in BMFMapModels.old: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)note: Using new build systemnote: Planning buildnote: Constructing build descriptionwarning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings areconfigured correctly for the iOS Simulator platform. (in target 'Pods-Runner' from project 'Pods')warning: None of the architectures in ARCHS (x86_64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to includeat least one value from VALID_ARCHS (i386, x86_64) which is not in EXCLUDED_ARCHS (x86_64). (in target 'Pods-Runner' from project'Pods')warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings areconfigured correctly for the iOS Simulator platform. (in target 'BMKLocationKit' from project 'Pods')warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings areconfigured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings areconfigured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings areconfigured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')warning: None of the architectures in ARCHS (x86_64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to includeat least one value from VALID_ARCHS (i386, x86_64) which is not in EXCLUDED_ARCHS (x86_64). (in target 'Runner' from project 'Runner')Could not build the application for the simulator.Error launching application on iPhone 11 Pro Max.AdministratordeMacBook-Air:bdmap_loc_flutter_plugin_demo administrator$

报错

Showing All MessagesLd /Users/administrator/Library/Developer/Xcode/DerivedData/Runner-fuspahcofawexngqaxgolehtpvls/Build/Products/Debug-iphonesimulator/flutter_bmfbase/flutter_bmfbase.framework/flutter_bmfbase normal x86_64 (in target 'flutter_bmfbase' from project 'Pods')cd /Users/administrator/VSCodeProjects/kiss_you_5g/ios/Pods/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-ios8.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -L/Users/administrator/Library/Developer/Xcode/DerivedData/Runner-fuspahcofawexngqaxgolehtpvls/Build/Products/Debug-iphonesimulator/flutter_bmfbase -F/Users/administrator/Library/Developer/Xcode/DerivedData/Runner-fuspahcofawexngqaxgolehtpvls/Build/Products/Debug-iphonesimulator/flutter_bmfbase -F/Users/administrator/VSCodeProjects/kiss_you_5g/ios/Pods/../Flutter -F/Users/administrator/VSCodeProjects/kiss_you_5g/ios/Pods/BaiduMapKit/BaiduMapKit -filelist /Users/administrator/Library/Developer/Xcode/DerivedData/Runner-fuspahcofawexngqaxgolehtpvls/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/flutter_bmfbase.build/Objects-normal/x86_64/flutter_bmfbase.LinkFileList -install_name @rpath/flutter_bmfbase.framework/flutter_bmfbase -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/administrator/Library/Developer/Xcode/DerivedData/Runner-fuspahcofawexngqaxgolehtpvls/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/flutter_bmfbase.build/Objects-normal/x86_64/flutter_bmfbase_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -framework CoreGraphics -framework CoreLocation -framework Flutter -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/administrator/Library/Developer/Xcode/DerivedData/Runner-fuspahcofawexngqaxgolehtpvls/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/flutter_bmfbase.build/Objects-normal/x86_64/flutter_bmfbase_dependency_info.dat -o /Users/administrator/Library/Developer/Xcode/DerivedData/Runner-fuspahcofawexngqaxgolehtpvls/Build/Products/Debug-iphonesimulator/flutter_bmfbase/flutter_bmfbase.framework/flutter_bmfbaseUndefined symbols for architecture x86_64:"_OBJC_CLASS_$_BMKMapManager", referenced from:objc-class-ref in FlutterBmfbasePlugin.o"_BMKCoordinateForMapPoint", referenced from:+[BMFCoordinate fromBMKMapPoint:] in BMFMapModels.o-[BMFMapRect toBMFCoordinateBounds] in BMFMapModels.o"_BMKMapPointForCoordinate", referenced from:+[BMFCoordinate fromPoints:] in BMFMapModels.o-[BMFCoordinate toBMKMapPoint] in BMFMapModels.o-[BMFCoordinateBounds toBMKMapRect] in BMFMapModels.old: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。