I’ve downloaded the Flutter template from my first app, but when I tried to run, I received a lot of warnings and a Error:
Launching lib/main.dart on iPhone 11 Pro Max in debug mode…
Xcode build done. 18.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode’s output:
↳
/Users/dcastaneda/Desktop/demo/ios/Pods/Starscream/Sources/Starscream/Compression.swift:59:25: warning: ‘withUnsafeBytes’ is deprecated: use withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
instead
return try data.withUnsafeBytes { (bytes:UnsafePointer) -> Data in
^
/Users/dcastaneda/Desktop/demo/ios/Pods/Starscream/Sources/Starscream/Compression.swift:83:29: warning: initialization of ‘UnsafeMutablePointer’ results in a dangling pointer
strm.next_out = UnsafeMutablePointer(&buffer)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
…
/Users/dcastaneda/development/flutter/.pub-cache/hosted/pub.dartlang.org/backendless_sdk-0.1.1/ios/Classes/CallHandlers/GeoCallHandler.swift:400:31: warning: ‘GeoPoint’ is deprecated: The GeoPoint class is deprecated and will be removed from SDK in the nearest future
let newGeoPoint = GeoPoint()
^
/Users/dcastaneda/development/flutter/.pub-cache/hosted/pub.dartlang.org/backendless_sdk-0.1.1/ios/Classes/Helpers/FlutterGeofenceCallback.swift:13:32: warning: ‘IGeofenceCallback’ is deprecated: The IGeofenceCallback protocol is deprecated and will be removed from SDK in the nearest future
class FlutterGeofenceCallback: IGeofenceCallback {
^
/Users/dcastaneda/development/flutter/.pub-cache/hosted/pub.dartlang.org/backendless_sdk-0.1.1/ios/Classes/CallHandlers/GeoCallHandler.swift:471:29: warning: ‘GeoPoint’ is deprecated: The GeoPoint class is deprecated and will be removed from SDK in the nearest future
guard let geoPoint: GeoPoint = arguments[Args.geoPoint].flatMap(cast) else {
^
/Users/dcastaneda/development/flutter/.pub-cache/hosted/pub.dartlang.org/backendless_sdk-0.1.1/ios/Classes/CallHandlers/MessagingCallHandler.swift:365:25: error: use of unresolved identifier 'EmailBodyparts’
** let bodyParts = EmailBodyparts()**
** ^~~****
** /Users/dcastaneda/development/flutter/.pub-cache/hosted/pub.dartlang.org/backendless_sdk-0.1.1/ios/Classes/CallHandlers/MessagingCallHandler.swift:393:25: error: use of unresolved identifier ‘EmailBodyparts’**
** let bodyParts = EmailBodyparts()**
** ^
** /Users/dcastaneda/development/flutter/.pub-cache/hosted/pub.dartlang.org/backendless_sdk-0.1.1/ios/Classes/CallHandlers/MessagingCallHandler.swift:418:25: error: use of unresolved identifier ‘EmailBodyparts’**
** let bodyParts = EmailBodyparts()**
** ^~~~~~~~~~~~~~**
warning: Could not read serialized diagnostics file: Invalid File: Invalid diagnostics signature (in target ‘backendless_sdk’ from project ‘Pods’)
warning: Could not read serialized diagnostics file: Invalid File: Invalid diagnostics signature (in target ‘backendless_sdk’ from project ‘Pods’)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the “Swift 3 @objc Inference” build setting to “Default” for the “Runner” target. (in target ‘Runner’ from project ‘Runner’)
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Exited (sigterm)
What I’m doing wrong ?