我在 Xcode 模擬器中啟動我的 flutter 應用程式時遇到問題。該應用程式的 android 版本在使用 android 模擬器進行測驗時運行良好,即使在成功構建應用程式時也沒有出現任何錯誤,但我不知道 Xcode 出了什么問題。(IOS版)
顫振版本:v2.5.3 | 開發工具:v2.8.0
錯誤日志:(顫動運行)
Unable to install /Users/USER_NAME/Documents/APP_NAME/main_files/source/wordpress_app/build/ios/iphonesimulator/Runner.app on FEBE8117-5EC5-429F-820D-DA1F80359C7B. This is sometimes caused by a
malformed plist file:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Command: /usr/bin/arch -arm64e xcrun simctl install FEBE8117-5EC5-429F-820D-DA1F80359C7B
/Users/USER_NAME/Documents/APP_NAME/main_files/source/wordpress_app/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone 11.
感謝您提供的任何幫助。
uj5u.com熱心網友回復:
在您的Info.plist檔案中,替換:
<key>CFBundleIdentifier</key>
<string>$(com.MY_NAME.MY_APP_NAME)</string>
和:
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
uj5u.com熱心網友回復:
問題是 In Info.plist 不包含有效的 CFBundleVersion。確保您的包包含有效的 CFBundleVersion。
您需要將代碼粘貼到串列檔案中
CFBundleVersion $(FLUTTER_BUILD_NUMBER)
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/391687.html
