我正在尝试向现有应用程序添加颤振。因此,在制作应用程序之前,我尝试使用全新的 Xcode 10 Single View Application。我在https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps上遵循了教程,但在目标的构建阶段添加运行脚本后卡住了。它给出了错误:
错误:
iphoneos/AFEiOS.build
export TEMP_ROOT=/Users/dhavalkansara/Library/Developer/Xcode/DerivedData/AFEiOS-gctxucyuhlhesnfkbuxfswkozboo/Build/Intermediates.noindex
export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
export TeamIdentifierPrefix=RQ9BPQCP49.
export UID=501
export UNLOCALIZED_RESOURCES_FOLDER_PATH=AFEiOS.app
export UNSTRIPPED_PRODUCT=NO
export USER=dhavalkansara
export USER_APPS_DIR=/Users/dhavalkansara/Applications
export USER_LIBRARY_DIR=/Users/dhavalkansara/Library
export USE_DYNAMIC_NO_PIC=YES
export USE_HEADERMAP=YES
export USE_HEADER_SYMLINKS=NO
export VALIDATE_PRODUCT=NO
export VALID_ARCHS="arm64 arm64e armv7 armv7s"
export VERBOSE_PBXCP=NO
export VERSIONPLIST_PATH=AFEiOS.app/version.plist
export VERSION_INFO_BUILDER=dhavalkansara
export VERSION_INFO_FILE=AFEiOS_vers.c
export VERSION_INFO_STRING=""@(#)PROGRAM:AFEiOS PROJECT:AFEiOS-""
export WRAPPER_EXTENSION=app
export WRAPPER_NAME=AFEiOS.app
export WRAPPER_SUFFIX=.app
export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
export XCODE_PRODUCT_BUILD_VERSION=10E1001
export XCODE_VERSION_ACTUAL=1020
export XCODE_VERSION_MAJOR=1000
export XCODE_VERSION_MINOR=1020
export XPCSERVICES_FOLDER_PATH=AFEiOS.app/XPCServices
export YACC=yacc
export arch=undefined_arch …Run Code Online (Sandbox Code Playgroud) 我在这个问题上浪费了将近一周的时间却毫无结果。
\n这是错误:
\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n ** BUILD FAILED **\n\n\nXcode\'s output:\n\xe2\x86\xb3\n Writing result bundle at path:\n /var/folders/fq/7j2x58m57c9bk10jg7q47krr0000gn/T/flutter_tools.vyKPSp/flutter_ios_build_temp_di\n rGZCufm/temporary_xcresult_bundle\n\n\n Failed to package /Volumes/ME/Projects/Flutter-Proj/app.\n Command PhaseScriptExecution failed with a nonzero exit code\n note: Building targets in dependency order\n warning: Run script build phase \'Create Symlinks to Header Folders\' will be run during every\n build because it does not specify any outputs. To address this warning, either add output\n dependencies to the script phase, or configure …Run Code Online (Sandbox Code Playgroud) 更新到最新稳定版本后我尝试运行 flutter
\nError output from Xcode build:\n\xe2\x86\xb3\n ** BUILD FAILED **\n\n\nXcodes output:\n\xe2\x86\xb3\n Writing result bundle at path:\n /var/folders/56/fc0b38hx7dv7ldxkbs9flh_m0000gn/T/flutter_tools.sDq2W5/flutter_ios_build_temp_dirGNvLvF/temporary_xcresult_bundle\n\n /usr/local/Caskroom/flutter/2.5.2/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not\n found: 'packageRoot'.\n io.Platform.packageRoot; // ignore: deprecated_member_use\n ^^^^^^^^^^^\n \n Command PhaseScriptExecution failed with a nonzero exit code\n note: Using new build system\n note: Planning\n note: Build preparation complete\n note: Building targets in parallel\n\n Result bundle written to path:\n /var/folders/56/fc0b38hx7dv7ldxkbs9flh_m0000gn/T/flutter_tools.sDq2W5/flutter_ios_build_temp_dirGNvLvF/temporary_xcresult_bundle\n\n\nCould not build the application for the simulator.\nError launching application on iPhone 13 Pro.\nRun Code Online (Sandbox Code Playgroud)\n我已经尝试过了flutter clean,flutter …
我正在尝试在 iOS 模拟器中运行我的 flutter 应用程序,但出现错误提示'Flutter/Flutter.h' file not found. 我尝试了多种解决方案,例如 pod clean 和重新安装 pod。
颤振版本:- 2.10.4 xcode 版本:- 13.3.1 (13E500a)