jpush-flutter-plugin icon indicating copy to clipboard operation
jpush-flutter-plugin copied to clipboard

xCode13 iOS15引入jpush-flutter2.2.2 编译报错

Open sunpulun opened this issue 4 years ago • 4 comments

新建项目,仅仅引入

cupertino_icons: ^1.0.2 jpush_flutter: ^2.2.2

也会产生变异错误。

log如下

Launching lib/main.dart on iPhone 13 Pro Max in debug mode... Legacy build system detected, removing /Users/sunpulun/AndroidStudioProjects/newios/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings Running Xcode build... Xcode build done. 4.6s Failed to build iOS app Error output from Xcode build: ↳ objc[76605]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x22193eb90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10403c2c8). One of the two will be used. Which one is undefined. objc[76605]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x22193ebe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10403c318). One of the two will be used. Which one is undefined. --- 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:399BC481-F7A5-4DA3-8696-86D4026AAE36, OS:15.2, name:iPad (9th generation) } { platform:iOS Simulator, id:976EE3F4-5074-436B-AFAB-3B9A120AD0EE, OS:15.2, name:iPad Air (4th generation) } { platform:iOS Simulator, id:713B85D1-EBCF-46AD-B966-7D0CF3B5F0AB, OS:15.2, name:iPad Pro (9.7-inch) } { platform:iOS Simulator, id:45BD9D17-E284-4CF7-834B-1FC1FE7F8445, OS:15.2, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:7E544169-2793-41A2-AC27-1B4A6794E2E0, OS:15.2, name:iPad Pro (12.9-inch) (5th generation) } { platform:iOS Simulator, id:051EA3F7-C040-44D0-B63F-95534CDDE6ED, OS:15.2, name:iPad mini (6th generation) } { platform:iOS Simulator, id:9E0DAA49-2F91-4FE6-A95B-BF5F9C7D5F0E, OS:15.2, name:iPhone 8 } { platform:iOS Simulator, id:11303C10-38C7-4887-A9C1-F33A8B12618E, OS:15.2, name:iPhone 8 Plus } { platform:iOS Simulator, id:B2087718-1A86-4984-A256-290FD3981EAD, OS:15.2, name:iPhone 11 } { platform:iOS Simulator, id:600710CB-D2C8-43BC-AAED-6A7A554FF8E1, OS:15.2, name:iPhone 11 Pro } { platform:iOS Simulator, id:68520B1C-BB39-424F-98CC-6788DC2FB5DA, OS:15.2, name:iPhone 11 Pro Max } { platform:iOS Simulator, id:54FAE3ED-3DBB-4EEE-9098-EF1B00B293ED, OS:15.2, name:iPhone 12 } { platform:iOS Simulator, id:2AEAFB8C-4CD5-42C6-A16E-4ACE11FC4810, OS:15.2, name:iPhone 12 Pro } { platform:iOS Simulator, id:78A7A06C-E82A-40DE-9241-88ACD3029ED4, OS:15.2, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:A3C9FF6F-FC6E-4B6A-AE68-AA233DF61F32, OS:15.2, name:iPhone 12 mini } { platform:iOS Simulator, id:A5A04BDA-39C7-4127-A4E4-4DB281420C58, OS:15.2, name:iPhone 13 } { platform:iOS Simulator, id:7484D3D2-4CAA-4B51-987E-B1BE695AF44F, OS:15.2, name:iPhone 13 Pro } { platform:iOS Simulator, id:E82C28E3-BC5C-4E40-B8AA-A34AD0475177, OS:15.2, name:iPhone 13 Pro Max } { platform:iOS Simulator, id:2BBB392F-9E45-4D83-B71B-59B9C9CB05F9, OS:15.2, name:iPhone 13 mini } { platform:iOS Simulator, id:93383A4A-3917-46E2-BA02-744CF4A41AF9, OS:15.2, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id:D8E6551D-F80B-4ED0-AAB2-6C46B29CED1E, OS:15.2, name:iPod touch (7th generation) } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001158D211D1001E } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } ** BUILD FAILED **

Xcode's output: ↳ Undefined symbols for architecture x86_64: "OBJC_CLASS$_JCommonUtilities", referenced from: objc-class-ref in libjcore-ios-3.1.0.a(JCOREConfigController.o) "_JCOMMON_ADVERTISING_ID", referenced from: -[JCOREConfigController setAdvertisingId:] in libjcore-ios-3.1.0.a(JCOREConfigController.o) "OBJC_CLASS$_JCommonService", referenced from: objc-class-ref in libjcore-ios-3.1.0.a(JCOREServiceController.o) ld: symbol(s) not found for architecture x86_64 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 dependency order /Users/sunpulun/AndroidStudioProjects/newios/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.2.99. (in target 'JPush' from project 'Pods') /Users/sunpulun/AndroidStudioProjects/newios/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.2.99. (in target 'JCore' from project 'Pods')

Could not build the application for the simulator. Error launching application on iPhone 13 Pro Max.

sunpulun avatar Jan 18 '22 11:01 sunpulun

刚刚下载了demo下来试试,demo也跑不起来

sunpulun avatar Jan 19 '22 03:01 sunpulun

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

WALL-E-WEB avatar Mar 13 '22 14:03 WALL-E-WEB

同样的问题 自从装了google firebase的环境就这样了

TeacherXue avatar May 13 '22 12:05 TeacherXue

@sunpulun @WALL-E-WEB 请问你是m1的 mac么?

TeacherXue avatar May 13 '22 12:05 TeacherXue