飞道的博客

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

520人阅读  评论(0)
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
  pod repo update



Error running pod install
Error launching application on iPhone 11 Pro Max.

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

pod repo update master

参考:https://blog.csdn.net/jichunw/article/details/80103947

下一个报错为:

解决方法Podfile中添加:

pre_install do |installer|
  # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
  Pod::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_han
    dler.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/Swift
    Compatibility 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_bmflocat
    ion-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_bmflocat
    ion.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_bmflocat
    ion.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_bmflocat
    ion.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_bmflocat
    ion.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_bmflocat
    ion.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_bmflo
    cation.a' is located outside of the allowed root paths.

    Command CompileSwift failed with a nonzero exit code
    Undefined 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)
    note: Using new build system
    note: Planning build
    note: Constructing build description
    warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are
    configured 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 include
    at 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 are
    configured 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 are
    configured 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 are
    configured 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 are
    configured 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 include
    at 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_bmfbase

Undefined 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)

转载:https://blog.csdn.net/weixin_29003023/article/details/111713403
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场