admin 管理员组文章数量: 1087131
Error: CocoaPods‘s specs repository is too out
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:pod repo updateError running pod install
Error launching application on iPhone 11 Pro Max.
这里我们需要注意不是pod要更新,是CocoaPods Specs更新,更新的方式为:
pod repo update master
参考:
下一个报错为:
解决方法Podfile中添加:
pre_install do |installer|# workaround for ::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
接下来的报错:
administrator$ flutter run
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...Running pod install... 5.1s
Running Xcode build... Xcode build done. 19.5s
Failed to build iOS app
Error 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 paths.Command 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 Messages
Ld /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.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
本文标签: Error CocoaPodss specs repository is too out
版权声明:本文标题:Error: CocoaPods‘s specs repository is too out 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1693402981a219892.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论