Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script should handle archives as well as regular builds #34

Closed
wants to merge 2 commits into from

Conversation

sweetleon
Copy link

@sweetleon sweetleon commented Mar 18, 2020

Fixes #7 by (a) deleting LaunchAtLogin.app from the correct location during Archive/Profiling builds, which differs from where it's during Debug/Run builds.


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


IssueHunt has been backed by the following sponsors. Become a sponsor

@sindresorhus
Copy link
Owner

Can you describe the changes?

@sweetleon
Copy link
Author

Can you describe the changes?

Sure! How's the new description ☝️?

@sweetleon
Copy link
Author

@sindresorhus pls consider this a friendly “ping” to let me know if you want any changes to accept this.

else
WHERE="${BUILT_PRODUCTS_DIR}"
origin_helper_path="${WHERE}/$FRAMEWORKS_FOLDER_PATH/LaunchAtLogin.framework/Resources/LaunchAtLoginHelper.app"
helper_dir="${WHERE}/$CONTENTS_FOLDER_PATH/Library/LoginItems"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use tab-indentation.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is the same for both branches, so it could be outside the if-statement.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, it can't be set outside the if bc it's used inside the if to set origin_helper_path (and again outside to set helper_path), but it also depends on the value of WHERE which is set differently in the if and else cases.

Perhaps you have a different setup in mind?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, it can't be set outside the if bc it's used inside the if to set origin_helper_path (and again outside to set helper_path), but it also depends on the value of WHERE which is set differently in the if and else cases.

Perhaps you have a different setup in mind?

@@ -1,7 +1,15 @@
#!/bin/bash

origin_helper_path="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/LaunchAtLogin.framework/Resources/LaunchAtLoginHelper.app"
helper_dir="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LoginItems"
if [ "${DEPLOYMENT_LOCATION}" = "YES" ] ; then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ "${DEPLOYMENT_LOCATION}" = "YES" ] ; then
if [ "${DEPLOYMENT_LOCATION}" = "YES" ]; then

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could use a code comment to make it clear what the if check does.

origin_helper_path="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/LaunchAtLogin.framework/Resources/LaunchAtLoginHelper.app"
helper_dir="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LoginItems"
if [ "${DEPLOYMENT_LOCATION}" = "YES" ] ; then
WHERE="${DSTROOT}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHERE is too generic. Make a descriptive variable name. Should also be lowercase.

@@ -18,5 +26,5 @@ fi

if [[ $CONFIGURATION == "Release" ]]; then
rm -rf "$origin_helper_path"
rm "$(dirname "$origin_helper_path")/copy-helper.sh"
rm "$(dirname "$origin_helper_path")/copy-helper.sh" || true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you silencing errors?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's no copy-helper.sh file in that location, that command will return a non-zero value and - bc it's the last command - the script will return that value. When the script returns a non-zero value, it causes that build step to fail.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's no copy-helper.sh file in that location, the rm command will return a non-zero value and - bc it's the last command - the script will return that value. When the script returns a non-zero value, it causes that build step to fail.

@sindresorhus
Copy link
Owner

during Archive/Profiling builds

Are you sure about this? I've never had any problems using "Archive", only "Profile".

@sweetleon
Copy link
Author

during Archive/Profiling builds
Are you sure about this? I've never had any problems using "Archive", only "Profile".

It was causing problems for me when trying to make an Archive.

Copy link
Author

@sweetleon sweetleon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sindresorhus I believe the latest commit addresses all your suggestions. Please have another look.

@sweetleon
Copy link
Author

@sindresorhus pls have another look at this PR. I believe everything you've asked for has either been implemented or addressed if it can't be implemented.

@nodeful
Copy link

nodeful commented Apr 29, 2020

I've tried using your fork @sweetleon and my Archiving process stopped working...

@nodeful
Copy link

nodeful commented Apr 29, 2020

Actually what stopped working is the Hardening & Signing process I have with this script:


LOCATION="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LoginItems/LaunchAtLoginHelper.app"

# By default, use the configured code signing identity for the project/target
IDENTITY="${CODE_SIGN_IDENTITY}"
if [ "$IDENTITY" == "" ]
then
# If a code signing identity is not specified, use ad hoc signing
IDENTITY="-"
fi
echo "Hardening Launch At Login Helper with developer identity \"$IDENTITY\"..."
codesign --verbose --force --deep -o runtime --sign "$IDENTITY" "$LOCATION"

Here's the error:

Hardening Launch At Login Helper with developer identity "Developer ID Application"...
/Users/romanskisils/Library/Developer/Xcode/DerivedData/eqMac-fyaqmiwipwlllnbihsvidmcetfxf/Build/Intermediates.noindex/ArchiveIntermediates/App - Release/BuildProductsPath/Release/eqMac.app/Contents/Library/LoginItems/LaunchAtLoginHelper.app: No such file or directory

@@ -18,5 +26,5 @@ fi

if [[ $CONFIGURATION == "Release" ]]; then
rm -rf "$origin_helper_path"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think an || true also needs to be added here. Basically what happens is that on first "Release" or "Archive" build the script deletes the files, any consecutive build thinks that the Frameworks has already been copied over and skips copying the framework again, hence the files are already missing from there...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that folder isn't present, there'd be a message printed to stderr but it shouldn't cause the script to fail. (Since it's not the last command in the script, it doesn't determine the script's exit code.) Are you seeing the script fail bc of this?

@sweetleon
Copy link
Author

Actually what stopped working is the Hardening & Signing process I have with this script:

LOCATION="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LoginItems/LaunchAtLoginHelper.app"

...

codesign --verbose --force --deep -o runtime --sign "$IDENTITY" "$LOCATION"

Seems like you're trying to codesign the exact thing the script is designed to delete. Once it's deleted, you won't have to codesign it. So I'd maybe chance the last line of the script to first check if it exists:
[ -d "$LOCATION" ] && codesign --verbose --force --deep -o runtime --sign "$IDENTITY" "$LOCATION"

@nodeful
Copy link

nodeful commented Apr 30, 2020

Idk guys I've forked the repo and just done this:
nodeful@1fac49e
And it works perfectly for me now.

@sindresorhus
Copy link
Owner

sindresorhus commented May 5, 2020

I tried this out now in my app and when archiving, I'm getting errors. Xcode 11.4.1.

Showing Recent Messages
PhaseScriptExecution LaunchAtLogin\ helper /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Script-E385690122C149C5009DCAAE.sh (in target 'Dato' from project 'Dato')
    cd /Users/sindresorhus/dev/private/Dato
    export ACTION=install
    export AD_HOC_CODE_SIGNING_ALLOWED=YES
    export ALTERNATE_GROUP=staff
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=sindresorhus
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES
    export ALWAYS_SEARCH_USER_PATHS=NO
    export ALWAYS_USE_SEPARATE_HEADERMAPS=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 ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
    export ASSET_PACK_FOLDER_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation/OnDemandResources
    export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
    export AppIdentifierPrefix=YG56YK5RN5.
    export BITCODE_GENERATION_MODE=bitcode
    export BUILD_ACTIVE_RESOURCES_ONLY=NO
    export BUILD_COMPONENTS="headers build"
    export BUILD_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath
    export BUILD_LIBRARY_FOR_DISTRIBUTION=NO
    export BUILD_ROOT=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath
    export BUILD_STYLE=
    export BUILD_VARIANTS=normal
    export BUILT_PRODUCTS_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release
    export BUNDLE_CONTENTS_FOLDER_PATH=Contents/
    export BUNDLE_CONTENTS_FOLDER_PATH_deep=Contents/
    export BUNDLE_EXECUTABLE_FOLDER_NAME_deep=MacOS
    export BUNDLE_EXECUTABLE_FOLDER_PATH=Contents/MacOS
    export BUNDLE_FORMAT=deep
    export BUNDLE_FRAMEWORKS_FOLDER_PATH=Contents/Frameworks
    export BUNDLE_PLUGINS_FOLDER_PATH=Contents/PlugIns
    export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH=Contents/PrivateHeaders
    export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH=Contents/Headers
    export CACHE_ROOT=/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/C/com.apple.DeveloperTools/11.4.1-11E503a/Xcode
    export CCHROOT=/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/C/com.apple.DeveloperTools/11.4.1-11E503a/Xcode
    export CHMOD=/bin/chmod
    export CHOWN=/usr/sbin/chown
    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/sindresorhus/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/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/JavaClasses
    export CLEAN_PRECOMPS=YES
    export CLONE_HEADERS=NO
    export CODESIGNING_FOLDER_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation/Applications/Dato.app
    export CODE_SIGNING_ALLOWED=YES
    export CODE_SIGN_ENTITLEMENTS=Dato/Dato.entitlements
    export CODE_SIGN_IDENTITY="Apple Development"
    export CODE_SIGN_IDENTITY_NO="Apple Development"
    export CODE_SIGN_IDENTITY_YES=-
    export CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES
    export CODE_SIGN_STYLE=Automatic
    export COLOR_DIAGNOSTICS=NO
    export COMBINE_HIDPI_IMAGES=YES
    export COMPILER_INDEX_STORE_ENABLE=Default
    export COMPOSITE_SDK_DIRS=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/CompositeSDKs
    export COMPRESS_PNG_FILES=NO
    export CONFIGURATION=Release
    export CONFIGURATION_BUILD_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release
    export CONFIGURATION_TEMP_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release
    export CONTENTS_FOLDER_PATH=Dato.app/Contents
    export CONTENTS_FOLDER_PATH_SHALLOW_BUNDLE_NO=Dato.app/Contents
    export CONTENTS_FOLDER_PATH_SHALLOW_BUNDLE_YES=Dato.app
    export COPYING_PRESERVES_HFS_DATA=NO
    export COPY_HEADERS_RUN_UNIFDEF=NO
    export COPY_PHASE_STRIP=NO
    export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
    export CP=/bin/cp
    export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
    export CURRENT_ARCH=undefined_arch
    export CURRENT_PROJECT_VERSION=28
    export CURRENT_VARIANT=normal
    export DEAD_CODE_STRIPPING=NO
    export DEBUGGING_SYMBOLS=YES
    export DEBUG_INFORMATION_FORMAT=dwarf-with-dsym
    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=YES
    export DEPLOYMENT_POSTPROCESSING=YES
    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 DEPLOYMENT_TARGET_SUGGESTED_VALUES="10.6 10.7 10.8 10.9 10.10 10.11 10.12 10.13 10.14 10.15"
    export DERIVED_FILES_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/DerivedSources
    export DERIVED_FILE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/DerivedSources
    export DERIVED_SOURCES_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.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 DEVELOPMENT_TEAM=YG56YK5RN5
    export DOCUMENTATION_FOLDER_PATH=Dato.app/Contents/Resources/en.lproj/Documentation
    export DONT_GENERATE_INFOPLIST_FILE=NO
    export DO_HEADER_SCANNING_IN_JAM=NO
    export DSTROOT=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation
    export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME=Dato.app.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
    export DWARF_DSYM_FOLDER_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release
    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=YES
    export ENABLE_HEADER_DEPENDENCIES=YES
    export ENABLE_NS_ASSERTIONS=NO
    export ENABLE_ON_DEMAND_RESOURCES=NO
    export ENABLE_PREVIEWS=NO
    export ENABLE_STRICT_OBJC_MSGSEND=YES
    export ENABLE_TESTABILITY=NO
    export ENABLE_TESTING_SEARCH_PATHS=NO
    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 EXECUTABLES_FOLDER_PATH=Dato.app/Contents/Executables
    export EXECUTABLE_FOLDER_PATH=Dato.app/Contents/MacOS
    export EXECUTABLE_FOLDER_PATH_SHALLOW_BUNDLE_NO=Dato.app/Contents/MacOS
    export EXECUTABLE_FOLDER_PATH_SHALLOW_BUNDLE_YES=Dato.app/Contents
    export EXECUTABLE_NAME=Dato
    export EXECUTABLE_PATH=Dato.app/Contents/MacOS/Dato
    export EXPANDED_CODE_SIGN_IDENTITY=26CF1AB1BA4C3DB62D04A6539A44BBDE635D186A
    export EXPANDED_CODE_SIGN_IDENTITY_NAME="Apple Development: Sindre Sorhus (V38L3UQWMV)"
    export FILE_LIST=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects/LinkFileList
    export FIXED_FILES_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/FixedFiles
    export FRAMEWORKS_FOLDER_PATH=Dato.app/Contents/Frameworks
    export FRAMEWORK_FLAG_PREFIX=-framework
    export FRAMEWORK_SEARCH_PATHS="/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release  /Users/sindresorhus/dev/private/Dato/Carthage/Build/Mac"
    export FRAMEWORK_VERSION=A
    export FULL_PRODUCT_NAME=Dato.app
    export GCC3_VERSION=3.3
    export GCC_C_LANGUAGE_STANDARD=gnu11
    export GCC_DYNAMIC_NO_PIC=NO
    export GCC_INLINES_ARE_PRIVATE_EXTERN=YES
    export GCC_NO_COMMON_BLOCKS=YES
    export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++"
    export GCC_SYMBOLS_PRIVATE_EXTERN=YES
    export GCC_TREAT_WARNINGS_AS_ERRORS=NO
    export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
    export GCC_VERSION_IDENTIFIER=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=YES
    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 HEADER_SEARCH_PATHS="/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release/include "
    export HIDE_BITCODE_SYMBOLS=YES
    export HOME=/Users/sindresorhus
    export ICONV=/usr/bin/iconv
    export INDEX_ENABLE_DATA_STORE=NO
    export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
    export INFOPLIST_FILE=Dato/Info.plist
    export INFOPLIST_OUTPUT_FORMAT=same-as-input
    export INFOPLIST_PATH=Dato.app/Contents/Info.plist
    export INFOPLIST_PREPROCESS=NO
    export INFOSTRINGS_PATH=Dato.app/Contents/Resources/en.lproj/InfoPlist.strings
    export INLINE_PRIVATE_FRAMEWORKS=NO
    export INSTALLHDRS_COPY_PHASE=NO
    export INSTALLHDRS_SCRIPT_PHASE=NO
    export INSTALL_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation/Applications
    export INSTALL_GROUP=staff
    export INSTALL_MODE_FLAG=u+w,go-w,a+rX
    export INSTALL_OWNER=sindresorhus
    export INSTALL_PATH=/Applications
    export INSTALL_ROOT=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation
    export IOS_UNZIPPERED_TWIN_PREFIX_PATH=/System/iOSSupport
    export IS_MACCATALYST=NO
    export IS_UIKITFORMAC=NO
    export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
    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_FOLDER_PATH=Dato.app/Contents/Resources/Java
    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 JIKES_DEFAULT_FLAGS="+E +OLDCSO"
    export KASAN_DEFAULT_CFLAGS="-DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow"
    export KEEP_PRIVATE_EXTERNS=NO
    export LD_DEPENDENCY_INFO_FILE=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects-normal/undefined_arch/Dato_dependency_info.dat
    export LD_GENERATE_MAP_FILE=NO
    export LD_MAP_FILE_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Dato-LinkMap-normal-undefined_arch.txt
    export LD_NO_PIE=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
    export LD_RUNPATH_SEARCH_PATHS=" @executable_path/../Frameworks"
    export LD_RUNPATH_SEARCH_PATHS_YES=@loader_path/../Frameworks
    export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LEX=lex
    export LIBRARY_DEXT_INSTALL_PATH=/Library/DriverExtensions
    export LIBRARY_FLAG_NOSPACE=YES
    export LIBRARY_FLAG_PREFIX=-l
    export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
    export LIBRARY_SEARCH_PATHS="/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release "
    export LINKER_DISPLAYS_MANGLED_NAMES=NO
    export LINK_FILE_LIST_normal_x86_64=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects-normal/x86_64/Dato.LinkFileList
    export LINK_WITH_STANDARD_LIBRARIES=YES
    export LLVM_TARGET_TRIPLE_OS_VERSION=macos10.14.4
    export LLVM_TARGET_TRIPLE_OS_VERSION_NO=macos10.14.4
    export LLVM_TARGET_TRIPLE_OS_VERSION_YES=macos10.15
    export LLVM_TARGET_TRIPLE_VENDOR=apple
    export LOCALIZED_RESOURCES_FOLDER_PATH=Dato.app/Contents/Resources/en.lproj
    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/sindresorhus/dev/private/Dato
    export LOCSYMROOT=/Users/sindresorhus/dev/private/Dato
    export MACH_O_TYPE=mh_execute
    export MACOSX_DEPLOYMENT_TARGET=10.14.4
    export MAC_OS_X_PRODUCT_BUILD_VERSION=19E287
    export MAC_OS_X_VERSION_ACTUAL=101504
    export MAC_OS_X_VERSION_MAJOR=101500
    export MAC_OS_X_VERSION_MINOR=1504
    export MARKETING_VERSION=1.13.0
    export MESSAGES_APPLICATION_EXTENSION_SUPPORT_FOLDER_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/MessagesApplicationExtensionSupport
    export MESSAGES_APPLICATION_SUPPORT_FOLDER_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/MessagesApplicationSupport
    export METAL_LIBRARY_FILE_BASE=default
    export METAL_LIBRARY_OUTPUT_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation/Applications/Dato.app/Contents/Resources
    export MODULES_FOLDER_PATH=Dato.app/Contents/Modules
    export MODULE_CACHE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
    export MTL_ENABLE_DEBUG_INFO=NO
    export MTL_FAST_MATH=YES
    export NATIVE_ARCH=x86_64
    export NATIVE_ARCH_32_BIT=i386
    export NATIVE_ARCH_64_BIT=x86_64
    export NATIVE_ARCH_ACTUAL=x86_64
    export NO_COMMON=YES
    export OBJECT_FILE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects
    export OBJECT_FILE_DIR_normal=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects-normal
    export OBJROOT=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath
    export ONLY_ACTIVE_ARCH=NO
    export OS=MACOS
    export OSAC=/usr/bin/osacompile
    export OTHER_LDFLAGS="-weak_framework Combine -weak_framework SwiftUI"
    export PACKAGE_TYPE=com.apple.package-type.wrapper.application
    export PASCAL_STRINGS=YES
    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 PBDEVELOPMENTPLIST_PATH=Dato.app/Contents/pbdevelopment.plist
    export PER_ARCH_OBJECT_FILE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects-normal/undefined_arch
    export PER_VARIANT_OBJECT_FILE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects-normal
    export PKGINFO_FILE_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/PkgInfo
    export PKGINFO_PATH=Dato.app/Contents/PkgInfo
    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_FAMILY_NAME=macOS
    export PLATFORM_NAME=macosx
    export PLATFORM_PREFERRED_ARCH=x86_64
    export PLATFORM_PRODUCT_BUILD_VERSION=11E503a
    export PLIST_FILE_OUTPUT_FORMAT=same-as-input
    export PLUGINS_FOLDER_PATH=Dato.app/Contents/PlugIns
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
    export PRECOMP_DESTINATION_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
    export PRIVATE_HEADERS_FOLDER_PATH=Dato.app/Contents/PrivateHeaders
    export PRODUCT_BUNDLE_IDENTIFIER=com.sindresorhus.Dato
    export PRODUCT_BUNDLE_PACKAGE_TYPE=APPL
    export PRODUCT_MODULE_NAME=Dato
    export PRODUCT_NAME=Dato
    export PRODUCT_SETTINGS_PATH=/Users/sindresorhus/dev/private/Dato/Dato/Info.plist
    export PRODUCT_TYPE=com.apple.product-type.application
    export PROFILING_CODE=NO
    export PROJECT=Dato
    export PROJECT_DERIVED_FILE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/DerivedSources
    export PROJECT_DIR=/Users/sindresorhus/dev/private/Dato
    export PROJECT_FILE_PATH=/Users/sindresorhus/dev/private/Dato/Dato.xcodeproj
    export PROJECT_NAME=Dato
    export PROJECT_TEMP_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build
    export PROJECT_TEMP_ROOT=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath
    export PUBLIC_HEADERS_FOLDER_PATH=Dato.app/Contents/Headers
    export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
    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 REZ_COLLECTOR_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/ResourceManagerResources
    export REZ_OBJECTS_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/ResourceManagerResources/Objects
    export REZ_SEARCH_PATHS="/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release "
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
    export SCRIPTS_FOLDER_PATH=Dato.app/Contents/Resources/Scripts
    export SCRIPT_INPUT_FILE_COUNT=0
    export SCRIPT_INPUT_FILE_LIST_COUNT=0
    export SCRIPT_OUTPUT_FILE_COUNT=0
    export SCRIPT_OUTPUT_FILE_LIST_COUNT=0
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
    export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
    export SDK_DIR_macosx10_15=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
    export SDK_NAME=macosx10.15
    export SDK_NAMES=macosx10.15
    export SDK_PRODUCT_BUILD_VERSION=19E258
    export SDK_VERSION=10.15
    export SDK_VERSION_ACTUAL=101504
    export SDK_VERSION_MAJOR=101500
    export SDK_VERSION_MINOR=1504
    export SED=/usr/bin/sed
    export SEPARATE_STRIP=NO
    export SEPARATE_SYMBOL_EDIT=NO
    export SET_DIR_MODE_OWNER_GROUP=YES
    export SET_FILE_MODE_OWNER_GROUP=NO
    export SHALLOW_BUNDLE=NO
    export SHALLOW_BUNDLE_=YES
    export SHALLOW_BUNDLE_driverkit=YES
    export SHALLOW_BUNDLE_ios=NO
    export SHALLOW_BUNDLE_macos=NO
    export SHARED_DERIVED_FILE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/Release/DerivedSources
    export SHARED_FRAMEWORKS_FOLDER_PATH=Dato.app/Contents/SharedFrameworks
    export SHARED_PRECOMPS_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/PrecompiledHeaders
    export SHARED_SUPPORT_FOLDER_PATH=Dato.app/Contents/SharedSupport
    export SKIP_INSTALL=NO
    export SOURCE_ROOT=/Users/sindresorhus/dev/private/Dato
    export SRCROOT=/Users/sindresorhus/dev/private/Dato
    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_COMPILATION_MODE=wholemodule
    export SWIFT_OPTIMIZATION_LEVEL=-O
    export SWIFT_PLATFORM_TARGET_PREFIX=macos
    export SWIFT_RESPONSE_FILE_PATH_normal_x86_64=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Objects-normal/x86_64/Dato.SwiftFileList
    export SWIFT_STDLIB_TOOL_UNSIGNED_DESTINATION_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/SwiftSupport
    export SWIFT_VERSION=5.0
    export SYMROOT=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath
    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_EXTENSIONS_FOLDER_PATH=Dato.app/Contents/Library/SystemExtensions
    export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR=/System/Library
    export TAPI_VERIFY_MODE=ErrorsOnly
    export TARGETNAME=Dato
    export TARGET_BUILD_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation/Applications
    export TARGET_NAME=Dato
    export TARGET_TEMP_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build
    export TEMP_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build
    export TEMP_FILES_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build
    export TEMP_FILE_DIR=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build
    export TEMP_ROOT=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath
    export TEST_FRAMEWORK_SEARCH_PATHS=" /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks"
    export TEST_LIBRARY_SEARCH_PATHS=" /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib"
    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=YG56YK5RN5.
    export UID=501
    export UNLOCALIZED_RESOURCES_FOLDER_PATH=Dato.app/Contents/Resources
    export UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_NO=Dato.app/Contents/Resources
    export UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_YES=Dato.app/Contents
    export UNSTRIPPED_PRODUCT=NO
    export USER=sindresorhus
    export USER_APPS_DIR=/Users/sindresorhus/Applications
    export USER_LIBRARY_DIR=/Users/sindresorhus/Library
    export USE_DYNAMIC_NO_PIC=YES
    export USE_HEADERMAP=YES
    export USE_HEADER_SYMLINKS=NO
    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_PRODUCT=NO
    export VALIDATE_WORKSPACE=YES_ERROR
    export VALID_ARCHS=x86_64
    export VERBOSE_PBXCP=NO
    export VERSIONPLIST_PATH=Dato.app/Contents/version.plist
    export VERSION_INFO_BUILDER=sindresorhus
    export VERSION_INFO_FILE=Dato_vers.c
    export VERSION_INFO_STRING=""@(#)PROGRAM:Dato  PROJECT:Dato-28""
    export WATCHKIT_2_SUPPORT_FOLDER_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/WatchKitSupport2
    export WATCHKIT_SUPPORT_FOLDER_PATH=/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/BuildProductsPath/WatchKitSupport
    export WRAPPER_EXTENSION=app
    export WRAPPER_NAME=Dato.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=11E503a
    export XCODE_VERSION_ACTUAL=1141
    export XCODE_VERSION_MAJOR=1100
    export XCODE_VERSION_MINOR=1140
    export XPCSERVICES_FOLDER_PATH=Dato.app/Contents/XPCServices
    export YACC=yacc
    export _BOOL_=NO
    export _BOOL_NO=NO
    export _BOOL_YES=YES
    export _DEVELOPMENT_TEAM_IS_EMPTY=NO
    export _IS_EMPTY_=YES
    export _MACOSX_DEPLOYMENT_TARGET_IS_EMPTY=NO
    export arch=undefined_arch
    export variant=normal
    /bin/sh -c /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/IntermediateBuildFilesPath/Dato.build/Release/Dato.build/Script-E385690122C149C5009DCAAE.sh

cp: /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation/Dato.app/Contents/Library/LoginItems/LaunchAtLogin.framework/Resources/LaunchAtLoginHelper.app: No such file or directory
rm: /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Dato-gjaijewysmsztwgjalcgffpzmwgz/Build/Intermediates.noindex/ArchiveIntermediates/Dato/InstallationBuildProductsLocation/Dato.app/Contents/Library/LoginItems/LaunchAtLogin.framework/Resources/copy-helper.sh: No such file or directory

@sweetleon
Copy link
Author

I'm getting errors

Does this cause the build to fail? The changes should cause the build to ignore these errors.

@sindresorhus
Copy link
Owner

It did build successfully yes, but the helper app ended up at:

...22.08.xcarchive/Products/Dato.app/Contents/Library/LoginItems/LaunchAtLoginHelper.app

(Dato.app above is just a directory, not actually the app)

Instead of:

...22.08.xcarchive/Products/Applications/Dato.app/Contents/Library/LoginItems/LaunchAtLoginHelper.app

@sindresorhus
Copy link
Owner

@sindresorhus
Copy link
Owner

@sweetleon Was your error that prompted this PR the following?

cp: /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Jiffy-gkydoauhwmpybhevpuyyldptrtge/Build/Intermediates.noindex/ArchiveIntermediates/Jiffy/BuildProductsPath/Release/Jiffy.app/Contents/Frameworks/LaunchAtLogin.framework/Resources/LaunchAtLoginHelper.app: No such file or directory
rm: /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Jiffy-gkydoauhwmpybhevpuyyldptrtge/Build/Intermediates.noindex/ArchiveIntermediates/Jiffy/BuildProductsPath/Release/Jiffy.app/Contents/Frameworks/LaunchAtLogin.framework/Resources/copy-helper.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

Because I just got and turned out it was because the LaunchAtLogin run script had moved to before the "Embed Framework" script in "Build Phases". Can you check if that's the case for you too?

@sweetleon
Copy link
Author

@sindresorhus that sounds familiar, but I'm no longer working on that project so I can't be sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

copy-helper.sh script "No such file or directory" when profiling
3 participants