system_proxy icon indicating copy to clipboard operation
system_proxy copied to clipboard

system_proxy-Swift.h file not found

Open gyb1314 opened this issue 4 years ago • 2 comments

.pub-cache/hosted/pub.flutter-io.cn/system_proxy-0.1.0/ios/Classes/SystemProxyPlugin.m:2:9: fatal error: 'system_proxy/system_proxy-Swift.h' file not found #import <system_proxy/system_proxy-Swift.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. note: Using new build system note: Building targets in parallel note: Planning build note: Analyzing workspace note: Constructing build description note: Build preparation complete

Could not build the precompiled application for the device.

gyb1314 avatar Jan 10 '22 09:01 gyb1314

Same here, tried both Xcode 12.4 and 13.

twometresteve avatar Mar 03 '22 18:03 twometresteve

Same here, I modified the SystemProxyPlugin.m and fixed the issue. image

#if __has_include(<system_proxy/system_proxy-Swift.h>)
#import <system_proxy/system_proxy-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "system_proxy-Swift.h"
#endif

cyx114 avatar May 23 '22 08:05 cyx114