johnno1962 / InjectionIII

Re-write of Injection for Xcode in (mostly) Swift
MIT License
4.09k stars 320 forks source link

So close but can't seem to get codesign working. #511

Closed mxi closed 2 months ago

mxi commented 4 months ago

I'll start by saying that I'm new to iOS development but not development in general.

I've tried to follow your instructions to get this working as best as my tired brain allowed, yet right at the last hurdle I can't seem to figure out what's going wrong. (Doesn't help that I'm not too familiar with code signing shenanigans...)

Anyways, here's the error I get when I change a source file:

💉 Compiling /Users/maxim/src/Notebook/Notebook/View.m
💉 Loading .dylib ...
💉 ⚠ī¸ dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (code signature invalid in <000AE221-4D7E-326A-B6BF-7D39F7D9140A> '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (code signature invalid in <000AE221-4D7E-326A-B6BF-7D39F7D9140A> '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸ Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"
💉 ⚠ī¸ Injection error: Error Domain=SwiftEval Code=-1 "dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (code signature invalid in <000AE221-4D7E-326A-B6BF-7D39F7D9140A> '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (code signature invalid in <000AE221-4D7E-326A-B6BF-7D39F7D9140A> '/private/var/mobile/Containers/Data/Application/36EADB54-FAE7-4199-9B0F-CEA362907D50/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
# etc etc ...

Also, it seems like the warning message is outdated because copy_bundle.sh seems to already do the defaults write thing.

Here's the build log as well. I hope there isn't much sensitive information. I omitted my Signing Identity at the very bottom just in case (I don't think it's needed anyways.)

Showing Recent Messages

Prepare build

ComputeTargetDependencyGraph

note: Building targets in dependency order
note: Target dependency graph (1 target)
    Target 'Notebook' in project 'Notebook' (no dependencies)

Building targets in dependency order

Target dependency graph (1 target)

GatherProvisioningInputs

CreateBuildDescription

Build description signature: 7eec4a58e051a4342a7936628b0ac7a0
Build description path: /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/XCBuildData/7eec4a58e051a4342a7936628b0ac7a0.xcbuilddata

ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk /Users/maxim/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.2-21C52-884b7f60ac6761a492c03f282b824eb9.sdkstatcache
    cd /Users/maxim/src/Notebook/Notebook.xcodeproj
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk -o /Users/maxim/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.2-21C52-884b7f60ac6761a492c03f282b824eb9.sdkstatcache

Build target Notebook of project Notebook with configuration Debug
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Notebook' from project 'Notebook')

Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase.

ProcessProductPackaging "" /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook.app.xcent (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook

    Entitlements:

    {
    "application-identifier" = "xxxxxxxxxx.io.github.mxi.Notebook";
    "com.apple.developer.team-identifier" = xxxxxxxxxx;
    "get-task-allow" = 1;
}

    builtin-productPackagingUtility -entitlements -format xml -o /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook.app.xcent

ProcessProductPackagingDER /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook.app.xcent /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook.app.xcent.der (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook
    /usr/bin/derq query -f xml -i /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook.app.xcent -o /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook.app.xcent.der --raw

CompileC /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/View.o /Users/maxim/src/Notebook/Notebook/View.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -ivfsstatcache /Users/maxim/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.2-21C52-884b7f60ac6761a492c03f282b824eb9.sdkstatcache -target arm64-apple-ios17.2 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -std\=gnu17 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path\=/Users/maxim/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/maxim/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wquoted-include-in-framework-header -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-implicit-fallthrough -DDEBUG\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Index.noindex/DataStore -iquote /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook-generated-files.hmap -I/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook-own-target-headers.hmap -I/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook-all-target-headers.hmap -iquote /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook-project-headers.hmap -I/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/include -I/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/DerivedSources-normal/arm64 -I/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/DerivedSources/arm64 -I/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/DerivedSources -F/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos -MMD -MT dependencies -MF /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/View.d --serialize-diagnostics /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/View.dia -c /Users/maxim/src/Notebook/Notebook/View.m -o /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/View.o -index-unit-output-path /Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/View.o

Ld /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/Notebook normal (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios17.2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk -O0 -L/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -L/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos -F/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -F/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos -filelist /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/Notebook.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/Notebook_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -debug_variant -fobjc-arc -fobjc-link-runtime -fprofile-instr-generate -Xlinker -interposable -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/Notebook_dependency_info.dat -o /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/Notebook

ProcessInfoPlistFile /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/Info.plist /Users/maxim/src/Notebook/Notebook/Info.plist (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook
    builtin-infoPlistUtility /Users/maxim/src/Notebook/Notebook/Info.plist -producttype com.apple.product-type.application -genpkginfo /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -additionalcontentfile /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Base.lproj/LaunchScreen-SBPartialInfo.plist -additionalcontentfile /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Base.lproj/Main-SBPartialInfo.plist -additionalcontentfile /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/assetcatalog_generated_info.plist -requiredArchitecture arm64 -o /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/Info.plist

PhaseScriptExecution Run\ Script /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Script-948E3B642C40C66F00F89DF1.sh (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook
    export ACTION\=build
    export AD_HOC_CODE_SIGNING_ALLOWED\=NO
    export AGGREGATE_TRACKED_DOMAINS\=YES
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION\=NO
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
    export ALTERNATE_OWNER\=maxim
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES\=NO
    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 APP_SHORTCUTS_ENABLE_FLEXIBLE_MATCHING\=YES
    export ARCHS\=arm64
    export ARCHS_STANDARD\=arm64
    export ARCHS_STANDARD_32_64_BIT\=armv7\ arm64
    export ARCHS_STANDARD_32_BIT\=armv7
    export ARCHS_STANDARD_64_BIT\=arm64
    export ARCHS_STANDARD_INCLUDING_64_BIT\=arm64
    export ARCHS_UNIVERSAL_IPHONE_OS\=armv7\ arm64
    export ASSETCATALOG_COMPILER_APPICON_NAME\=AppIcon
    export ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS\=YES
    export ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS\=YES
    export ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME\=AccentColor
    export ASSETCATALOG_FILTER_FOR_DEVICE_MODEL\=iPad8,1
    export ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION\=17.5.1
    export ASSETCATALOG_FILTER_FOR_THINNING_DEVICE_CONFIGURATION\=iPad8,1
    export AUTOMATICALLY_MERGE_DEPENDENCIES\=NO
    export AVAILABLE_PLATFORMS\=appletvos\ appletvsimulator\ driverkit\ iphoneos\ iphonesimulator\ macosx\ watchos\ watchsimulator\ xros\ xrsimulator
    export AppIdentifierPrefix\=xxxxxxxxxx.
    export BITCODE_GENERATION_MODE\=marker
    export BUILD_ACTIVE_RESOURCES_ONLY\=YES
    export BUILD_COMPONENTS\=headers\ build
    export BUILD_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products
    export BUILD_LIBRARY_FOR_DISTRIBUTION\=NO
    export BUILD_ROOT\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products
    export BUILD_STYLE\=
    export BUILD_VARIANTS\=normal
    export BUILT_PRODUCTS_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos
    export BUNDLE_CONTENTS_FOLDER_PATH_deep\=Contents/
    export BUNDLE_EXECUTABLE_FOLDER_NAME_deep\=MacOS
    export BUNDLE_EXTENSIONS_FOLDER_PATH\=Extensions
    export BUNDLE_FORMAT\=shallow
    export BUNDLE_FRAMEWORKS_FOLDER_PATH\=Frameworks
    export BUNDLE_PLUGINS_FOLDER_PATH\=PlugIns
    export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH\=PrivateHeaders
    export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH\=Headers
    export CACHE_ROOT\=/var/folders/ds/112mkzld6g92cqxrtsth7qjc0000gn/C/com.apple.DeveloperTools/15.2-15C500b/Xcode
    export CCHROOT\=/var/folders/ds/112mkzld6g92cqxrtsth7qjc0000gn/C/com.apple.DeveloperTools/15.2-15C500b/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_COMPILE_CACHE_PATH\=/Users/maxim/Library/Developer/Xcode/DerivedData/CompilationCache.noindex
    export CLANG_COVERAGE_MAPPING\=YES
    export CLANG_CXX_LANGUAGE_STANDARD\=gnu++20
    export CLANG_ENABLE_EXPLICIT_MODULES\=NO
    export CLANG_ENABLE_MODULES\=YES
    export CLANG_ENABLE_OBJC_ARC\=YES
    export CLANG_ENABLE_OBJC_WEAK\=YES
    export CLANG_MODULES_BUILD_SESSION_FILE\=/Users/maxim/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
    export CLANG_PROFILE_DATA_DIRECTORY\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/ProfileData
    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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER\=YES
    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/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/JavaClasses
    export CLEAN_PRECOMPS\=YES
    export CLONE_HEADERS\=NO
    export CODESIGNING_FOLDER_PATH\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app
    export CODE_SIGNING_ALLOWED\=YES
    export CODE_SIGNING_REQUIRED\=YES
    export CODE_SIGN_CONTEXT_CLASS\=XCiPhoneOSCodeSignContext
    export CODE_SIGN_IDENTITY\=Apple\ Development
    export CODE_SIGN_INJECT_BASE_ENTITLEMENTS\=YES
    export CODE_SIGN_STYLE\=Automatic
    export COLOR_DIAGNOSTICS\=NO
    export COMBINE_HIDPI_IMAGES\=NO
    export COMPILER_INDEX_STORE_ENABLE\=Default
    export COMPOSITE_SDK_DIRS\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/CompositeSDKs
    export COMPRESS_PNG_FILES\=YES
    export CONFIGURATION\=Debug
    export CONFIGURATION_BUILD_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos
    export CONFIGURATION_TEMP_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos
    export CONTENTS_FOLDER_PATH\=Notebook.app
    export CONTENTS_FOLDER_PATH_SHALLOW_BUNDLE_NO\=Notebook.app/Contents
    export CONTENTS_FOLDER_PATH_SHALLOW_BUNDLE_YES\=Notebook.app
    export COPYING_PRESERVES_HFS_DATA\=NO
    export COPY_HEADERS_RUN_UNIFDEF\=NO
    export COPY_PHASE_STRIP\=NO
    export CORRESPONDING_SIMULATOR_PLATFORM_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
    export CORRESPONDING_SIMULATOR_PLATFORM_NAME\=iphonesimulator
    export CORRESPONDING_SIMULATOR_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk
    export CORRESPONDING_SIMULATOR_SDK_NAME\=iphonesimulator17.2
    export CP\=/bin/cp
    export CREATE_INFOPLIST_SECTION_IN_BINARY\=NO
    export CURRENT_ARCH\=undefined_arch
    export CURRENT_PROJECT_VERSION\=1
    export CURRENT_VARIANT\=normal
    export DEAD_CODE_STRIPPING\=YES
    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_SETTING_NAME\=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_SUGGESTED_VALUES\=12.0\ 12.1\ 12.2\ 12.3\ 12.4\ 13.0\ 13.1\ 13.2\ 13.3\ 13.4\ 13.5\ 13.6\ 14.0\ 14.1\ 14.2\ 14.3\ 14.4\ 14.5\ 14.6\ 14.7\ 15.0\ 15.1\ 15.2\ 15.3\ 15.4\ 15.5\ 15.6\ 16.0\ 16.1\ 16.2\ 16.3\ 16.4\ 16.5\ 16.6\ 17.0\ 17.1\ 17.2
    export DERIVED_FILES_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/DerivedSources
    export DERIVED_FILE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/DerivedSources
    export DERIVED_SOURCES_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/DerivedSources
    export DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER\=NO
    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\=8VNUK9RKM3
    export DIFF\=/usr/bin/diff
    export DOCUMENTATION_FOLDER_PATH\=Notebook.app/en.lproj/Documentation
    export DONT_GENERATE_INFOPLIST_FILE\=NO
    export DO_HEADER_SCANNING_IN_JAM\=NO
    export DSTROOT\=/tmp/Notebook.dst
    export DT_TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME\=Notebook.app.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT\=NO
    export DWARF_DSYM_FOLDER_PATH\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos
    export DYNAMIC_LIBRARY_EXTENSION\=dylib
    export EAGER_LINKING\=NO
    export EFFECTIVE_PLATFORM_NAME\=-iphoneos
    export EMBEDDED_CONTENT_CONTAINS_SWIFT\=NO
    export EMBEDDED_PROFILE_NAME\=embedded.mobileprovision
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE\=NO
    export ENABLE_APP_SANDBOX\=NO
    export ENABLE_BITCODE\=NO
    export ENABLE_CODE_COVERAGE\=YES
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS\=YES
    export ENABLE_DEFAULT_SEARCH_PATHS\=YES
    export ENABLE_HARDENED_RUNTIME\=NO
    export ENABLE_HEADER_DEPENDENCIES\=YES
    export ENABLE_ON_DEMAND_RESOURCES\=YES
    export ENABLE_PREVIEWS\=NO
    export ENABLE_STRICT_OBJC_MSGSEND\=YES
    export ENABLE_TESTABILITY\=YES
    export ENABLE_TESTING_SEARCH_PATHS\=NO
    export ENABLE_USER_SCRIPT_SANDBOXING\=NO
    export ENABLE_XOJIT_PREVIEWS\=NO
    export ENTITLEMENTS_ALLOWED\=YES
    export ENTITLEMENTS_DESTINATION\=Signature
    export ENTITLEMENTS_REQUIRED\=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\=Notebook.app/Executables
    export EXECUTABLE_FOLDER_PATH\=Notebook.app
    export EXECUTABLE_FOLDER_PATH_SHALLOW_BUNDLE_NO\=Notebook.app/MacOS
    export EXECUTABLE_FOLDER_PATH_SHALLOW_BUNDLE_YES\=Notebook.app
    export EXECUTABLE_NAME\=Notebook
    export EXECUTABLE_PATH\=Notebook.app/Notebook
    export EXPANDED_CODE_SIGN_IDENTITY\=F693D2C0DBAEE406D1F3960174BDAD280A6CA223
    export EXPANDED_CODE_SIGN_IDENTITY_NAME\=Apple\ Development:\ xxx@xxx\ \(xxxxxxxxxx\)
    export EXPANDED_PROVISIONING_PROFILE\=05568d46-df80-4c3b-9bc4-32d92287a9c9
    export EXTENSIONS_FOLDER_PATH\=Notebook.app/Extensions
    export FILE_LIST\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects/LinkFileList
    export FIXED_FILES_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/FixedFiles
    export FRAMEWORKS_FOLDER_PATH\=Notebook.app/Frameworks
    export FRAMEWORK_FLAG_PREFIX\=-framework
    export FRAMEWORK_SEARCH_PATHS\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos\ 
    export FRAMEWORK_VERSION\=A
    export FULL_PRODUCT_NAME\=Notebook.app
    export FUSE_BUILD_PHASES\=YES
    export FUSE_BUILD_SCRIPT_PHASES\=NO
    export GCC3_VERSION\=3.3
    export GCC_C_LANGUAGE_STANDARD\=gnu17
    export GCC_DYNAMIC_NO_PIC\=NO
    export GCC_INLINES_ARE_PRIVATE_EXTERN\=YES
    export GCC_NO_COMMON_BLOCKS\=YES
    export GCC_OPTIMIZATION_LEVEL\=0
    export GCC_PFE_FILE_C_DIALECTS\=c\ objective-c\ c++\ objective-c++
    export GCC_PREPROCESSOR_DEFINITIONS\=DEBUG\=1\ 
    export GCC_SYMBOLS_PRIVATE_EXTERN\=NO
    export GCC_THUMB_SUPPORT\=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 GENERATED_MODULEMAP_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos
    export GENERATE_INFOPLIST_FILE\=YES
    export GENERATE_INTERMEDIATE_TEXT_BASED_STUBS\=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/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/include\ 
    export HIDE_BITCODE_SYMBOLS\=YES
    export HOME\=/Users/maxim
    export HOST_ARCH\=arm64
    export HOST_PLATFORM\=macosx
    export ICONV\=/usr/bin/iconv
    export INFOPLIST_ENABLE_CFBUNDLEICONS_MERGE\=YES
    export INFOPLIST_EXPAND_BUILD_SETTINGS\=YES
    export INFOPLIST_FILE\=Notebook/Info.plist
    export INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents\=YES
    export INFOPLIST_KEY_UILaunchStoryboardName\=LaunchScreen
    export INFOPLIST_KEY_UIMainStoryboardFile\=Main
    export INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad\=UIInterfaceOrientationPortrait\ UIInterfaceOrientationPortraitUpsideDown\ UIInterfaceOrientationLandscapeLeft\ UIInterfaceOrientationLandscapeRight
    export INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone\=UIInterfaceOrientationPortrait\ UIInterfaceOrientationLandscapeLeft\ UIInterfaceOrientationLandscapeRight
    export INFOPLIST_OUTPUT_FORMAT\=binary
    export INFOPLIST_PATH\=Notebook.app/Info.plist
    export INFOPLIST_PREPROCESS\=NO
    export INFOSTRINGS_PATH\=Notebook.app/en.lproj/InfoPlist.strings
    export INLINE_PRIVATE_FRAMEWORKS\=NO
    export INSTALLHDRS_COPY_PHASE\=NO
    export INSTALLHDRS_SCRIPT_PHASE\=NO
    export INSTALL_DIR\=/tmp/Notebook.dst/Applications
    export INSTALL_GROUP\=staff
    export INSTALL_MODE_FLAG\=u+w,go-w,a+rX
    export INSTALL_OWNER\=maxim
    export INSTALL_PATH\=/Applications
    export INSTALL_ROOT\=/tmp/Notebook.dst
    export IPHONEOS_DEPLOYMENT_TARGET\=17.2
    export IS_UNOPTIMIZED_BUILD\=YES
    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\=Notebook.app/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_CFLAGS_CLASSIC\=-DKASAN\=1\ -DKASAN_CLASSIC\=1\ -fsanitize\=address\ -mllvm\ -asan-globals-live-support\ -mllvm\ -asan-force-dynamic-shadow
    export KASAN_CFLAGS_TBI\=-DKASAN\=1\ -DKASAN_TBI\=1\ -fsanitize\=kernel-hwaddress\ -mllvm\ -hwasan-recover\=0\ -mllvm\ -hwasan-instrument-atomics\=0\ -mllvm\ -hwasan-instrument-stack\=1\ -mllvm\ -hwasan-generate-tags-with-calls\=1\ -mllvm\ -hwasan-instrument-with-calls\=1\ -mllvm\ -hwasan-use-short-granules\=0\ -mllvm\ -hwasan-memory-access-callback-prefix\=__asan_
    export KASAN_DEFAULT_CFLAGS\=-DKASAN\=1\ -DKASAN_CLASSIC\=1\ -fsanitize\=address\ -mllvm\ -asan-globals-live-support\ -mllvm\ -asan-force-dynamic-shadow
    export KEEP_PRIVATE_EXTERNS\=NO
    export LD_DEPENDENCY_INFO_FILE\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/undefined_arch/Notebook_dependency_info.dat
    export LD_EXPORT_SYMBOLS\=YES
    export LD_GENERATE_MAP_FILE\=NO
    export LD_MAP_FILE_PATH\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook-LinkMap-normal-undefined_arch.txt
    export LD_NO_PIE\=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER\=NO
    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/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos\ 
    export LINKER_DISPLAYS_MANGLED_NAMES\=NO
    export LINK_FILE_LIST_normal_arm64\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/Notebook.LinkFileList
    export LINK_OBJC_RUNTIME\=YES
    export LINK_WITH_STANDARD_LIBRARIES\=YES
    export LLVM_TARGET_TRIPLE_OS_VERSION\=ios17.2
    export LLVM_TARGET_TRIPLE_VENDOR\=apple
    export LOCALIZATION_EXPORT_SUPPORTED\=YES
    export LOCALIZATION_PREFERS_STRING_CATALOGS\=YES
    export LOCALIZED_RESOURCES_FOLDER_PATH\=Notebook.app/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/maxim/src/Notebook
    export LOCSYMROOT\=/Users/maxim/src/Notebook
    export MACH_O_TYPE\=mh_execute
    export MAC_OS_X_PRODUCT_BUILD_VERSION\=22G74
    export MAC_OS_X_VERSION_ACTUAL\=130500
    export MAC_OS_X_VERSION_MAJOR\=130000
    export MAC_OS_X_VERSION_MINOR\=130500
    export MAKE_MERGEABLE\=NO
    export MARKETING_VERSION\=1.0
    export MERGEABLE_LIBRARY\=NO
    export MERGED_BINARY_TYPE\=none
    export MERGE_LINKED_LIBRARIES\=NO
    export METAL_LIBRARY_FILE_BASE\=default
    export METAL_LIBRARY_OUTPUT_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app
    export MODULES_FOLDER_PATH\=Notebook.app/Modules
    export MODULE_CACHE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
    export MTL_ENABLE_DEBUG_INFO\=INCLUDE_SOURCE
    export MTL_FAST_MATH\=YES
    export NATIVE_ARCH\=arm64
    export NATIVE_ARCH_32_BIT\=arm
    export NATIVE_ARCH_64_BIT\=arm64
    export NATIVE_ARCH_ACTUAL\=arm64
    export NO_COMMON\=YES
    export OBJECT_FILE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects
    export OBJECT_FILE_DIR_normal\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal
    export OBJROOT\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex
    export ONLY_ACTIVE_ARCH\=YES
    export OS\=MACOS
    export OSAC\=/usr/bin/osacompile
    export OTHER_LDFLAGS\=-Xlinker\ -interposable
    export PACKAGE_TYPE\=com.apple.package-type.wrapper.application
    export PASCAL_STRINGS\=YES
    export PATH\=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/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/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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\=Notebook.app/pbdevelopment.plist
    export PER_ARCH_OBJECT_FILE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/undefined_arch
    export PER_VARIANT_OBJECT_FILE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal
    export PKGINFO_FILE_PATH\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/PkgInfo
    export PKGINFO_PATH\=Notebook.app/PkgInfo
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr
    export PLATFORM_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
    export PLATFORM_DISPLAY_NAME\=iOS
    export PLATFORM_FAMILY_NAME\=iOS
    export PLATFORM_NAME\=iphoneos
    export PLATFORM_PREFERRED_ARCH\=arm64
    export PLATFORM_PRODUCT_BUILD_VERSION\=21C52
    export PLIST_FILE_OUTPUT_FORMAT\=binary
    export PLUGINS_FOLDER_PATH\=Notebook.app/PlugIns
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR\=YES
    export PRECOMP_DESTINATION_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS\=NO
    export PRIVATE_HEADERS_FOLDER_PATH\=Notebook.app/PrivateHeaders
    export PRODUCT_BUNDLE_IDENTIFIER\=io.github.mxi.Notebook
    export PRODUCT_BUNDLE_PACKAGE_TYPE\=APPL
    export PRODUCT_MODULE_NAME\=Notebook
    export PRODUCT_NAME\=Notebook
    export PRODUCT_SETTINGS_PATH\=/Users/maxim/src/Notebook/Notebook/Info.plist
    export PRODUCT_TYPE\=com.apple.product-type.application
    export PROFILING_CODE\=NO
    export PROJECT\=Notebook
    export PROJECT_DERIVED_FILE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/DerivedSources
    export PROJECT_DIR\=/Users/maxim/src/Notebook
    export PROJECT_FILE_PATH\=/Users/maxim/src/Notebook/Notebook.xcodeproj
    export PROJECT_NAME\=Notebook
    export PROJECT_TEMP_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build
    export PROJECT_TEMP_ROOT\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex
    export PROVISIONING_PROFILE_REQUIRED\=YES
    export PROVISIONING_PROFILE_REQUIRED_YES_YES\=YES
    export PROVISIONING_PROFILE_SUPPORTED\=YES
    export PUBLIC_HEADERS_FOLDER_PATH\=Notebook.app/Headers
    export RECOMMENDED_IPHONEOS_DEPLOYMENT_TARGET\=12.5
    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_STATIC_EXECUTABLES_FROM_EMBEDDED_BUNDLES\=YES
    export REMOVE_SVN_FROM_RESOURCES\=YES
    export REZ_COLLECTOR_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/ResourceManagerResources
    export REZ_OBJECTS_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/ResourceManagerResources/Objects
    export REZ_SEARCH_PATHS\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos\ 
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES\=NO
    export SCRIPTS_FOLDER_PATH\=Notebook.app/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/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk
    export SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk
    export SDK_DIR_iphoneos\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk
    export SDK_DIR_iphoneos17_2\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk
    export SDK_NAME\=iphoneos17.2
    export SDK_NAMES\=iphoneos17.2
    export SDK_PRODUCT_BUILD_VERSION\=21C52
    export SDK_STAT_CACHE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData
    export SDK_STAT_CACHE_ENABLE\=YES
    export SDK_STAT_CACHE_PATH\=/Users/maxim/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.2-21C52-884b7f60ac6761a492c03f282b824eb9.sdkstatcache
    export SDK_VERSION\=17.2
    export SDK_VERSION_ACTUAL\=170200
    export SDK_VERSION_MAJOR\=170000
    export SDK_VERSION_MINOR\=170200
    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\=YES
    export SHALLOW_BUNDLE_TRIPLE\=ios
    export SHALLOW_BUNDLE_ios_macabi\=NO
    export SHALLOW_BUNDLE_macos\=NO
    export SHARED_DERIVED_FILE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/DerivedSources
    export SHARED_FRAMEWORKS_FOLDER_PATH\=Notebook.app/SharedFrameworks
    export SHARED_PRECOMPS_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/PrecompiledHeaders
    export SHARED_SUPPORT_FOLDER_PATH\=Notebook.app/SharedSupport
    export SKIP_INSTALL\=NO
    export SOURCE_ROOT\=/Users/maxim/src/Notebook
    export SRCROOT\=/Users/maxim/src/Notebook
    export STRINGSDATA_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/undefined_arch
    export STRINGSDATA_ROOT\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build
    export STRINGS_FILE_INFOPLIST_RENAME\=YES
    export STRINGS_FILE_OUTPUT_ENCODING\=binary
    export STRIP_BITCODE_FROM_COPIED_FILES\=YES
    export STRIP_INSTALLED_PRODUCT\=NO
    export STRIP_STYLE\=all
    export STRIP_SWIFT_SYMBOLS\=YES
    export SUPPORTED_DEVICE_FAMILIES\=1,2
    export SUPPORTED_PLATFORMS\=iphoneos\ iphonesimulator
    export SUPPORTS_MACCATALYST\=NO
    export SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD\=YES
    export SUPPORTS_ON_DEMAND_RESOURCES\=YES
    export SUPPORTS_TEXT_BASED_API\=NO
    export SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD\=YES
    export SUPPRESS_WARNINGS\=NO
    export SWIFT_EMIT_LOC_STRINGS\=YES
    export SWIFT_PLATFORM_TARGET_PREFIX\=ios
    export SWIFT_RESPONSE_FILE_PATH_normal_arm64\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Objects-normal/arm64/Notebook.SwiftFileList
    export SYMROOT\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/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_EXTENSIONS_FOLDER_PATH\=Notebook.app/SystemExtensions
    export SYSTEM_EXTENSIONS_FOLDER_PATH_SHALLOW_BUNDLE_NO\=Notebook.app/Library/SystemExtensions
    export SYSTEM_EXTENSIONS_FOLDER_PATH_SHALLOW_BUNDLE_YES\=Notebook.app/SystemExtensions
    export SYSTEM_KEXT_INSTALL_PATH\=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR\=/System/Library
    export TAPI_DEMANGLE\=YES
    export TAPI_ENABLE_PROJECT_HEADERS\=NO
    export TAPI_LANGUAGE\=objective-c
    export TAPI_LANGUAGE_STANDARD\=compiler-default
    export TAPI_USE_SRCROOT\=YES
    export TAPI_VERIFY_MODE\=Pedantic
    export TARGETED_DEVICE_FAMILY\=1,2
    export TARGETNAME\=Notebook
    export TARGET_BUILD_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos
    export TARGET_DEVICE_IDENTIFIER\=00008027-000E10AC360A002E
    export TARGET_DEVICE_MODEL\=iPad8,1
    export TARGET_DEVICE_OS_VERSION\=17.5.1
    export TARGET_DEVICE_PLATFORM_NAME\=iphoneos
    export TARGET_NAME\=Notebook
    export TARGET_TEMP_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build
    export TEMP_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build
    export TEMP_FILES_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build
    export TEMP_FILE_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build
    export TEMP_ROOT\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex
    export TEST_FRAMEWORK_SEARCH_PATHS\=\ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks\ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk/Developer/Library/Frameworks
    export TEST_LIBRARY_SEARCH_PATHS\=\ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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\=xxxxxxxxxx.
    export UID\=501
    export UNINSTALLED_PRODUCTS_DIR\=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/UninstalledProducts
    export UNLOCALIZED_RESOURCES_FOLDER_PATH\=Notebook.app
    export UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_NO\=Notebook.app/Resources
    export UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_YES\=Notebook.app
    export UNSTRIPPED_PRODUCT\=NO
    export USER\=maxim
    export USER_APPS_DIR\=/Users/maxim/Applications
    export USER_LIBRARY_DIR\=/Users/maxim/Library
    export USE_DYNAMIC_NO_PIC\=YES
    export USE_HEADERMAP\=YES
    export USE_HEADER_SYMLINKS\=NO
    export VALIDATE_DEVELOPMENT_ASSET_PATHS\=YES_ERROR
    export VALIDATE_PRODUCT\=NO
    export VALID_ARCHS\=arm64\ arm64e\ armv7\ armv7s
    export VERBOSE_PBXCP\=NO
    export VERSIONPLIST_PATH\=Notebook.app/version.plist
    export VERSION_INFO_BUILDER\=maxim
    export VERSION_INFO_FILE\=Notebook_vers.c
    export VERSION_INFO_STRING\=\"@\(\#\)PROGRAM:Notebook\ \ PROJECT:Notebook-1\"
    export WRAPPER_EXTENSION\=app
    export WRAPPER_NAME\=Notebook.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\=15C500b
    export XCODE_VERSION_ACTUAL\=1520
    export XCODE_VERSION_MAJOR\=1500
    export XCODE_VERSION_MINOR\=1520
    export XPCSERVICES_FOLDER_PATH\=Notebook.app/XPCServices
    export YACC\=yacc
    export _WRAPPER_CONTENTS_DIR_SHALLOW_BUNDLE_NO\=/Contents
    export _WRAPPER_PARENT_PATH_SHALLOW_BUNDLE_NO\=/..
    export _WRAPPER_RESOURCES_DIR_SHALLOW_BUNDLE_NO\=/Resources
    export __IS_NOT_MACOS\=YES
    export __IS_NOT_MACOS_macosx\=NO
    export __IS_NOT_SIMULATOR\=YES
    export __IS_NOT_SIMULATOR_simulator\=NO
    export arch\=undefined_arch
    export variant\=normal
    /bin/sh -c /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Script-948E3B642C40C66F00F89DF1.sh

+ '[' Debug == Debug ']'
++ dirname /Users/maxim/Applications/InjectionIII.app/Contents/Resources/copy_bundle.sh
+ RESOURCES=/Users/maxim/Applications/InjectionIII.app/Contents/Resources
+ COPY=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle
+ STRACE=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/SwiftTrace.framework/SwiftTrace
+ PLIST=/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Info.plist
+ '[' iphoneos == macosx ']'
+ '[' iphoneos == appletvsimulator ']'
+ '[' iphoneos == appletvos ']'
+ '[' iphoneos == xrsimulator ']'
+ '[' iphoneos == xros ']'
+ '[' iphoneos == iphoneos ']'
+ BUNDLE=maciOSInjection
+ rsync -a /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTestSupport.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCUIAutomation.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCUnit.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/libXCTestBundleInject.dylib /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/
+ codesign -f --sign F693D2C0DBAEE406D1F3960174BDAD280A6CA223 --timestamp=none --preserve-metadata=identifier,entitlements,flags --generate-entitlement-der /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTAutomationSupport.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTest.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTestCore.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTestSupport.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCUIAutomation.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCUnit.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/libXCTestBundleInject.dylib /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/libXCTestSwiftSupport.dylib
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTAutomationSupport.framework: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTest.framework: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTestCore.framework: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTestSupport.framework: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCUIAutomation.framework: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCUnit.framework: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/libXCTestBundleInject.dylib: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/libXCTestSwiftSupport.dylib: replacing existing signature
+ rsync -a /Users/maxim/Applications/InjectionIII.app/Contents/Resources/maciOSInjection.bundle/Frameworks /Users/maxim/Applications/InjectionIII.app/Contents/Resources/maciOSInjection.bundle/Info.plist /Users/maxim/Applications/InjectionIII.app/Contents/Resources/maciOSInjection.bundle/_CodeSignature /Users/maxim/Applications/InjectionIII.app/Contents/Resources/maciOSInjection.bundle/maciOSInjection /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/
+ /usr/libexec/PlistBuddy -c 'Add :UserHome string /Users/maxim' /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Info.plist
+ codesign -f --sign F693D2C0DBAEE406D1F3960174BDAD280A6CA223 --timestamp=none --preserve-metadata=identifier,entitlements,flags --generate-entitlement-der /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/SwiftTrace.framework/SwiftTrace /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/SwiftTrace.framework/SwiftTrace: replacing existing signature
/Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle: replacing existing signature
+ defaults write com.johnholdsworth.InjectionIII /Users/maxim/src/Notebook/Notebook.xcodeproj F693D2C0DBAEE406D1F3960174BDAD280A6CA223

#
# ... omitting what seems to be an exact copy of the set -x above ...
#

CodeSign /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook

    Signing Identity:     "Apple Development: xxx@xxx (xxxxxxxxxx)"
    Provisioning Profile: "iOS Team Provisioning Profile: io.github.mxi.Notebook"
                          (05568d46-df80-4c3b-9bc4-32d92287a9c9)

    /usr/bin/codesign --force --sign F693D2C0DBAEE406D1F3960174BDAD280A6CA223 --entitlements /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Intermediates.noindex/Notebook.build/Debug-iphoneos/Notebook.build/Notebook.app.xcent --timestamp\=none --generate-entitlement-der /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app

Validate /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app (in target 'Notebook' from project 'Notebook')
    cd /Users/maxim/src/Notebook
    builtin-validationUtility /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app

Build succeeded    7/11/24, 7:44 PM    2.2 seconds

I'd appreciate your time if you decide to look into this. I know it's hard being an open source maintainer this day and age. Let me know if you need more information. Cheers.

Oh, I guess I'll also add, this is how my bundle initialization bit looks like

int main(int argc, char * argv[]) {
#if DEBUG
    NSString *injectionBundlePath = 
        [[NSBundle mainBundle] pathForResource:@"iOSInjection" ofType:@"bundle"];
    if (!injectionBundlePath) {
        NSLog(@"Failed to find iOSInjection bundle!");
        return 1;
    }
    if (![[NSBundle bundleWithPath:injectionBundlePath] load]) {
        NSLog(@"Failed to load iOSInjection bundle!");
        return 1;
    }
#endif
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
johnno1962 commented 4 months ago

Hi, have you set a default with the path to your project and the EXPANDED_CODESIGNING_IDENTITY? i.e. add a build phase:

defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"
mxi commented 4 months ago

Yes,

$ defaults read com.johnholdsworth.InjectionIII
{
    "/Users/maxim/src/Notebook/Notebook.xcodeproj" = F693D2C0DBAEE406D1F3960174BDAD280A6CA223;
    NSNavLastRootDirectory = "~/src/Notebook";
    NSNavPanelExpandedSizeForOpenMode = "{800, 448}";
    "NSWindow Frame GoToSheet" = "526 506 460 208 0 0 1512 944 ";
    "NSWindow Frame NSNavPanelAutosaveName" = "356 372 800 448 0 0 1512 944 ";
    deviceInform = Informed;
    deviceUnlock = any;
    lastProject = "/Users/maxim/src/Notebook/Notebook.xcodeproj";
    lastWatched = "/Users/maxim/src/Notebook";
    persistentBookmarks =     {
        "/Users/maxim/src/Notebook" = {length = 688, bytes = 0x626f6f6b b0020000 00000410 30000000 ... 04000000 00000000 };
        "/Users/maxim/src/Notebook/Notebook" = {length = 712, bytes = 0x626f6f6b c8020000 00000410 30000000 ... 04000000 00000000 };
    };
}

which matches the identity in the environment variables in the build logs:

+ codesign -f --sign F693D2C0DBAEE406D1F3960174BDAD280A6CA223 --timestamp=none --preserve-metadata=identifier,entitlements,flags --generate-entitlement-der /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTAutomationSupport.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTest.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTestCore.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCTestSupport.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCUIAutomation.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/XCUnit.framework /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/libXCTestBundleInject.dylib /Users/maxim/Library/Developer/Xcode/DerivedData/Notebook-fvdbroycazvynoaeyiritcvmctew/Build/Products/Debug-iphoneos/Notebook.app/iOSInjection.bundle/Frameworks/libXCTestSwiftSupport.dylib

But also, I noticed that your copy_bundle.sh script already sets that, no?

johnno1962 commented 4 months ago

This is a mystery indeed. If you run the app fro the command line it will tell you when it is using a code signing identity. It seems like it's not code signing at all which would be unusual for a real device. Which exact version of InjectionIII is this?

mxi commented 4 months ago

I'm running versions from your github releases. (I should note I'm using Xcode 15.2).

Here is the log for 4.8.3 which was the last one with Xcode 15.2 noted:

2024-07-12 13:10:55.841 InjectionIII[11371:4094280] InjectionIII.DeviceServer: Multicast recvfrom localhost (192.168.0.48) 1104037719 c.f. 1104037719
2024-07-12 13:10:56.235 InjectionIII[11371:4094281] Connection from 192.168.0.48:57017
2024-07-12 13:10:56.236 InjectionIII[11371:4094590] 💉 InjectionIII Connection for project file: /Users/maxim/src/Notebook/Notebook.xcodeproj
2024-07-12 13:10:56.242 InjectionIII[11371:4094590] 💉 InjectionIII Using tmp dir: /var/folders/ds/112mkzld6g92cqxrtsth7qjc0000gn/T/
2024-07-12 13:11:02.150 InjectionIII[11371:4094269] 💉 InjectionIII evalError: Compiling /Users/maxim/src/Notebook/Notebook/View.m
2024-07-12 13:11:02.317 InjectionIII[11371:4094269] 💉 InjectionIII Signing with identity: F693D2C0DBAEE406D1F3960174BDAD280A6CA223
2024-07-12 13:11:02.447 InjectionIII[11371:4094590] 💉 InjectionIII Injection error: Error Domain=SwiftEval Code=-1 "dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (code signature invalid in <08AD0C22-1132-3E51-984F-59453E6D9611> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (code signature invalid in <08AD0C22-1132-3E51-984F-59453E6D9611> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"" UserInfo={NSLocalizedDescription=dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (code signature invalid in <08AD0C22-1132-3E51-984F-59453E6D9611> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (code signature invalid in <08AD0C22-1132-3E51-984F-59453E6D9611> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"}
2024-07-12 13:11:02.549 InjectionIII[11371:4094723] 💉 InjectionIII evalError: Compiling /Users/maxim/src/Notebook/Notebook/View.m
2024-07-12 13:11:02.670 InjectionIII[11371:4094723] 💉 InjectionIII Signing with identity: F693D2C0DBAEE406D1F3960174BDAD280A6CA223
2024-07-12 13:11:02.834 InjectionIII[11371:4094590] 💉 InjectionIII Injection error: Error Domain=SwiftEval Code=-1 "dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval102.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (code signature invalid in <499AA054-C697-3DFE-A726-375B47A0FEB0> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (code signature invalid in <499AA054-C697-3DFE-A726-375B47A0FEB0> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"" UserInfo={NSLocalizedDescription=dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval102.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (code signature invalid in <499AA054-C697-3DFE-A726-375B47A0FEB0> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (code signature invalid in <499AA054-C697-3DFE-A726-375B47A0FEB0> '/private/var/mobile/Containers/Data/Application/E64EA790-0917-4EB9-BDE5-5DFCBF2BFA1A/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"}
2024-07-12 13:11:07.040 InjectionIII[11371:4094723] 💉 InjectionIII evalError: Compiling /Users/maxim/src/Notebook/Notebook/View.m
2024-07-12 13:11:07.202 InjectionIII[11371:4094723] 💉 InjectionIII Signing with identity: F693D2C0DBAEE406D1F3960174BDAD280A6CA223
2024-07-12 13:11:07.641 InjectionIII[11371:4094590] 💉 InjectionIII <InjectionIII.DeviceServer: 0x600002384700>.deinit()

Here is 5.0.1 with a bork at the end which I'm assuming is due to Xcode version mismatch:

2024-07-12 13:15:33.347 InjectionIII[11549:4097943] InjectionIII.DeviceServer: Multicast recvfrom localhost (192.168.0.48) 1104037719 c.f. 1104037719
2024-07-12 13:15:34.019 InjectionIII[11549:4097944] Connection from 192.168.0.48:57098
2024-07-12 13:15:34.022 InjectionIII[11549:4098514] 💉 InjectionIII Connection for project file: /Users/maxim/src/Notebook/Notebook.xcodeproj
2024-07-12 13:15:34.125 InjectionIII[11549:4098514] 💉 InjectionIII Using tmp dir: /var/folders/ds/112mkzld6g92cqxrtsth7qjc0000gn/T/
2024-07-12 13:15:40.605 InjectionIII[11549:4098525] 💉 InjectionIII evalError: Compiling /Users/maxim/src/Notebook/Notebook/View.m
2024-07-12 13:15:40.771 InjectionIII[11549:4098525] 💉 InjectionIII Signing with identity: F693D2C0DBAEE406D1F3960174BDAD280A6CA223
2024-07-12 13:15:41.017 InjectionIII[11549:4098514] 💉 InjectionIII Injection error: Error Domain=SwiftEval Code=-1 "dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (code signature invalid in <03895B34-24FF-38CB-952B-12C6081B737D> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (code signature invalid in <03895B34-24FF-38CB-952B-12C6081B737D> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"" UserInfo={NSLocalizedDescription=dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (code signature invalid in <03895B34-24FF-38CB-952B-12C6081B737D> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (code signature invalid in <03895B34-24FF-38CB-952B-12C6081B737D> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval101.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"}
2024-07-12 13:15:41.159 InjectionIII[11549:4098603] 💉 InjectionIII evalError: Compiling /Users/maxim/src/Notebook/Notebook/View.m
2024-07-12 13:15:41.278 InjectionIII[11549:4098603] 💉 InjectionIII Signing with identity: F693D2C0DBAEE406D1F3960174BDAD280A6CA223
2024-07-12 13:15:41.465 InjectionIII[11549:4098514] 💉 InjectionIII Injection error: Error Domain=SwiftEval Code=-1 "dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval102.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (code signature invalid in <FAD00212-13C2-3254-9F17-6ECD8898473C> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (code signature invalid in <FAD00212-13C2-3254-9F17-6ECD8898473C> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"" UserInfo={NSLocalizedDescription=dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval102.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (code signature invalid in <FAD00212-13C2-3254-9F17-6ECD8898473C> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (code signature invalid in <FAD00212-13C2-3254-9F17-6ECD8898473C> '/private/var/mobile/Containers/Data/Application/1086A04A-BD77-4092-854A-7A6CFAA68DF9/tmp/eval102.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00020180, codeBlobSize=0x00004F40)
💉 ⚠ī¸  Loading .dylib has failed due to invalid code signing.
💉 Add the following as a Run Script/Build Phase:
defaults write com.johnholdsworth.InjectionIII "$PROJECT_FILE_PATH" "$EXPANDED_CODE_SIGN_IDENTITY"}
2024-07-12 13:15:45.021 InjectionIII[11549:4098514] [<InjectionIII.DeviceServer: 0x600002778580> readInt:0x16bd669dc length:4] error: 0 No such file or directory
2024-07-12 13:15:45.022 InjectionIII[11549:4098514] 💉 InjectionIII <InjectionIII.DeviceServer: 0x600002778580>.deinit()
johnno1962 commented 4 months ago

This is a very strange problem as the app seems to be doing all the right things. It may be worth you switching to the new implementation https://github.com/johnno1962/InjectionNext which is simpler and easier to debug than InjectionIII. It is largely the same except there is a smaller client which is always a Swift package and you need to use the MacOS app to launch Xcode so it can parse how to compile the files. When connecting from a device you use the "Enable devices" menu item which allows you to enter the code signing identity directly.

mxi commented 4 months ago

Hmm, so I tried InjectionNext (5.0.11 from github releases) and I get this,

2024-07-12 15:16:54.794 InjectionNext[14103:4154042] Invalid color System, textInsertionPointColor (warning given only once)
2024-07-12 15:16:57.719 InjectionNext[14103:4154044] DLKit: Unable to find replacement for symbol: $s7Fortify21hook_assertionFailure__4file4line5flagss5NeverOs12StaticStringV_A2ISus6UInt32VtF
2024-07-12 15:16:57.720 InjectionNext[14103:4154044] DLKit: Unable to find replacement for symbol: $s7Fortify21hook_assertionFailure__4file4line5flagss5NeverOs12StaticStringV_SSAISus6UInt32VtF
2024-07-12 15:16:57.720 InjectionNext[14103:4154044] DLKit: missing replacement at index 0 for symbol $ss17_assertionFailure__4file4line5flagss5NeverOs12StaticStringV_A2HSus6UInt32VtF
2024-07-12 15:16:57.720 InjectionNext[14103:4154044] DLKit: missing replacement at index 1 for symbol $ss17_assertionFailure__4file4line5flagss5NeverOs12StaticStringV_SSAHSus6UInt32VtF
2024-07-12 15:16:57.721 InjectionNext[14103:4154044] DLKit: No symbols replaced, have you added -Xlinker -interposable to your project's "Other Linker Flags"?
2024-07-12 15:16:57.721 InjectionNext[14103:4154044] ⚠ī¸  Unable to hook _assertionFailure
Updating 131 args with 0 swift files /Users/maxim/src/Notebook/Notebook/main.m   key.compilerargs: [
Injecting saved file /Users/maxim/src/Notebook/Notebook/main.m
đŸ”Ĩ Recompiling: /Users/maxim/src/Notebook/Notebook/main.m
2024-07-12 15:17:33.983 InjectionNext[14103:4154987] ⚠ī¸  Linking failed:
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -arch "arm64"     -Xlinker -dylib -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"     -L"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx" -mmacosx-version-min=10.11     -undefined dynamic_lookup -dead_strip -Xlinker -objc_abi_version     -Xlinker 2 -Xlinker -interposable -fobjc-arc      -fprofile-instr-generate /tmp/injectionNext_0.o -L "/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks" -F "/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks"     -rpath "/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks" -o "/tmp/compilertron_patches/eval_injection_main_1.dylib" -rpath /usr/lib/swift     -rpath "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx"
errors:
ld: warning: search path '/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks' not found
ld: warning: search path '/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks' not found
ld: building for 'macOS', but linking in object file (/private/tmp/injectionNext_0.o) built for 'iOS'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
đŸ”Ĩ ⚠ī¸  Linking failed:
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -arch "arm64"     -Xlinker -dylib -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"     -L"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx" -mmacosx-version-min=10.11     -undefined dynamic_lookup -dead_strip -Xlinker -objc_abi_version     -Xlinker 2 -Xlinker -interposable -fobjc-arc      -fprofile-instr-generate /tmp/injectionNext_0.o -L "/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks" -F "/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks"     -rpath "/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks" -o "/tmp/compilertron_patches/eval_injection_main_1.dylib" -rpath /usr/lib/swift     -rpath "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx"
errors:
ld: warning: search path '/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks' not found
ld: warning: search path '/Users/maxim/Applications/InjectionNext.app/Contents/Frameworks' not found
ld: building for 'macOS', but linking in object file (/private/tmp/injectionNext_0.o) built for 'iOS'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2024-07-12 15:17:33.983 InjectionNext[14103:4154987] ⚠ī¸  Injection failed.
đŸ”Ĩ ⚠ī¸  Injection failed.

Interestingly it thinks -Xlinker -interposable aren't specified even tho they appear on the commandline...

johnno1962 commented 4 months ago

But did you add the InjectionNext Swift package to your app? Is your app even connecting to the InjectionNext.app? The log you've posted is not showing that. Don't worry about the warning for -interposable for Objective-C as it is not required. Besides, the file you're injecting can't be injected as it is not a class.

johnno1962 commented 4 months ago

On second thoughts, if you're seeing the message ℹī¸ No symbols replaced, have you added -Xlinker -interposable to your project's Debug configuration "Other Linker Flags"? this means you're connected, code signing is working and have injected but the file you're injecting (main.m?) does not contain any symbols that can inject. The messages you report from the console are just noise from when you save a file and are not connected that you would not normally see.

mxi commented 4 months ago

It appears to be a similar issue to https://github.com/johnno1962/InjectionNext/issues/2 because in the Xcode console

đŸ”Ĩ InjectionNext: Locating developer's Mac. Have you selected "Enable Devices"?
Broadcasting to en0.4:192.168.0.255 to locate InjectionNext host...
Broadcasting to en2.8:169.254.255.255 to locate InjectionNext host...

so it's actually not connecting? Here is my netstat -an

17:tcp4       0      0  *.8887                 *.*                    LISTEN
306:udp4       0      0  *.8887                 *.*

which seems to be fine.

If I look at the error log from the dropdown menu,

ld: warning: search path '/Applications/InjectionNext.app/Contents/Frameworks' not found
ld: warning: search path '/Applications/InjectionNext.app/Contents/Frameworks' not found
ld: building for 'macOS', but linking in object file (/private/tmp/injectionNext_0.o) built for 'iOS'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This was for 1.0.11 btw.

mxi commented 4 months ago

Ok, I tried compiling InjectionNext from source. I'm able to connect now just fine, but the code sign error rears its ugly head.

from Xcode console:

đŸ”Ĩ InjectionNext: Locating developer's Mac. Have you selected "Enable Devices"?
Broadcasting to en0.4:192.168.0.255 to locate InjectionNext host...
đŸ”Ĩ Connecting to eta.hsd1.ca.comcast.net (192.168.0.90)...
đŸ”Ĩ InjectionNext: iPhoneOS connection to app established, waiting for commands.
đŸ”Ĩ Platform connected: iPhoneOS

đŸ”Ĩ Recompiling: /Users/maxim/src/Notebook/Notebook/View.m
đŸ”Ĩ ⚠ī¸ dlopen failed dlopen(/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp//eval_injection_View_1.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval_injection_View_1.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp//eval_injection_View_1.dylib' (code signature invalid in <3481CE70-447B-3750-B8D3-C584D8332285> '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/eval_injection_View_1.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x0000C7F0, codeBlobSize=0x00004B60), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp//eval_injection_View_1.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp//eval_injection_View_1.dylib' (code signature invalid in <3481CE70-447B-3750-B8D3-C584D8332285> '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/eval_injection_View_1.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x0000C7F0, codeBlobSize=0x00004B60), '/usr/lib/system/introspection/eval_injection_View_1.dylib' (no such file, not in dyld cache), '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/eval_injection_View_1.dylib' (code signature invalid in <3481CE70-447B-3750-B8D3-C584D8332285> '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/eval_injection_View_1.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x0000C7F0, codeBlobSize=0x00004B60), '/private/preboot/Cryptexes/OS/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/eval_injection_View_1.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/eval_injection_View_1.dylib' (code signature invalid in <3481CE70-447B-3750-B8D3-C584D8332285> '/private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/eval_injection_View_1.dylib' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x0000C7F0, codeBlobSize=0x00004B60)
đŸ”Ĩ Injection failed to load. If this was due to a default argument. Select the app's menu item "Unhide Symbols".

đŸ”Ĩ ⚠ī¸ packageFrameworks not set, view a Swift source.

From CLI:

2024-07-13 08:58:45.029 InjectionNext[17799:4234524] Invalid color System, textInsertionPointColor (warning given only once)
Updating 131 args with 0 swift files /Users/maxim/src/Notebook/Notebook/View.m   key.compilerargs: [
Updating 131 args with 0 swift files /Users/maxim/src/Notebook/Notebook/View.m   key.compilerargs: [
Updating 131 args with 0 swift files /Users/maxim/src/Notebook/Notebook/View.m   key.compilerargs: [
2024-07-13 08:59:47.748 InjectionNext[17799:4234914] InjectionNext.InjectionServer: Multicast recvfrom localhost (192.168.0.48) 1104037719 c.f. 1104037719
2024-07-13 08:59:48.396 InjectionNext[17799:4234915] Connection from 192.168.0.48:60241
2024-07-13 08:59:48.398 InjectionNext[17799:4236311] đŸ”Ĩ InjectionNext Platform connected: iPhoneOS
Tmp path: /private/var/mobile/Containers/Data/Application/1D245AC0-0BEF-4964-A9CE-1C4DAD26391F/tmp/
Injecting saved file /Users/maxim/src/Notebook/Notebook/View.m
đŸ”Ĩ Recompiling: /Users/maxim/src/Notebook/Notebook/View.m
Prepared dylib: /tmp/eval_injection_View_1.dylib
2024-07-13 08:59:55.029 InjectionNext[17799:4236311] đŸ”Ĩ InjectionNext Injection failed to load. If this was due to a default argument. Select the app's menu item "Unhide Symbols".
2024-07-13 09:00:31.019 InjectionNext[17799:4234524] đŸ”Ĩ InjectionNext ⚠ī¸  packageFrameworks not set, view a Swift source.
Injecting saved file /Users/maxim/src/Notebook/Notebook/View.m
đŸ”Ĩ Recompiling: /Users/maxim/src/Notebook/Notebook/View.m
Prepared dylib: /tmp/eval_injection_View_2.dylib
2024-07-13 09:00:37.828 InjectionNext[17799:4236311] đŸ”Ĩ InjectionNext Injection failed to load. If this was due to a default argument. Select the app's menu item "Unhide Symbols".
2024-07-13 09:01:39.058 InjectionNext[17799:4234524] đŸ”Ĩ InjectionNext ⚠ī¸  packageFrameworks not set, view a Swift source.

I confirmed that I have the right extended code sign identity in the Enable Devices drop down menu.

I've also tried defaults write com.johnholdsworth.InjectionNext signingidentity "${EXPANDED_CODE_SIGN_IDENTITY}" (obviously with my code sign identity substituted) and it still doesn't seem to like it.

johnno1962 commented 4 months ago

Have you tried a smaller example project with a different identity or is this the smaller example project? Have you tried a Swift project? Getting injection working on a device is an extra level of difficulty. Seems like it's something to do with InjectionNext accessing that specific identity though you'd expect to see an error.

mxi commented 4 months ago

I figure this is a rather small project already.

$ tree Notebook
Notebook
├── AppDelegate.h
├── AppDelegate.m
├── Assets.xcassets
│   ├── AccentColor.colorset
│   │   └── Contents.json
│   ├── AppIcon.appiconset
│   │   └── Contents.json
│   └── Contents.json
├── Base.lproj
│   ├── LaunchScreen.storyboard
│   └── Main.storyboard
├── Info.plist
├── SceneDelegate.h
├── SceneDelegate.m
├── View.h
├── View.m
├── ViewController.h
├── ViewController.m
└── main.m

Admittedly I probably should just continue working on it and learning iOS before trying hotloading, but my debug builds take ages to start on my device and having to wait upwards of 30 seconds to a minute when changing one parameter is a pain.

I'll try it on a Swift project and report back.

P.S. I tried adding another certificate through Xcode > Settings > Accounts > Manage Certificates > +, but I'm not sure if that's the right way to do it (it did change the expanded code sign identity which I've updated in InjectionNext to no success, but maybe I'm not doing it right.)

johnno1962 commented 4 months ago

It's a provisioning issue. Code signing either "just works" or can give you a lot of trouble – Injecting on a device isn't exactly a "getting started in iOS" level task. Can you not use the simulator for now until you get a little more settled.

mxi commented 4 months ago

So I tried on a fresh template Swift project and same code sign issue.

I'll look into code signing a bit more, then. Thank you for your time, though.

johnno1962 commented 4 months ago

OK, Good luck, you should find things a bit easier to follow with the new project. Welcome to the community!