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代碼的時(shí)候出現(xiàn)了這個(gè)問題。
嘗試了網(wǎng)上的幾個(gè)辦法,比如改podfile中的ios版本,或者在podfile后面添加統(tǒng)一更改sdk支持版本的代碼,但是都無法解決之后。
我嘗試了直接在xcode里build,最后發(fā)現(xiàn)是appdelegate里的一些代碼因?yàn)閾Q了第三方的版本,所以出錯(cuò)了。改好ios原生的代碼之后再重新跑就沒問題了。