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 <UMCommonLog/UMCommonLogHeaders.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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原生的代码之后再重新跑就没问题了。
网友评论