Xcode:构建时无法生成进程(权限被拒绝)python3

Xcode: unable to spawn process (Permission denied) when building python3

我已经尝试在 Xcode 上设置 python3 与自制软件 一起安装。我已经关注 these steps,但没有为 python3.7 创建 link。我能够 select 以下路径中的可执行文件:/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python3.7

如果我尝试 运行,我会收到以下错误:error: unable to spawn process (Permission denied) (in target 'Iamsnake' from project 'Iamsnake')

详情:


Showing Recent Issues

Build target Iamsnake of project Iamsnake with configuration Debug

ExternalBuildToolExecution Iamsnake (in target 'Iamsnake' from project 'Iamsnake')
    cd /Users/mae.jml/Documents/CODE/Iamsnake
    export ACTION=
    export ALTERNATE_GROUP=staff
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=mae.jml
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO
    export ALWAYS_SEARCH_USER_PATHS=NO
    export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY=NO
    export APPLY_RULES_IN_COPY_FILES=NO
    export APPLY_RULES_IN_COPY_HEADERS=NO
    export ARCHS=x86_64
    export ARCHS_STANDARD=x86_64
    export ARCHS_STANDARD_32_64_BIT="x86_64 i386"
    export ARCHS_STANDARD_32_BIT=i386
    export ARCHS_STANDARD_64_BIT=x86_64
    export ARCHS_STANDARD_INCLUDING_64_BIT=x86_64
    export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
    export BITCODE_GENERATION_MODE=marker
    export BUILD_ACTIVE_RESOURCES_ONLY=NO
    export BUILD_COMPONENTS="headers build"
    export BUILD_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products
    export BUILD_LIBRARY_FOR_DISTRIBUTION=NO
    export BUILD_ROOT=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products
    export BUILD_STYLE=
    export BUILD_VARIANTS=normal
    export BUILT_PRODUCTS_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products/Debug
    export CACHE_ROOT=/var/folders/xf/zpwtzdg134j029nmbsfmwm400000gn/C/com.apple.DeveloperTools/11.3.1-11C504/Xcode
    export CLANG_ANALYZER_NONNULL=YES
    export CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION=YES_AGGRESSIVE
    export CLANG_CXX_LANGUAGE_STANDARD=gnu++14
    export CLANG_CXX_LIBRARY=libc++
    export CLANG_ENABLE_MODULES=YES
    export CLANG_ENABLE_OBJC_ARC=YES
    export CLANG_ENABLE_OBJC_WEAK=YES
    export CLANG_MODULES_BUILD_SESSION_FILE=/Users/mae.jml/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
    export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING=YES
    export CLANG_WARN_BOOL_CONVERSION=YES
    export CLANG_WARN_COMMA=YES
    export CLANG_WARN_CONSTANT_CONVERSION=YES
    export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS=YES
    export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
    export CLANG_WARN_DOCUMENTATION_COMMENTS=YES
    export CLANG_WARN_EMPTY_BODY=YES
    export CLANG_WARN_ENUM_CONVERSION=YES
    export CLANG_WARN_INFINITE_RECURSION=YES
    export CLANG_WARN_INT_CONVERSION=YES
    export CLANG_WARN_NON_LITERAL_NULL_CONVERSION=YES
    export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF=YES
    export CLANG_WARN_OBJC_LITERAL_CONVERSION=YES
    export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
    export CLANG_WARN_RANGE_LOOP_ANALYSIS=YES
    export CLANG_WARN_STRICT_PROTOTYPES=YES
    export CLANG_WARN_SUSPICIOUS_MOVE=YES
    export CLANG_WARN_UNGUARDED_AVAILABILITY=YES_AGGRESSIVE
    export CLANG_WARN_UNREACHABLE_CODE=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
    export CLASS_FILE_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/JavaClasses
    export CLONE_HEADERS=NO
    export CODE_SIGNING_ALLOWED=YES
    export CODE_SIGN_IDENTITY=-
    export CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES
    export CODE_SIGN_STYLE=Automatic
    export COLOR_DIAGNOSTICS=NO
    export COMPILER_INDEX_STORE_ENABLE=Default
    export COMPRESS_PNG_FILES=NO
    export CONFIGURATION=Debug
    export CONFIGURATION_BUILD_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products/Debug
    export CONFIGURATION_TEMP_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug
    export COPYING_PRESERVES_HFS_DATA=NO
    export COPY_HEADERS_RUN_UNIFDEF=NO
    export COPY_PHASE_STRIP=NO
    export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
    export DEAD_CODE_STRIPPING=NO
    export DEBUGGING_SYMBOLS=YES
    export DEBUG_INFORMATION_FORMAT=dwarf
    export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
    export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
    export DEFINES_MODULE=NO
    export DEPLOYMENT_LOCATION=NO
    export DEPLOYMENT_POSTPROCESSING=NO
    export DEPLOYMENT_TARGET_CLANG_ENV_NAME=MACOSX_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=mmacosx-version-min
    export DEPLOYMENT_TARGET_LD_ENV_NAME=MACOSX_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_LD_FLAG_NAME=macosx_version_min
    export DEPLOYMENT_TARGET_SETTING_NAME=MACOSX_DEPLOYMENT_TARGET
    export DERIVED_FILES_DIR=
    export DERIVED_FILE_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/DerivedSources
    export DERIVED_SOURCES_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/DerivedSources
    export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE=en
    export DONT_GENERATE_INFOPLIST_FILE=NO
    export DO_HEADER_SCANNING_IN_JAM=NO
    export DSTROOT=/tmp/Iamsnake.dst
    export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME=.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
    export DWARF_DSYM_FOLDER_PATH=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products/Debug
    export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO
    export EMBEDDED_PROFILE_NAME=embedded.provisionprofile
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
    export ENABLE_BITCODE=NO
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES
    export ENABLE_HARDENED_RUNTIME=NO
    export ENABLE_HEADER_DEPENDENCIES=YES
    export ENABLE_ON_DEMAND_RESOURCES=NO
    export ENABLE_PREVIEWS=NO
    export ENABLE_STRICT_OBJC_MSGSEND=YES
    export ENABLE_TESTABILITY=YES
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS"
    export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
    export FILE_LIST=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/Objects/LinkFileList
    export FRAMEWORK_VERSION=A
    export GCC3_VERSION=3.3
    export GCC_C_LANGUAGE_STANDARD=gnu11
    export GCC_DYNAMIC_NO_PIC=NO
    export GCC_GENERATE_DEBUGGING_SYMBOLS=YES
    export GCC_NO_COMMON_BLOCKS=YES
    export GCC_OPTIMIZATION_LEVEL=0
    export GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 "
    export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION=YES
    export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR
    export GCC_WARN_UNDECLARED_SELECTOR=YES
    export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE
    export GCC_WARN_UNUSED_FUNCTION=YES
    export GCC_WARN_UNUSED_VARIABLE=YES
    export GENERATE_MASTER_OBJECT_FILE=NO
    export GENERATE_PKGINFO_FILE=NO
    export GENERATE_PROFILING_CODE=NO
    export GENERATE_TEXT_BASED_STUBS=NO
    export GID=20
    export GROUP=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
    export HEADERMAP_USES_VFS=NO
    export HIDE_BITCODE_SYMBOLS=YES
    export HOME=/Users/mae.jml
    export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
    export INFOPLIST_OUTPUT_FORMAT=same-as-input
    export INFOPLIST_PREPROCESS=NO
    export INLINE_PRIVATE_FRAMEWORKS=NO
    export INSTALLHDRS_COPY_PHASE=NO
    export INSTALLHDRS_SCRIPT_PHASE=NO
    export INSTALL_DIR=/tmp/Iamsnake.dst
    export INSTALL_GROUP=staff
    export INSTALL_MODE_FLAG=u+w,go-w,a+rX
    export INSTALL_OWNER=mae.jml
    export INSTALL_ROOT=/tmp/Iamsnake.dst
    export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES=YES
    export JAVA_ARCHIVE_TYPE=JAR
    export JAVA_COMPILER=/usr/bin/javac
    export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
    export JAVA_JAR_FLAGS=cv
    export JAVA_SOURCE_SUBDIR=.
    export JAVA_USE_DEPENDENCIES=YES
    export JAVA_ZIP_FLAGS=-urg
    export KEEP_PRIVATE_EXTERNS=NO
    export LD_DEPENDENCY_INFO_FILE=//Iamsnake_dependency_info.dat
    export LD_GENERATE_MAP_FILE=NO
    export LD_MAP_FILE_PATH=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/Iamsnake-LinkMap--.txt
    export LD_NO_PIE=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
    export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LIBRARY_DEXT_INSTALL_PATH=/Library/DriverExtensions
    export LIBRARY_FLAG_NOSPACE=YES
    export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
    export LINKER_DISPLAYS_MANGLED_NAMES=NO
    export LINK_FILE_LIST_normal_x86_64=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/Objects-normal/x86_64/Iamsnake.LinkFileList
    export LINK_WITH_STANDARD_LIBRARIES=YES
    export LLVM_TARGET_TRIPLE_OS_VERSION=macos10.15
    export LLVM_TARGET_TRIPLE_VENDOR=apple
    export LOCALIZED_STRING_MACRO_NAMES="NSLocalizedString CFCopyLocalizedString"
    export LOCALIZED_STRING_SWIFTUI_SUPPORT=YES
    export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
    export LOCAL_APPS_DIR=/Applications
    export LOCAL_DEVELOPER_DIR=/Library/Developer
    export LOCAL_LIBRARY_DIR=/Library
    export LOCROOT=/Users/mae.jml/Documents/CODE/Iamsnake
    export LOCSYMROOT=/Users/mae.jml/Documents/CODE/Iamsnake
    export MACOSX_DEPLOYMENT_TARGET=10.15
    export MAC_OS_X_PRODUCT_BUILD_VERSION=19E242d
    export MAC_OS_X_VERSION_ACTUAL=101504
    export MAC_OS_X_VERSION_MAJOR=101500
    export MAC_OS_X_VERSION_MINOR=1504
    export METAL_LIBRARY_FILE_BASE=default
    export METAL_LIBRARY_OUTPUT_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products/Debug/
    export MODULE_CACHE_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
    export MTL_ENABLE_DEBUG_INFO=INCLUDE_SOURCE
    export MTL_FAST_MATH=YES
    export NATIVE_ARCH=i386
    export NATIVE_ARCH_32_BIT=i386
    export NATIVE_ARCH_64_BIT=x86_64
    export NATIVE_ARCH_ACTUAL=x86_64
    export OBJECT_FILE_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/Objects
    export OBJROOT=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex
    export ONLY_ACTIVE_ARCH=YES
    export OS=MACOS
    export PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms"
    export PER_ARCH_OBJECT_FILE_DIR=/
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
    export PLATFORM_DISPLAY_NAME=macOS
    export PLATFORM_NAME=macosx
    export PLATFORM_PREFERRED_ARCH=x86_64
    export PLATFORM_PRODUCT_BUILD_VERSION=11C504
    export PLIST_FILE_OUTPUT_FORMAT=same-as-input
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
    export PRECOMP_DESTINATION_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
    export PRODUCT_MODULE_NAME=Iamsnake
    export PRODUCT_NAME=Iamsnake
    export PROFILING_CODE=NO
    export PROJECT=Iamsnake
    export PROJECT_DERIVED_FILE_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/DerivedSources
    export PROJECT_DIR=/Users/mae.jml/Documents/CODE/Iamsnake
    export PROJECT_FILE_PATH=/Users/mae.jml/Documents/CODE/Iamsnake/Iamsnake.xcodeproj
    export PROJECT_NAME=Iamsnake
    export PROJECT_TEMP_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build
    export PROJECT_TEMP_ROOT=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex
    export REMOVE_CVS_FROM_RESOURCES=YES
    export REMOVE_GIT_FROM_RESOURCES=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
    export REMOVE_HG_FROM_RESOURCES=YES
    export REMOVE_SVN_FROM_RESOURCES=YES
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
    export SEPARATE_STRIP=NO
    export SEPARATE_SYMBOL_EDIT=NO
    export SHARED_DERIVED_FILE_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products/Debug/DerivedSources
    export SHARED_PRECOMPS_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/PrecompiledHeaders
    export SKIP_INSTALL=YES
    export SOURCE_ROOT=/Users/mae.jml/Documents/CODE/Iamsnake
    export SRCROOT=/Users/mae.jml/Documents/CODE/Iamsnake
    export STRINGS_FILE_OUTPUT_ENCODING=UTF-16
    export STRIP_BITCODE_FROM_COPIED_FILES=NO
    export STRIP_INSTALLED_PRODUCT=YES
    export STRIP_PNG_TEXT=NO
    export STRIP_STYLE=all
    export STRIP_SWIFT_SYMBOLS=YES
    export SUPPORTED_PLATFORMS=macosx
    export SUPPORTS_TEXT_BASED_API=NO
    export SWIFT_PLATFORM_TARGET_PREFIX=macos
    export SWIFT_RESPONSE_FILE_PATH_normal_x86_64=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build/Objects-normal/x86_64/Iamsnake.SwiftFileList
    export SYMROOT=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products
    export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
    export SYSTEM_APPS_DIR=/Applications
    export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples"
    export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library"
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools"
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Java Tools"
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools"
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes"
    export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools"
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools"
    export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
    export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR=/System/Library
    export TAPI_VERIFY_MODE=ErrorsOnly
    export TARGETNAME=Iamsnake
    export TARGET_BUILD_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Products/Debug
    export TARGET_NAME=Iamsnake
    export TARGET_TEMP_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build
    export TEMP_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build
    export TEMP_FILES_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build
    export TEMP_FILE_DIR=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex/Iamsnake.build/Debug/Iamsnake.build
    export TEMP_ROOT=/Users/mae.jml/Library/Developer/Xcode/DerivedData/Iamsnake-agbbsrqamtqvqefgchzeoesxyqhg/Build/Intermediates.noindex
    export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
    export UID=501
    export USER=mae.jml
    export USER_APPS_DIR=/Users/mae.jml/Applications
    export USER_LIBRARY_DIR=/Users/mae.jml/Library
    export USE_HEADERMAP=YES
    export USE_LLVM_TARGET_TRIPLES=YES
    export USE_LLVM_TARGET_TRIPLES_FOR_CLANG=YES
    export USE_LLVM_TARGET_TRIPLES_FOR_LD=YES
    export USE_LLVM_TARGET_TRIPLES_FOR_TAPI=YES
    export VALIDATE_DEVELOPMENT_ASSET_PATHS=YES_ERROR
    export VALIDATE_WORKSPACE=NO
    export VALID_ARCHS="i386 x86_64"
    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=11C504
    export XCODE_VERSION_ACTUAL=1130
    export XCODE_VERSION_MAJOR=1100
    export XCODE_VERSION_MINOR=1130
    export arch=undefined_arch
    export variant=normal
    /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/

error: unable to spawn process (Permission denied) (in target 'Iamsnake' from project 'Iamsnake')

我不确定它是否与 python3 设置有关。经过一些研究,我发现此错误主要针对 iOS 模拟,因此无法为我的设置找到适用的修复程序。

Xcode 版本:11.3.1 (11C504)

Python3版本:3.7.6

我知道问题出在哪里了。在设置期间,在创建外部构建系统项目时,我输入了构建工具 的 错误路径(python3 自制软件可执行文件的路径)。因此,可能拒绝访问此目录以进行构建。需要输入的其实是你在控制台中运行which python3(如果你要python3)得到的路径:

MacBook-Pro-de-Maelle:~ mae.jml$ which python3
/usr/local/bin/python3