我在创建要发布的iOS版本时遇到问题。我可以毫无问题地在iOS模拟器上运行该应用程序,但无法使用 flutter build ios --release 命令创建iOS发行版。 我尝试将xcode构建系统从新构建系统更改为旧版构建系统,但是找不到解决方案。
这是Output&Flutter Doctor结果
<input onChange={onChangeValue} value={props.value} />
Flutter Doctor结果
Xcode's output:
↳
/Users/rakibbhuiyan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/darwin/Classes/FLTFirebaseAuthPlugin.m:171:40: warning: incompatible pointer to
integer conversion assigning to 'BOOL' (aka 'signed char') from 'id _Nullable' [-Wint-conversion]
actionCodeSettings.handleCodeInApp = call.arguments[@"handleCodeInApp"];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rakibbhuiyan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/darwin/Classes/FLTFirebaseAuthPlugin.m:174:47: warning: incompatible pointer to
integer conversion sending 'id _Nullable' to parameter of type 'BOOL' (aka 'signed char') [-Wint-conversion]
installIfNotAvailable:call.arguments[@"androidInstallIfNotAvailable"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from /Users/rakibbhuiyan/Desktop/Final Projects/travel app/clients/lavtrip/travel_hour/ios/Pods/Headers/Public/Firebase/Firebase.h:26:
/Users/rakibbhuiyan/Desktop/Final Projects/travel app/clients/lavtrip/travel_hour/ios/Pods/FirebaseAuth/Firebase/Auth/Source/Public/FIRActionCodeSettings.h:84:39: note: passing
argument to parameter 'installIfNotAvailable' here
installIfNotAvailable:(BOOL)installIfNotAvailable
^
/Users/rakibbhuiyan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/darwin/Classes/FLTFirebaseAuthPlugin.m:77:1: warning: conflicting return type in
implementation of 'application:didReceiveRemoteNotification:fetchCompletionHandler:': 'BOOL' (aka 'signed char') vs 'bool' [-Wmismatched-return-types]
- (bool)application:(UIApplication *)application
^ ~~~~
In module 'Flutter' imported from /Users/rakibbhuiyan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/ios/Classes/FLTFirebaseAuthPlugin.h:5:
/Users/rakibbhuiyan/Desktop/Final Projects/travel app/clients/lavtrip/travel_hour/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:91:1: note: previous definition is here
- (BOOL)application:(UIApplication*)application
^ ~~~~
3 warnings generated.
building file list ... done
App.framework/
App.framework/App
App.framework/Info.plist
App.framework/flutter_assets/
App.framework/flutter_assets/AssetManifest.json
App.framework/flutter_assets/FontManifest.json
App.framework/flutter_assets/LICENSE
App.framework/flutter_assets/assets/
App.framework/flutter_assets/assets/flr/
App.framework/flutter_assets/assets/flr/load.flr
App.framework/flutter_assets/assets/flr/splash.flr
App.framework/flutter_assets/assets/flr/success.flr
App.framework/flutter_assets/assets/images/
App.framework/flutter_assets/assets/images/empty.png
App.framework/flutter_assets/assets/images/hotel.png
App.framework/flutter_assets/assets/images/icon.png
App.framework/flutter_assets/assets/images/restaurant.png
App.framework/flutter_assets/assets/images/search.png
App.framework/flutter_assets/assets/images/splash.png
App.framework/flutter_assets/assets/images/travel1.png
App.framework/flutter_assets/assets/images/travel2.png
App.framework/flutter_assets/assets/images/travel4.png
App.framework/flutter_assets/assets/images/travel5.png
App.framework/flutter_assets/assets/images/travel6.png
App.framework/flutter_assets/fonts/
App.framework/flutter_assets/fonts/MaterialIcons-Regular.ttf
App.framework/flutter_assets/fonts/Muli-Bold.ttf
App.framework/flutter_assets/fonts/Muli-Light.ttf
App.framework/flutter_assets/fonts/Muli-Medium.ttf
App.framework/flutter_assets/fonts/Muli-Regular.ttf
App.framework/flutter_assets/fonts/Muli-SemiBold.ttf
App.framework/flutter_assets/fonts/Poppins-Bold.ttf
App.framework/flutter_assets/fonts/Poppins-Light.ttf
App.framework/flutter_assets/fonts/Poppins-Medium.ttf
App.framework/flutter_assets/fonts/Poppins-Regular.ttf
App.framework/flutter_assets/fonts/Poppins-SemiBold.ttf
App.framework/flutter_assets/packages/
App.framework/flutter_assets/packages/cupertino_icons/
App.framework/flutter_assets/packages/cupertino_icons/assets/
App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
App.framework/flutter_assets/packages/font_awesome_flutter/
App.framework/flutter_assets/packages/font_awesome_flutter/lib/
App.framework/flutter_assets/packages/font_awesome_flutter/lib/fonts/
App.framework/flutter_assets/packages/font_awesome_flutter/lib/fonts/fa-brands-400.ttf
App.framework/flutter_assets/packages/font_awesome_flutter/lib/fonts/fa-regular-400.ttf
App.framework/flutter_assets/packages/font_awesome_flutter/lib/fonts/fa-solid-900.ttf
App.framework/flutter_assets/packages/line_icons/
App.framework/flutter_assets/packages/line_icons/lib/
App.framework/flutter_assets/packages/line_icons/lib/assets/
App.framework/flutter_assets/packages/line_icons/lib/assets/fonts/
App.framework/flutter_assets/packages/line_icons/lib/assets/fonts/LineIcons.ttf
sent 25254982 bytes received 886 bytes 16837245.33 bytes/sec
total size is 25249046 speedup is 1.00
building file list ... done
Flutter.framework/
Flutter.framework/Flutter
Flutter.framework/Info.plist
Flutter.framework/icudtl.dat
Flutter.framework/_CodeSignature/
Flutter.framework/_CodeSignature/CodeResources
sent 387933650 bytes received 120 bytes 31034701.60 bytes/sec
total size is 387885886 speedup is 1.00
Warning: unable to build chain to self-signed root for signer "Apple Development: Al Taqdir Badari (HK828HTZUV)"
/Users/rakibbhuiyan/Desktop/Final Projects/travel app/clients/lavtrip/travel_hour/build/ios/Release-iphoneos/Runner.app/Frameworks/App.framework/App: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning build
note: Constructing build description
答案 0 :(得分:0)
删除你的 ios 文件夹,然后运行 flutter create . 然后再次配置 ios 的东西。谢谢