flutter問題記録

3624 ワード

    warning: Stale file '/Users/yuzhongbutong/Desktop/flutter_project/wemarket_screenshot_tools/build/ios/Release-iphoneos/Runner.app/UMCommonLog.bundle' is located outside
    of the allowed root paths.

    2 warnings generated.
    1 warning generated.
    /Users/yuzhongbutong/Desktop/flutter_project/wemarket_screenshot_tools/ios/Runner/AppDelegate.m:3:9: fatal error: 'UMCommonLog/UMCommonLogHeaders.h' file not found
    #import 
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Using build description from disk
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'package_info' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'webview_flutter' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'video_player' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'url_launcher' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'sqflite' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'shared_preferences' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'permission_handler' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'path_provider' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'image_gallery_saver' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target
    'Flutter' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 9.0 to 14.1.99. (in target 'FMDB'
    from project 'Pods')

Encountered error while building for device.

この問題は、サードパーティ製パケットを導入した後、flutter build ios --no-codesignでiosコードをコンパイルする際に発生した.
podfileのiosバージョンを変更したり、podfileの後にsdkサポートバージョンを統一的に変更するコードを追加したりするなど、ネット上のいくつかの方法を試みましたが、解決できませんでした.
直接xcodeでbuildを試してみましたが、appdelegateのコードの一部がサードパーティのバージョンを変えたため、エラーが発生したことに気づきました.iosオリジナルのコードを変更してから走り直せば大丈夫です.