1.Xcode12 打包报错
Dart snapshot generator failed with exit code 1
Building App.framework for arm64...
Building AOT snapshot in release mode (ios-release)... 13.2s
Built to build/aot/.
Snapshotting (IOSArch.armv7) exited with non-zero exit code: 1
Snapshotting (IOSArch.arm64) exited with non-zero exit code: 0
cp: build/aot/App.framework: No such file or directory
error: cannot parse the debug map for 'build/aot/App.framework/App': No such file or directory
Failed to generate debug symbols (dSYM) file for build/aot/App.framework/App.
Xcode12移除了Valid Architectures(有效架构),设置Excluded Architectures(无效架构)为armv7 armv7s
2.iOS 打包报错
在flutter执行iOS打包pod install时,提示错误
[!]Oh no,an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60size%27+for+nil%3ANilClass&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
- NoMethodError - undefined method `size' for nil:NilClass
https://github.com/CocoaPods/CocoaPods/issues/8377 [closed] [19 comments]
6 weeks ago
- NoMethodError - undefined method `size' for nil:NilClass
https://github.com/CocoaPods/CocoaPods/issues/9484 [closed] [14 comments]
6 weeks ago
- NoMethodError - undefined method `each' for nil:NilClass
https://github.com/CocoaPods/CocoaPods/issues/9239 [closed] [7 comments]
6 weeks ago
and 5 more at:
https://github.com/cocoapods/cocoapods/search?q=undefined%20method%20%60size%27%20for%20nil&type=Issues&utf8=✓
依次使用命令:
flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
3.旧flutter项目升级flutter版本,iOS打包错误
报了很多
command used in a comment that is not attached to a function declaration [-W
和
```handlebars
Xcode's output:
↳
=== BUILD TARGET yp_image_picker OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/calvinmuller/.pub-cache/git/flutter_card_io-6566879ce6d40e690355f1eb101df30c78df40c0/ios/Classes/FlutterCardIoPlugin.m:44:38: warning: assigning to 'id<UINavigationControllerDelegate> _Nullable' from incompatible type
'FlutterCardIoPlugin *const __strong'
_scanViewController.delegate = self;
^ ~~~~
1 warning generated.
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/local_auth-0.6.1+3/ios/Classes/FLTLocalAuthPlugin.m:117:33: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior
[-Wimplicit-retain-self]
lastCallArgs = arguments;
^
self->
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/local_auth-0.6.1+3/ios/Classes/FLTLocalAuthPlugin.m:118:33: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior
[-Wimplicit-retain-self]
lastResult = result;
^
self->
2 warnings generated.
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/sqflite-1.2.1/ios/Classes/SqflitePlugin.m:2:9: warning: non-portable path to file '<fmdb/FMDB.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <FMDB/FMDB.h>
^~~~~~~~~~~~~
<fmdb/FMDB.h>
1 warning generated.
In file included from /Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/uni_links-0.2.0/ios/Classes/UniLinksPlugin.m:1:
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/uni_links-0.2.0/ios/Classes/UniLinksPlugin.h:4:4: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
+ (instancetype)sharedInstance;
^
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/uni_links-0.2.0/ios/Classes/UniLinksPlugin.h:4:4: note: insert '_Nullable' if the pointer may be null
+ (instancetype)sharedInstance;
^
_Nullable
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/uni_links-0.2.0/ios/Classes/UniLinksPlugin.h:4:4: note: insert '_Nonnull' if the pointer should never be null
+ (instancetype)sharedInstance;
^
_Nonnull
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/uni_links-0.2.0/ios/Classes/UniLinksPlugin.h:7:33: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
[-Wnullability-completeness]
restorationHandler:(void (^)(NSArray *_Nullable))restorationHandler;
^
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/uni_links-0.2.0/ios/Classes/UniLinksPlugin.h:7:33: note: insert '_Nullable' if the block pointer may be null
restorationHandler:(void (^)(NSArray *_Nullable))restorationHandler;
^
_Nullable
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/uni_links-0.2.0/ios/Classes/UniLinksPlugin.h:7:33: note: insert '_Nonnull' if the block pointer should never be null
restorationHandler:(void (^)(NSArray *_Nullable))restorationHandler;
^
_Nonnull
2 warnings generated.
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.12/ios/Classes/FLTFirebaseMessagingPlugin.m:193:43: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for
downstream message handling. [-Wdeprecated-declarations]
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
In module 'FirebaseMessaging' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/FirebaseMessaging/Firebase/Messaging/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/sys/cdefs.h:191:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.12/ios/Classes/FLTFirebaseMessagingPlugin.m:277:24: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for
downstream message handling. [-Wdeprecated-declarations]
didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
In module 'FirebaseMessaging' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/FirebaseMessaging/Firebase/Messaging/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/sys/cdefs.h:191:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.12/ios/Classes/FLTFirebaseMessagingPlugin.m:140:30: warning: 'shouldEstablishDirectChannel' is deprecated: FCM direct channel is deprecated, please use APNs
channel for downstream message delivery. [-Wdeprecated-declarations]
[FIRMessaging messaging].shouldEstablishDirectChannel = true;
^
In module 'FirebaseMessaging' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/FirebaseMessaging/Firebase/Messaging/Public/FIRMessaging.h:283:56: note: 'shouldEstablishDirectChannel' has been explicitly marked deprecated here
@property(nonatomic) BOOL shouldEstablishDirectChannel DEPRECATED_MSG_ATTRIBUTE(
^
In module 'UIKit' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/AvailabilityMacros.h:182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.12/ios/Classes/FLTFirebaseMessagingPlugin.m:194:52: warning: 'appData' is deprecated [-Wdeprecated-declarations]
[self didReceiveRemoteNotification:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/FirebaseMessaging/Firebase/Messaging/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated here
@property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'UIKit' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/AvailabilityMacros.h:180:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.12/ios/Classes/FLTFirebaseMessagingPlugin.m:276:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)messaging:(FIRMessaging *)messaging
^
In module 'FirebaseMessaging' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/FirebaseMessaging/Firebase/Messaging/Public/FIRMessaging.h:253:1: note: method 'messaging:didReceiveMessage:' declared here
- (void)messaging:(FIRMessaging *)messaging
^
/Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.12/ios/Classes/FLTFirebaseMessagingPlugin.m:278:63: warning: 'appData' is deprecated [-Wdeprecated-declarations]
[_channel invokeMethod:@"onMessage" arguments:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/FirebaseMessaging/Firebase/Messaging/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated here
@property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'UIKit' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/AvailabilityMacros.h:180:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
6 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
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.
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:85:34: warning: expression implicitly coerced from 'UIImage?' to 'Any'
items.append(image)
^~~~~
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:85:34: note: provide a default value to avoid this warning
items.append(image)
^~~~~
?? <#default value#>
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:85:34: note: force-unwrap the value to avoid this warning
items.append(image)
^~~~~
!
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:85:34: note: explicitly cast to 'Any' with 'as Any' to silence this warning
items.append(image)
^~~~~
as Any
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:97:33: warning: expression implicitly coerced from 'String?' to 'Any'
"activity": activity?.rawValue
^~~~~~~~~~~~~~~~~~
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:97:43: note: provide a default value to avoid this warning
"activity": activity?.rawValue
~~~~~~~~~~^~~~~~~~
?? <#default value#>
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:97:43: note: force-unwrap the value to avoid this warning
"activity": activity?.rawValue
~~~~~~~~~~^~~~~~~~
!
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:97:43: note: explicitly cast to 'Any' with 'as Any' to silence this warning
"activity": activity?.rawValue
~~~~~~~~~~^~~~~~~~
as Any
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/SharePlugin.swift:102:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
} catch let error {
^
/Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/Plugins/WebviewPlugin.swift:47:34: warning: 'openURL' was deprecated in iOS 10.0
UIApplication.shared.openURL(NSURL(string:text)! as URL)
^
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
While building module 'uni_links' imported from /Users/calvinmuller/iStreet/Mobile/donatenation/ios/Runner/GeneratedPluginRegistrant.m:62:
In file included from <module-includes>:1:
In file included from /Users/calvinmuller/iStreet/Mobile/donatenation/build/ios/Debug-iphonesimulator/uni_links/uni_links.framework/Headers/uni_links-umbrella.h:13:
/Users/calvinmuller/iStreet/Mobile/donatenation/build/ios/Debug-iphonesimulator/uni_links/uni_links.framework/Headers/UniLinksPlugin.h:4:4: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or
_Null_unspecified) [-Wnullability-completeness]
+ (instancetype)sharedInstance;
^
/Users/calvinmuller/iStreet/Mobile/donatenation/build/ios/Debug-iphonesimulator/uni_links/uni_links.framework/Headers/UniLinksPlugin.h:4:4: note: insert '_Nullable' if the pointer may be null
+ (instancetype)sharedInstance;
^
_Nullable
/Users/calvinmuller/iStreet/Mobile/donatenation/build/ios/Debug-iphonesimulator/uni_links/uni_links.framework/Headers/UniLinksPlugin.h:4:4: note: insert '_Nonnull' if the pointer should never be null
+ (instancetype)sharedInstance;
^
_Nonnull
/Users/calvinmuller/iStreet/Mobile/donatenation/build/ios/Debug-iphonesimulator/uni_links/uni_links.framework/Headers/UniLinksPlugin.h:7:33: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or
_Null_unspecified) [-Wnullability-completeness]
restorationHandler:(void (^)(NSArray *_Nullable))restorationHandler;
^
/Users/calvinmuller/iStreet/Mobile/donatenation/build/ios/Debug-iphonesimulator/uni_links/uni_links.framework/Headers/UniLinksPlugin.h:7:33: note: insert '_Nullable' if the block pointer may be null
restorationHandler:(void (^)(NSArray *_Nullable))restorationHandler;
^
_Nullable
/Users/calvinmuller/iStreet/Mobile/donatenation/build/ios/Debug-iphonesimulator/uni_links/uni_links.framework/Headers/UniLinksPlugin.h:7:33: note: insert '_Nonnull' if the block pointer should never be null
restorationHandler:(void (^)(NSArray *_Nullable))restorationHandler;
^
_Nonnull
2 warnings generated.
2 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GULSecureCoding", referenced from:
objc-class-ref in FirebaseMessaging(FIRMessagingPubSub.o)
"_OBJC_CLASS_$_GULHeartbeatDateStorage", referenced from:
objc-class-ref in FirebaseCore(FIRHeartbeatInfo.o)
"_GULLogBasic", referenced from:
_FIRLogBasic in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_GULAppEnvironmentUtil", referenced from:
objc-class-ref in FirebaseCore(FIRApp.o)
objc-class-ref in FirebaseInstanceID(FIRInstanceID.o)
objc-class-ref in FirebaseCore(FIRBundleUtil.o)
"_GULResetLogger", referenced from:
_FIRResetLogger in FirebaseCore(FIRLogger.o)
"_GULLoggerRegisterVersion", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_GULLoggerInitializeASL", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_GULLoggerEnableSTDERR", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_GULUserDefaults", referenced from:
objc-class-ref in FirebaseInstanceID(FIRInstanceID.o)
objc-class-ref in FirebaseMessaging(FIRMessaging.o)
objc-class-ref in FirebaseInstanceID(FIRInstanceIDUtilities.o)
objc-class-ref in FirebaseMessaging(FIRMessagingPubSub.o)
objc-class-ref in FirebaseInstallations(FIRInstallationsStore.o)
objc-class-ref in FirebaseInstanceID(FIRInstanceIDCheckinPreferences.o)
"_GULLoggerForceDebug", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_GULSetLoggerLevel", referenced from:
_FIRSetLoggerLevel in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_GULAppDelegateSwizzler", referenced from:
objc-class-ref in FirebaseMessaging(FIRMessaging.o)
objc-class-ref in FirebaseMessaging(FIRMessagingAnalytics.o)
objc-class-ref in FirebaseMessaging(FIRMessagingContextManagerService.o)
objc-class-ref in FirebaseMessaging(FIRMessagingRemoteNotificationsProxy.o)
"_OBJC_CLASS_$_GULReachabilityChecker", referenced from:
objc-class-ref in FirebaseMessaging(FIRMessaging.o)
"_GULIsLoggableLevel", referenced from:
_FIRIsLoggableLevel in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_CardIOPaymentViewController", referenced from:
objc-class-ref in flutter_card_io(FlutterCardIoPlugin.o)
ld: symbol(s) not found for architecture x86_64
运行
rm -rf ios/Podfile ios/Podfile.lock ios/Pods ios/Runner.xcworkspace
把旧的配置清除,然后重新打包
3.使用webview_flutter插件,安卓webview无法适应屏幕
在Android Studio找到该插件源码,路径:webview_flutter>java>FlutterWebview
页面上增加
webView.getSettings().setUseWideViewPort(true);
webView.getSettings().setLoadWithOverviewMode(true);
注意,当flutter clean后,需重新设置
4.Xcode14 打包报错
rsync error: some files could not be transferred (code 23) at /AppleInternal
Xcode搜索
source="$(readlink "${source}")"
替换为
source="$(readlink -f "${source}")"