我正在尝试向现有应用程序添加颤振。因此,在制作应用程序之前,我尝试使用全新的 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) 我正在使用 VSCode 开发 Flutter 应用程序,在将 XCode 升级到最新版本(14.3)后,我无法在模拟器(iOS 15、IPhone11)上运行我的 Flutter 应用程序。这是错误消息:
Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Run Code Online (Sandbox Code Playgroud) 我正在 Flutter 中开发一个应用程序。我尝试构建该应用程序,但出现以下错误并且无法运行该应用程序。
xcodebuild[80270:554507] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks...
Details: (null) deviceType from <UDID> was NULL when -platform called.
Object: <DTDKMobileDeviceToken: <TOKEN>>
Method: -platform
Thread: <NSThread: <TOKEN>>{number = 2, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
Run Code Online (Sandbox Code Playgroud) 昨天,我创建了一个名为 Sample1 的 flutter 项目。\n并且工作正常。\n但是当我今天尝试打开该文件并尝试运行它时,出现错误。
\n日志说
\nRunning "flutter pub get" in sample1... 603ms\nLaunching lib/main.dart on iPhone 8 in debug mode...\nRunning pod install... 1,313ms\nRunning Xcode build... \nXcode build done. 11.8s\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\n Command PhaseScriptExecution failed with a nonzero exit code\n note: Using new build system\n note: Building targets in parallel\n note: Planning build\n note: Analyzing workspace\n note: Constructing build description\n note: Build preparation complete\n warning: Capabilities for Signing …Run Code Online (Sandbox Code Playgroud)