반응형
질문
기존 앱에 플러터를 추가하려고 합니다. 따라서 제품 앱에서 작업하기 전에 새로운 Xcode 10 단일 보기 애플리케이션에서 시도해보았습니다. 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
export variant=normal
/bin/sh -c /Users/dhavalkansara/Library/Developer/Xcode/DerivedData/AFEiOS-gctxucyuhlhesnfkbuxfswkozboo/Build/Intermediates.noindex/AFEiOS.build/Debug-iphoneos/AFEiOS.build/Script-19DAA30A22C0FB0100A039E2.sh
The path lib/main.dart does not exist
The path does not exist
Command PhaseScriptExecution failed with a nonzero exit code
다음을 시도해보았습니다.
내 pod 파일:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'AFEiOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for AFEiOS
target 'AFEiOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'AFEiOSUITests' do
inherit! :search_paths
# Pods for testing
end
flutter_application_path = '/Users/dhavalkansara/FlutterToNative/AFE_flutter/'
eval(File.read(File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')), binding)
end
- 이미 프로젝트에 FLUTTER_ROOT를 추가했습니다.
이 문제에 대해 도움을 요청합니다.
답변
This work for me Thanks Alexander Lozano, I upload image for Xcode Version 12.0.1
반응형
댓글