flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[health and 4.0.0]

Open sunilk44 opened this issue 3 years ago • 0 comments

Describe the bug

Xcode build done. 71.6s Failed to build iOS app Error output from Xcode build: ↳ 2022-06-21 16:55:15.295 xcodebuild[24518:5208628] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2022-06-21 16:55:15.296 xcodebuild[24518:5208628] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore ** BUILD FAILED **

Xcode's output: ↳ Writing result bundle at path: /var/folders/cc/6dty73fs08x1c8ylqq_bm2m80000gn/T/flutter_tools.gWzBI8/flutter_ios_build_temp_dirM2R67v/temporary_xcresult_bundle

Command CompileSwiftSources failed with a nonzero exit code
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
Command CompileSwiftSources failed with a nonzero exit code
/Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-4.0.7/ios/Classes/FLTSharePlusPlugin.m:12:44: warning:
'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it
returns a key window across all connected scenes [-Wdeprecated-declarations]
  return [UIApplication sharedApplication].keyWindow.rootViewController;
                                           ^
In module 'UIKit' imported from /Users/itr/Documents/new
Apps/leisure_league_client/kidsrunfree-ll_mobile_frontend-3664cef54576/ios/Pods/Target Support
Files/share_plus/share_plus-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Library/Frameworks/UIK
it.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support
multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
                                                  ^
/Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-4.0.7/ios/Classes/FLTSharePlusPlugin.m:364:15: warning:
unused variable 'pathExtension' [-Wunused-variable]
    NSString *pathExtension = [path pathExtension];
              ^
2 warnings generated.
/Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.3.0/ios/Classes/strategies/PhonePermissionStrat
egy.m:50:18: warning: incompatible pointer types initializing 'CTCarrier *' with an expression of type 'NSDictionary<NSString
*,CTCarrier *> * _Nullable' [-Wincompatible-pointer-types]
      CTCarrier *carrier = [netInfo serviceSubscriberCellularProviders];
                 ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
Command CompileSwiftSources failed with a nonzero exit code
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
/Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/health-4.0.0/ios/Classes/SwiftHealthPlugin.swift:449:134: error:
expected expression after operator
                        "workoutActivityType": workoutActivityTypeMap.first(where: {$0.value == sample.workoutActivityType})?.key ??
                        default value,
                                                                                                                          ^
/Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/health-4.0.0/ios/Classes/SwiftHealthPlugin.swift:450:115: error:
expected expression after operator
                        "totalEnergyBurned": sample.totalEnergyBurned?.doubleValue(for: HKUnit.largeCalorie()) ?? default value,
                                                                                                                  ^
/Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/health-4.0.0/ios/Classes/SwiftHealthPlugin.swift:452:100: error:
editor placeholder in source file
                        "totalDistance": sample.totalDistance?.doubleValue(for: HKUnit.meter()) ?? <#default value#> as Any,
                                                                                                   ^
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/itr/Documents/new Apps/leisure_league_client/kidsrunfree-ll_mobile_frontend-3664cef54576/ios/Pods/Pods.xcodeproj: 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 15.5.99. (in target 'Reachability' from project 'Pods')
/Users/itr/Documents/new Apps/leisure_league_client/kidsrunfree-ll_mobile_frontend-3664cef54576/ios/Pods/Pods.xcodeproj: 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 15.5.99. (in target 'FMDB' from project 'Pods')
/Users/itr/Documents/new Apps/leisure_league_client/kidsrunfree-ll_mobile_frontend-3664cef54576/ios/Pods/Pods.xcodeproj: 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 15.5.99. (in target 'AppAuth' from project 'Pods')

Result bundle written to path:
    /var/folders/cc/6dty73fs08x1c8ylqq_bm2m80000gn/T/flutter_tools.gWzBI8/flutter_ios_build_temp_dirM2R67v/temporary_xcresult_bundle

Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code

Swift Compiler Error (Xcode): Expected expression after operator /Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/health-4.0.0/ios/Classes/SwiftHealthPlugin.swift:448:133

Swift Compiler Error (Xcode): Expected expression after operator /Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/health-4.0.0/ios/Classes/SwiftHealthPlugin.swift:449:114

Swift Compiler Error (Xcode): Editor placeholder in source file /Users/itr/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/health-4.0.0/ios/Classes/SwiftHealthPlugin.swift:451:99

To Reproduce

flutter build ios

Expected behavior

ios should build perfectly

Actual behavior

ios build failed on health

sunilk44 avatar Jun 21 '22 13:06 sunilk44