jpush / jpush-flutter-plugin

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
842 stars 352 forks source link

模拟器运行报错,flutter和jpush都是最新版本 #305

Open andfaraway opened 2 years ago

andfaraway commented 2 years ago

模拟器运行报错,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]

Could not build the application for the simulator. Error launching application on iPhone 12.

WALL-E-WEB commented 2 years ago

我也是这个问题,你解决了吗;