Skip to content

Error (Xcode): Undefined symbol with version 10.x #62

@Hesamedin

Description

@Hesamedin

Hello, I used 9.6.0 without any problem in my Flutter project. I updated almost all of my dependencies and then I had no choice but to update FirebaseFirestore to 10.0.0. By doing this, I cannot build my project for iOS. This is what I see in the log of Azure CLI for the following command:

flutter build ios --no-codesign --build-number=12899 --target=lib/main_dev.dart
Output Log (Click me)

2022-10-20T16:51:59.3448730Z ##[section]Starting: Build for iOS (Debug)
2022-10-20T16:51:59.3465320Z ==============================================================================
2022-10-20T16:51:59.3465740Z Task : Flutter Build Task
2022-10-20T16:51:59.3466040Z Description : Build a Flutter application project.
2022-10-20T16:51:59.3466320Z Version : 0.3.5
2022-10-20T16:51:59.3466530Z Author : Hey24sheep
2022-10-20T16:51:59.3466900Z Help : More Information
2022-10-20T16:51:59.3467340Z ==============================================================================
2022-10-20T16:51:59.5789140Z [command]/Users/runner/work/1/s/flutter/bin/flutter build ios --no-codesign --build-number=12899 --target=lib/main_dev.dart
2022-10-20T16:52:29.2558220Z Running "flutter pub get" in s... 28.4s
2022-10-20T16:52:30.6795910Z Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
2022-10-20T16:52:49.0210410Z Building com.ATCO.CustomerOutageNotification for device (ios-release)...
2022-10-20T16:59:11.8309070Z Running pod install... 374.0s
2022-10-20T17:05:19.0617120Z Running Xcode build...
2022-10-20T17:05:19.0620560Z Xcode build done. 367.2s
2022-10-20T17:05:20.5896710Z Failed to build iOS app
2022-10-20T17:05:20.5915480Z Error output from Xcode build:
2022-10-20T17:05:20.5916530Z ↳
2022-10-20T17:05:20.5918620Z ** BUILD FAILED **
2022-10-20T17:05:20.5919480Z
2022-10-20T17:05:20.5919820Z
2022-10-20T17:05:20.5920390Z Xcode's output:
2022-10-20T17:05:20.5920800Z ↳
2022-10-20T17:05:20.5940100Z Writing result bundle at path:
2022-10-20T17:05:20.5940800Z /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/flutter_tools.CuwB9v/flutter_ios_build_temp_diryBTe5y/temporary_xcresult_bundle
2022-10-20T17:05:20.5941270Z
2022-10-20T17:05:20.5941680Z 1 warning generated.
2022-10-20T17:05:20.5943120Z /Users/runner/work/1/s/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.9.1/ios/Classes/FlutterLocalNotificationsPlugin.m:13:3: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations]
2022-10-20T17:05:20.5944210Z UILocalNotification *_launchNotification;
2022-10-20T17:05:20.5944550Z ^
2022-10-20T17:05:20.5945340Z In module 'UIKit' imported from /Users/runner/work/1/s/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
2022-10-20T17:05:20.5946770Z /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here
2022-10-20T17:05:20.5947740Z @interface UILocalNotification : NSObject<NSCopying, NSCoding>
2022-10-20T17:05:20.5948140Z ^
2022-10-20T17:05:20.5949360Z /Users/runner/work/1/s/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.9.1/ios/Classes/FlutterLocalNotificationsPlugin.m:335:4: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations]
2022-10-20T17:05:20.5950540Z - (UILocalNotification *)buildStandardUILocalNotification:
2022-10-20T17:05:20.5950940Z ^
2022-10-20T17:05:20.5951720Z In module 'UIKit' imported from /Users/runner/work/1/s/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
2022-10-20T17:05:20.5953140Z /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here
2022-10-20T17:05:20.5955090Z @interface UILocalNotification : NSObject<NSCopying, NSCoding>
2022-10-20T17:05:20.5955470Z ^
2022-10-20T17:05:20.5956750Z /Users/runner/work/1/s/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.9.1/ios/Classes/FlutterLocalNotificationsPlugin.m:935:34: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations]
2022-10-20T17:05:20.5957860Z didReceiveLocalNotification:(UILocalNotification *)notification {
2022-10-20T17:05:20.5958300Z ^
2022-10-20T17:05:20.5959080Z In module 'UIKit' imported from /Users/runner/work/1/s/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
2022-10-20T17:05:20.5960510Z /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here
2022-10-20T17:05:20.5961890Z @interface UILocalNotification : NSObject<NSCopying, NSCoding>
2022-10-20T17:05:20.5962280Z ^
.
.
.
.
.
2022-10-20T17:05:20.6344860Z
2022-10-20T17:05:20.6344980Z
2022-10-20T17:05:20.6345610Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC0D16DecodingStrategyO6base64yA2EmFWC
2022-10-20T17:05:20.6345960Z
2022-10-20T17:05:20.6346470Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO14useDefaultKeysyA2EmFWC
2022-10-20T17:05:20.6346840Z
2022-10-20T17:05:20.6347320Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC19keyDecodingStrategyAC03KeygH0OvsTj
2022-10-20T17:05:20.6347670Z
2022-10-20T17:05:20.6348220Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20DateDecodingStrategyO6customyAE10Foundation0F0Vs0E0_pKccAEmFWC
2022-10-20T17:05:20.6348640Z
2022-10-20T17:05:20.6349130Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20dataDecodingStrategyAC0dgH0OvsTj
2022-10-20T17:05:20.6349470Z
2022-10-20T17:05:20.6349970Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20dateDecodingStrategyAC04DategH0OvsTj
2022-10-20T17:05:20.6350320Z
2022-10-20T17:05:20.6350870Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj
2022-10-20T17:05:20.6351290Z
2022-10-20T17:05:20.6351810Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC34NonConformingFloatDecodingStrategyO5throwyA2EmFWC
2022-10-20T17:05:20.6352190Z
2022-10-20T17:05:20.6352710Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC34nonConformingFloatDecodingStrategyAC03NonghiJ0OvsTj
2022-10-20T17:05:20.6353090Z
2022-10-20T17:05:20.6353570Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC6decode_4fromxxm_yptKSeRzlFTj
2022-10-20T17:05:20.6354320Z
2022-10-20T17:05:20.6354840Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC8userInfoSDys010CodingUserG3KeyVypGvsTj
2022-10-20T17:05:20.6355200Z
2022-10-20T17:05:20.6355680Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC0D16EncodingStrategyO6base64yA2EmFWC
2022-10-20T17:05:20.6356030Z
2022-10-20T17:05:20.6356530Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC19KeyEncodingStrategyO14useDefaultKeysyA2EmFWC
2022-10-20T17:05:20.6356910Z
2022-10-20T17:05:20.6357380Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC19keyEncodingStrategyAC03KeygH0OvsTj
2022-10-20T17:05:20.6357730Z
2022-10-20T17:05:20.6358350Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20DateEncodingStrategyO6customyAEy10Foundation0F0V_s0E0_ptKccAEmFWC
2022-10-20T17:05:20.6358800Z
2022-10-20T17:05:20.6359390Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20dataEncodingStrategyAC0dgH0OvsTj
2022-10-20T17:05:20.6360100Z
2022-10-20T17:05:20.6360650Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20dateEncodingStrategyAC04DategH0OvsTj
2022-10-20T17:05:20.6361000Z
2022-10-20T17:05:20.6361550Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj
2022-10-20T17:05:20.6361970Z
2022-10-20T17:05:20.6362490Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC34NonConformingFloatEncodingStrategyO5throwyA2EmFWC
2022-10-20T17:05:20.6362870Z
2022-10-20T17:05:20.6363490Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC34nonConformingFloatEncodingStrategyAC03NonghiJ0OvsTj
2022-10-20T17:05:20.6363880Z
2022-10-20T17:05:20.6364350Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC6encodeyypxKSERzlFTj
2022-10-20T17:05:20.6364660Z
2022-10-20T17:05:20.6365170Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC8userInfoSDys010CodingUserG3KeyVypGvsTj
2022-10-20T17:05:20.6365520Z
2022-10-20T17:05:20.6366030Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift38StructureCodingPassthroughTypeResolverP02isfG0ySbqd__lFZTq
2022-10-20T17:05:20.6366390Z
2022-10-20T17:05:20.6366730Z Encountered error while building for device.
2022-10-20T17:05:20.6878110Z ##[error]Error: The process '/Users/runner/work/1/s/flutter/bin/flutter' failed with exit code 1
2022-10-20T17:05:20.6896480Z ##[section]Finishing: Build for iOS (Debug)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions