Xcode's output:
↳
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:796:34: warning: 'UNUserNotificationCenter' is only available on iOS 10.0 or newer [-Wunguarded-availability]
(void)jpushNotificationCenter:(UNUserNotificationCenter )center willPresentNotification:(UNNotification )notification withCompletionHandler:(void (^)(NSInteger options))completionHandler;
^
In module 'UserNotifications' imported from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:3:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h:39:12: note: 'UNUserNotificationCenter' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0
@interface UNUserNotificationCenter : NSObject
^
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:796:1: note: annotate 'jpushNotificationCenter:willPresentNotification:withCompletionHandler:' with an availability attribute to silence this warning
(void)jpushNotificationCenter:(UNUserNotificationCenter )center willPresentNotification:(UNNotification )notification withCompletionHandler:(void (^)(NSInteger options))completionHandler;
^
API_AVAILABLE(ios(10.0))
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:796:93: warning: 'UNNotification' is only available on iOS 10.0 or newer [-Wunguarded-availability]
(void)jpushNotificationCenter:(UNUserNotificationCenter )center willPresentNotification:(UNNotification )notification withCompletionHandler:(void (^)(NSInteger options))completionHandler;
^
In module 'UserNotifications' imported from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:3:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h:15:12: note: 'UNNotification' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0
@interface UNNotification : NSObject <NSCopying, NSSecureCoding>
^
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:796:1: note: annotate 'jpushNotificationCenter:willPresentNotification:withCompletionHandler:' with an availability attribute to silence this warning
(void)jpushNotificationCenter:(UNUserNotificationCenter )center willPresentNotification:(UNNotification )notification withCompletionHandler:(void (^)(NSInteger options))completionHandler;
^
API_AVAILABLE(ios(10.0))
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:803:34: warning: 'UNUserNotificationCenter' is only available on iOS 10.0 or newer [-Wunguarded-availability]
(void)jpushNotificationCenter:(UNUserNotificationCenter )center didReceiveNotificationResponse:(UNNotificationResponse )response withCompletionHandler:(void(^)(void))completionHandler;
^
In module 'UserNotifications' imported from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:3:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h:39:12: note: 'UNUserNotificationCenter' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0
@interface UNUserNotificationCenter : NSObject
^
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:803:1: note: annotate 'jpushNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:' with an availability attribute to silence this warning
(void)jpushNotificationCenter:(UNUserNotificationCenter )center didReceiveNotificationResponse:(UNNotificationResponse )response withCompletionHandler:(void(^)(void))completionHandler;
^
API_AVAILABLE(ios(10.0))
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:803:100: warning: 'UNNotificationResponse' is only available on iOS 10.0 or newer [-Wunguarded-availability]
(void)jpushNotificationCenter:(UNUserNotificationCenter )center didReceiveNotificationResponse:(UNNotificationResponse )response withCompletionHandler:(void(^)(void))completionHandler;
^
In module 'UserNotifications' imported from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:3:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h:18:12: note: 'UNNotificationResponse' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0
@interface UNNotificationResponse : NSObject <NSCopying, NSSecureCoding>
^
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:803:1: note: annotate 'jpushNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:' with an availability attribute to silence this warning
(void)jpushNotificationCenter:(UNUserNotificationCenter )center didReceiveNotificationResponse:(UNNotificationResponse )response withCompletionHandler:(void(^)(void))completionHandler;
^
API_AVAILABLE(ios(10.0))
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:606:165: warning: this block declaration is not a prototype [-Wstrict-prototypes]
(void)jpushNotificationCenter:(UNUserNotificationCenter )center didReceiveNotificationResponse:(UNNotificationResponse )response withCompletionHandler:(void (^)())completionHandler API_AVAILABLE(ios(10.0)){
^
void
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:418:21: warning: 'setTimeInterval:' is only available on iOS 10.0 or newer [-Wunguarded-availability]
trigger.timeInterval = interval;
^~~~
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:147:46: note: 'setTimeInterval:' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0
@property (nonatomic, assign) NSTimeInterval timeInterval NS_AVAILABLE_IOS(10_0); // 用来设置触发推送的时间,iOS10以上有效,优先级为III
^
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:418:21: note: enclose 'setTimeInterval:' in an @available check to silence this warning
trigger.timeInterval = interval;
^~~~
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:521:13: warning: 'setThreadIdentifier:' is only available on iOS 10.0 or newer [-Wunguarded-availability]
content.threadIdentifier = @"threadIdentifier";
^~~~
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:128:39: note: 'setThreadIdentifier:' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0
@property (nonatomic, copy) NSString *threadIdentifier NS_AVAILABLE_IOS(10_0); // 线程或与推送请求相关对话的标识,iOS10以上有效,可用来对推送进行分组
^
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:521:13: note: enclose 'setThreadIdentifier:' in an @available check to silence this warning
content.threadIdentifier = @"threadIdentifier";
^~~~
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:606:168: warning: conflicting parameter types in implementation of 'jpushNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:': 'void (^strong)(void)' vs 'void (^strong)()' [-Wmismatched-parameter-types]
In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6:
/Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:803:171: note: previous definition is here
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:30:17: warning: class 'JPushPlugin' does not conform to protocol 'JPUSHRegisterDelegate' [-Wprotocol]
@implementation JPushPlugin {
^
/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:30:17: note: add stubs for missing protocol requirements
9 warnings generated.
error: the following command failed with exit code 0 but produced no further output
CompileC /Users/libin/Library/Developer/Xcode/DerivedData/Runner-eprokrewqnxlqfgmgvcozruxnzgb/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/jpush_flutter.build/Objects-normal/arm64/JPushPlugin.o /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'jpush_flutter' from project 'Pods')
ld: in /Users/libin/Desktop/iosTest/ios/Pods/JCore/libjcore-ios-2.7.1.a(JCommonLocationController.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/libin/Desktop/iosTest/ios/Pods/JCore/libjcore-ios-2.7.1.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
/Users/libin/Desktop/iosTest/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'JPush' from project 'Pods')
/Users/libin/Desktop/iosTest/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'JCore' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12.
模拟器运行报错,flutter和jpush都是最新版本,创建一个新项目引入也是报错,日志如下: Error output from Xcode build: ↳ --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:F229A40A-C074-4376-8623-D5DBB39D83FA, OS:15.0, name:iPad (9th generation) } { platform:iOS Simulator, id:2DCBD882-E6DC-43BA-9AF4-B2800FE24BE6, OS:15.0, name:iPad Air (4th generation) } { platform:iOS Simulator, id:BBA9FEB7-C016-4227-A291-61E11BB34735, OS:15.0, name:iPad Pro (9.7-inch) } { platform:iOS Simulator, id:32601F46-68CB-423E-B4AD-BCDAA83CBD85, OS:15.0, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:6C46A382-DF9A-48A4-85E3-8E6738777E0F, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) } { platform:iOS Simulator, id:8453A82A-3A5C-4A4D-8CCE-875ECA1F0BDC, OS:15.0, name:iPad mini (6th generation) } { platform:iOS Simulator, id:935EDBA7-36BB-4546-AAEC-BE80C4AB3725, OS:15.0, name:iPhone 8 } { platform:iOS Simulator, id:BB84C339-D756-40A4-A346-DD083DD70069, OS:15.0, name:iPhone 8 Plus } { platform:iOS Simulator, id:413DE300-1661-4BEC-B8BE-C91C47E36DCC, OS:15.0, name:iPhone 11 } { platform:iOS Simulator, id:5A0522EC-3C53-48A8-A975-D85D71B9661B, OS:15.0, name:iPhone 11 Pro } { platform:iOS Simulator, id:59E93F78-E08C-4645-986D-E666BCC3990E, OS:15.0, name:iPhone 11 Pro Max } { platform:iOS Simulator, id:EA7505AE-D7FB-4B41-9C9D-14152592FFE2, OS:15.0, name:iPhone 12 } { platform:iOS Simulator, id:1FACEE67-F990-4A6C-B626-C64700724B01, OS:15.0, name:iPhone 12 Pro } { platform:iOS Simulator, id:0A6101EA-C350-4733-B0A0-2B00BF00C3C8, OS:15.0, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:3532313E-06DF-450F-9581-5C058F23A390, OS:15.0, name:iPhone 12 mini } { platform:iOS Simulator, id:BC5106BE-654E-4749-81EF-0F6A8D51A540, OS:15.0, name:iPhone 13 } { platform:iOS Simulator, id:DC8F79B1-875D-4921-92D1-5C0322A10853, OS:15.0, name:iPhone 13 Pro } { platform:iOS Simulator, id:3F7BCB32-4E67-4450-81B3-740537845BDF, OS:15.0, name:iPhone 13 Pro Max } { platform:iOS Simulator, id:996768DE-8676-440D-817D-A27A050AD4BF, OS:15.0, name:iPhone 13 mini } { platform:iOS Simulator, id:3187AEC3-D1A6-47CE-BF0E-CBF3FBD1CE56, OS:15.0, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id:6E44AE72-EE8C-432F-A502-EF74F9636BF2, OS:15.0, name:iPod touch (7th generation) } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } BUILD FAILED
Xcode's output: ↳ In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6: /Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:796:34: warning: 'UNUserNotificationCenter' is only available on iOS 10.0 or newer [-Wunguarded-availability]
~~~ In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6: /Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:147:46: note: 'setTimeInterval:' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0 @property (nonatomic, assign) NSTimeInterval timeInterval NS_AVAILABLE_IOS(10_0); // 用来设置触发推送的时间,iOS10以上有效,优先级为III ^ /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:418:21: note: enclose 'setTimeInterval:' in an @available check to silence this warning trigger.timeInterval = interval; ^~~~ /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:521:13: warning: 'setThreadIdentifier:' is only available on iOS 10.0 or newer [-Wunguarded-availability] content.threadIdentifier = @"threadIdentifier"; ^~~~In file included from /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:6: /Users/libin/Desktop/iosTest/ios/Pods/Headers/Public/JPush/JPUSHService.h:128:39: note: 'setThreadIdentifier:' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 9.0.0 @property (nonatomic, copy) NSString *threadIdentifier NS_AVAILABLE_IOS(10_0); // 线程或与推送请求相关对话的标识,iOS10以上有效,可用来对推送进行分组 ^ /Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:521:13: note: enclose 'setThreadIdentifier:' in an @available check to silence this warning content.threadIdentifier = @"threadIdentifier"; ^~~~/Users/libin/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.6/ios/Classes/JPushPlugin.m:606:168: warning: conflicting parameter types in implementation of 'jpushNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:': 'void (^strong)(void)' vs 'void (^strong)()' [-Wmismatched-parameter-types]Could not build the application for the simulator. Error launching application on iPhone 12.